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 - mivanzhang/DynamicAPK: Solution to implement multi apk/dex loading. (实现Android多apk/dex方式的apk加载,支持资源分包)

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

12 Commits
12 Commits

Folders and files

NameName
Last commit message
Last commit date
bundle
bundle
 
 
caapt
caapt
 
 
demo1
demo1
 
 
demo2
demo2
 
 
gradle/wrapper
gradle/wrapper
 
 
sample
sample
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
aapt_linux
aapt_linux
 
 
aapt_mac
aapt_mac
 
 
aapt_win.exe
aapt_win.exe
 
 
apk_module_config.xml
apk_module_config.xml
 
 
build.gradle
build.gradle
 
 
demo.jks
demo.jks
 
 
global_config.gradle
global_config.gradle
 
 
gradle.properties
gradle.properties
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
settings.gradle
settings.gradle
 
 
sub-project-build.gradle
sub-project-build.gradle
 
 
sub-project-proguard-rules.txt
sub-project-proguard-rules.txt
 
 

Repository files navigation

"Android插件化和动态加载框架"


携程App的插件化和动态加载框架已上线半年,经历了初期的探索和持续的打磨优化,新框架和工程配置经受住了生产实践的考验。 Android DynamicApk 框架实现了多APK动态加载和HotFix解决方案,通过对aapt的修改实现资源分区,各个模块可以单独的配置资源的PackageID,做到真正的独立APK模块化。详见:《携程Android App插件化和动态加载实践》

#Benifit

  • 插件化架构适应开发节奏需求,不但从代码层面,更从项目控制层面做到了高内聚低耦合,极大降低了沟通成本,提高了工作效率。
  • 拆分成多个小的插件后,dex从此告别方法数天花板。
  • HotFix为app质量做好最后一层保障方案,再也没有无法挽回的损失了。
  • ABTesting脱离古老丑陋的if/else实现,多套方案随心挑选按需加载。
  • 编译速度大大提高,各BU只需使用宿主的编译成果更新编译自己子工程部分,分分钟搞定。
  • App宿主apk大大减小,各业务模块按需后台加载或者延迟懒加载,启动速度优化,告别黑屏和启动ANR。

#Modify aapt tool

  • add command argument : apk-module. ex: aapt ...... --apk-module 0x58 (ResourceID Of PackageID=0x58)
  • add RMerge.cpp to merge the --public-R-path and module R Path.So the output R file contains the Main apk R and the module apk R.

#Build To build:

  • $ git clone https://github.com/CtripMobile/DynamicAPK.git
  • $ cd DynamicAPK/
  • $ gradle assembleRelease bundleRelease repackAll
  • Release APK in /build-outputs/***-release-final.apk

About

Solution to implement multi apk/dex loading. (实现Android多apk/dex方式的apk加载,支持资源分包)

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

1 watching

Forks

1 fork
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.