GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - hueyoung/android-frame: 从0 ~ 1构建一个有意思的框架

BranchesTags
Open more actions menu

Latest commit

 

History

8 Commits
8 Commits

Folders and files

NameName
Last commit message
Last commit date
.idea
.idea
 
 
app
app
 
 
firstbundle
firstbundle
 
 
gradle/wrapper
gradle/wrapper
 
 
publicbundle
publicbundle
 
 
remotebundle
remotebundle
 
 
splashbundle
splashbundle
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
Tpatch.txt
Tpatch.txt
 
 
build.gradle
build.gradle
 
 
gradle.properties
gradle.properties
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
settings.gradle
settings.gradle
 
 

Repository files navigation

android-frame

对android的交代-atlas容器化框架

************************************** 热更新使用文档 ***************************************

1、 app的build.gradle的语句"version = getEnvValue("versionName", "1.0.0");"中修改想要生成的app的versionName(默认为1.0.0)

app目录下执行../gradlew clean assembleDebug 生成apk  (windows 环境的命令为 ..\gradlew.bat clean assembleDebug  以下类同)

2、 app目录下执行../gradlew publish 将跟apk同目录的ap文件发布到仓库,此时ap的版本是1.0.0

3、 手机上安装生成的apk,同时进到动态部署界面(侧边栏里面划开点击进入),且手机连接电脑adb(确保adb devices可见)

///////////////////////////////^^^^^^^准备工作^^^^^^^^^^////////////////////////

4、 进行一些想要的修改(不支持manifest的修改)

5、 app工程目录下执行../gradlew clean assembleDebug -DapVersion=1.0.0 -DversionName=1.0.1, 其中apVersion为之前打的完整apk的版本,newVersion为此次动态部署要生成的新的版本号, 例如命令 ../gradlew clean assembleDebug -DapVersion=1.0.0 -DversionName=1.0.1

6、 检查build/output/tpatch-debug 目录下文件是否生成,然后执行下面的命令(以下为mac下的命令,windows请修改文件分隔符) adb push build/outputs/tpatch-debug/update-1.0.0.json /sdcard/Android/data/com.taobao.demo/cache/update-1.0.0.json (根据你手机的当前版本推送对应版本的update-**.json,和对应的tpatch文件) adb push build/outputs/tpatch-debug/[email protected] /sdcard/Android/data/com.taobao.demo/cache/[email protected]

7、 点击动态部署页面红色按钮执行动态部署

8、 后续继续做想要的修改,我们要变成1.0.2 (某个bundle做动态部署的时候请更新版本号,因为差量会基于版本号对比) ../gradlew clean assembleDebug -DapVersion=1.0.0 -DversionName=1.0.2 这时候会生成两个 [email protected] [email protected]

根据你目前的app版本,重复6步骤,推送对应版本的update-**.json,和对应的tpatch文件。

9、 后续继续做想要的修改,我们要变成1.0.3 (某个bundle做动态部署的时候请更新版本号,因为差量会基于版本号对比) ../gradlew clean assembleDebug -DapVersion=1.0.0 -DversionName=1.0.3 这时候会生成三个 [email protected] [email protected] [email protected]

根据你目前的app版本,重复6步骤,推送对应版本的update-**.json,和对应的tpatch文件。

10、 如果做了多次动态部署后,需要从头开始测试,请先清楚AtlasDemo根目录下的hisTpatch文件夹。

About

从0 ~ 1构建一个有意思的框架

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.