Coder Social home page Coder Social logo

augmify / dynamicapk Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ctripmobile/dynamicapk

0.0 1.0 0.0 7.75 MB

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

License: MIT License

Java 10.54% C++ 88.54% Makefile 0.40% C 0.48% Shell 0.05%

dynamicapk's Introduction

"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:

dynamicapk's People

Contributors

hrchen avatar

Watchers

 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.