Code Monkey home page Code Monkey logo

ygomobile-diy's Introduction

YGOMobile

Build Status Android编译环境

下载Android Studio和Android sdk

ndk编译环境(请用迅雷,旋风,或者翻墙vpn下载)

稳定ndk
Darwin: https://dl.google.com/android/ndk/android-ndk-r9d-darwin-x86_64.tar.bz2
Linux: https://dl.google.com/android/ndk/android-ndk-r9d-linux-x86_64.tar.bz2
Windows: https://dl.google.com/android/ndk/android-ndk-r9d-windows-x86_64.zip

目前最新ndk
https://dl.google.com/android/repository/android-ndk-r15b-windows-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r15b-darwin-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r15b-linux-x86_64.zip

重要

开始的NDK是R9版本,目前NDKR15编译已经通过。
根据自己的系统下载上面的压缩包,解压并且配置环境变量,cmd窗口,输ndk-build --version,看到一堆数字和英文的版权就是ok了
不懂环境变量?没关系,自己自动把下文的ndk-build前面,加上NDK解压的文件夹比如D:\NDK\ndk-build -j4

1.准备数据

从官网发布的apk提取,或者自己提供,scripts.zip里面是script文件夹
mobile\assets\data\cards.cdb
mobile\assets\data\scripts.zip
mobile\assets\data\fonts\ygo.ttf

2.编译ygo的so

项目根目录运行命令行窗口
cd libcore
ndk-build -j4
成功:libcore\libs\armeabi-v7a\libYGOMobile.so
大于4.6M

3.包名和签名

一个手机相同包名的app只能同时存在一个,低版本无法覆盖高版本
包名相同,签名不相同的app是无法覆盖安装。
(如果你不是组内的开发员,那么你需要改包名和准备一个签名,不然你的app无法覆盖旧版本,或者无法同时存在)

4.如何改包名,制作签名

如果你需要改包名
编辑:mobile\build.gradle
applicationId "cn.garymb.ygomobile"
cn.garymb.ygomobile改为你的包名,如果不懂,请在后面加.xxxx,例如我是菜菜,改为cn.garymb.ygomobile.caicai
5.制作签名(仅第一次或者你没有签名文件)
左边的project标签,选中mobile,点击顶部的菜单Build->Generate Signed Apk->Create New
key store path: 点第一行的...选择保存位置或者手动输入,例如D:\ygo.jks
Password:       签名密码,如果不懂,建议直接123456
Alias:          签名key,随便一个名字,建议直接ygo
Password:       key密码,如果不懂,建议直接123456
First and Last name:随便一个名字

6.生成apk文件

如果是自己电脑,最好勾上Remember passwords
key store password  签名密码
key alias           签名key
key password        key密码
点Next,第一行就是apk的保存文件夹,下面的V1和V2,如果不懂,请不要勾V2,然后点Finish。

ygomobile-diy's People

Contributors

247321453 avatar fallenstardust avatar mercury233 avatar purerosefallen avatar zh99998 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.