./gradlew clean assembleDebug publish
adb install app/build/outputs/apk/app-debug.apk
- 打补丁
1、修改app/build.gradle中version = getEnvValue("versionName", "1.0.1")
2、执行 ./gradlew clean assembleDebug -DapVersion=1.0.0 -DversionName=1.0.1
- 推送补丁
1、从电脑将补丁push到移动端(mac命令push到模拟器)(huscarter/AtlasTest中的 /storage要去掉)
adb push app/build/outputs/tpatch-debug/update.json /sdcard/Android/data/com.whh.atlastest/cache/update.json
adb push app/build/outputs/tpatch-debug/[email protected] /sdcard/Android/data/com.whh.atlastest/cache
2、服务器推送补丁到移动端安装
Todo.
- 打包
./gradlew clean assembleDebug publish
- 推送补丁
1、从电脑将补丁push到移动端(mac命令push到模拟器)
adb push app/build/outputs/remote-bundles-debug/libcom_whh_remotebundle.so /sdcard/Android/data/com.whh.atlastest/cache
2、服务器推送补丁到移动端安装
Todo.
https://github.com/alibaba/atlas/tree/master/atlas-demo
http://atlas.taobao.org/docs/guide-for-use/guide_for_build.html