组件化App配置一览
- 项目根目录gradle.properties配置:
IsBuildModule=false
build.gradle文件配置
buildTypes {
debug {
buildConfigField "String", "ENV", "\"debug\""
signingConfig signingConfigs.debug
}
release {
buildConfigField "String", "ENV", "\"release\""
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
//需要加上该参数否则会提示debug not found
publishNonDefault true
sourceSets {
main {
jniLibs.srcDirs = ['libs']
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:25.3.1'
//router
compile 'com.github.mzule.activityrouter:activityrouter:1.2.2'
}
resourcePrefix "ba