Commit 7519f27d by wangtao

temp

parent 63f8a771
def build_module_app = 0x00 //壳app module组件
def build_module_login = 0x02 //登录组件
def build_module_passport = 0x06//通行证组件
ext.isModule= false
//切换运行方式
ext.isModule= true
//壳app
ext.build_module_app = build_module_app
ext.build_modele_app_id = "com.module.hikcreate"
//登录模块
ext.build_module_login = build_module_login
ext.build_modele_login_resourcePrefix = "lg_"
//通行证模块
ext.build_module_passport = build_module_passport
ext.build_modele_passport_resourcePrefix = "passport_"
//百度相关lib_module
ext.build_modele_baidu_resourcePrefix = "baidu_"
//当前运行的model
ext.build_module = build_module_passport
if (build_module == build_module_login) { //替换成对应的module代号值
apply plugin: 'com.android.application'
} else {
apply plugin: 'com.android.library'
}
android {
defaultConfig {
if (build_module == build_module_login) {//替换成对应的module代号值
applicationId applicationId +"."+ project.getName()
}
minSdkVersion build_config.min_sdk
targetSdkVersion build_config.target_sdk
versionCode build_config.version_code
versionName build_config.version_name
resourcePrefix build_modele_login_resourcePrefix//替换成对应的module限制字符串
multiDexEnabled true
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
compileSdkVersion build_config.compile_sdk
dexOptions {
javaMaxHeapSize "4g"
preDexLibraries = false
jumboMode = true
}
dataBinding {
enabled = true
}
lintOptions {
abortOnError false
}
compileOptions {
encoding = 'utf-8'
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
sourceSets {
main {
if (rootProject.build_module == build_module_login) {//替换成对应的module代号值
manifest.srcFile 'src/main/module/AndroidManifest.xml'
} else {
manifest.srcFile 'src/main/AndroidManifest.xml'
java {
exclude 'com/duiafudao/app_login/application/**'
}
}
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment