gradle plugin for ctrip DynamicAPK.
###hot to use
- MDynamicHome/build.gradle
jcenter()
dependencies {
classpath 'com.mlibrary:multiapk.plugin:0.0.1'
}
apply plugin: 'com.android.application'
apply plugin: 'com.mlibrary.multiapk.plugin.application'
multiApkApplication {
solidMode = project.solidMode
buildToolsVersion = project.buildToolsVersion
supportLibraryVersion = project.supportLibraryVersion
packageName = "com.mctrip"
moduleConfigFilePath = "$rootDir/gradle/dynamic/apk_module_config.xml"
keystore = "$rootDir:MApps:MCtripApp/debug.keystore"
keyAlias = "androiddebugkey"
keyPassword = "android"
storePassword = "android"
}
apply plugin: 'com.android.library'
apply plugin: 'com.mlibrary.multiapk.plugin.library'
multiApkLibrary {
packageName = "com.mctrip.modules.device"
moduleProguardRulesFilePath = "$rootDir/gradle/dynamic/sub-project-proguard-rules.pro"
}