空格
This commit is contained in:
75
module.build.gradle
Normal file
75
module.build.gradle
Normal file
@@ -0,0 +1,75 @@
|
||||
if (isBuildModule.toBoolean()) {
|
||||
//作为独立App应用运行
|
||||
apply plugin: 'com.android.application'
|
||||
} else {
|
||||
//作为组件运行
|
||||
apply plugin: 'com.android.library'
|
||||
}
|
||||
|
||||
apply plugin: 'kotlin-android'
|
||||
apply plugin: 'kotlin-android-extensions'
|
||||
apply plugin: 'kotlin-kapt'
|
||||
|
||||
android {
|
||||
compileSdkVersion 35
|
||||
buildToolsVersion build_versions.build_tools
|
||||
defaultConfig {
|
||||
minSdkVersion 24
|
||||
targetSdkVersion 28
|
||||
versionCode 1
|
||||
versionName 1.0
|
||||
consumerProguardFiles 'consumer-rules.pro'
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
|
||||
// javaCompileOptions {
|
||||
// annotationProcessorOptions {
|
||||
// arguments = [AROUTER_MODULE_NAME: project.getName()]
|
||||
// }
|
||||
// }
|
||||
kapt {
|
||||
arguments {
|
||||
arg("AROUTER_MODULE_NAME", project.getName())
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
buildTypes {
|
||||
debug {
|
||||
minifyEnabled false
|
||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
release {
|
||||
minifyEnabled false
|
||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
sourceSets {
|
||||
main {
|
||||
//jni库统一放在libs目录下
|
||||
// jniLibs.srcDir = ['libs']
|
||||
if (isBuildModule.toBoolean()) {
|
||||
//单独运行
|
||||
manifest.srcFile 'src/main/module/AndroidManifest.xml'
|
||||
} else {
|
||||
//合并到宿主中
|
||||
manifest.srcFile 'src/main/AndroidManifest.xml'
|
||||
resources {
|
||||
|
||||
//正式版本时.剔除debug文件夹下的所有调式文件
|
||||
exclude 'src/debug/*'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_11
|
||||
targetCompatibility JavaVersion.VERSION_11
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation deps.arouter_api
|
||||
kapt deps.arouter_compiler
|
||||
// kapt deps.arouter_annotation
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user