A android library for multidex to lazy install in the right time.
build.gradle
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile "com.github.jllk:multidex-hook:0.0.1-beta@aar"
}
Application
:
class SampleApp extends Application {
override def attachBaseContext(base: Context): Unit = {
super.attachBaseContext(base)
// SampleModuleMgr.getConfig returns Map[module, dexIdx]
JLLKMultiDexHook.lazyInstall(SampleModuleMgr.getConfig)
}
}
multidex-maker: https://github.com/JLLK/multidex-maker
multidex-installer: https://github.com/JLLK/multidex-installer
multidex-sample: https://github.com/JLLK/multidex-sample
This lib is licensed under Apache License 2.0. See LICENSE for details.