代码拉取完成,页面将自动刷新
if (library.toBoolean()) {
apply plugin: 'com.android.library'
} else {
apply plugin: 'com.android.application'
}
android {
//构建版本
compileSdkVersion rootProject.ext.android.compileSdkVersion
//默认的配置
defaultConfig {
minSdkVersion rootProject.ext.android.minSdkVersion
targetSdkVersion rootProject.ext.android.targetSdkVersion
versionCode rootProject.ext.android.versionCode
versionName rootProject.ext.android.versionName
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
ndk {
abiFilters "armeabi-v7a","arm64-v8a"
}
javaCompileOptions {
annotationProcessorOptions {
arguments = [AROUTER_MODULE_NAME: project.getName()]
}
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
dexOptions {
javaMaxHeapSize "4g"
}
lintOptions {
checkReleaseBuilds false
abortOnError false
}
sourceSets {
main {
//清单配置
if (library.toBoolean()) {
manifest.srcFile 'src/main/release/AndroidManifest.xml'
} else {
manifest.srcFile 'src/main/debug/AndroidManifest.xml'
}
//库地址
java.srcDirs = ['src/main/java', 'src/main/aidl']
jniLibs.srcDirs = ['libs']
}
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation "androidx.core:core-ktx:${versions.coreKtxVersion}"
implementation "androidx.appcompat:appcompat:${versions.appcompatVersion}"
implementation "com.google.android.material:material:${versions.materialVersion}"
implementation "androidx.constraintlayout:constraintlayout:${versions.constraintlayoutVersion}"
testImplementation "junit:junit:${versions.junitVersion}"
androidTestImplementation "androidx.test.ext:junit:${versions.junitExtVersion}"
androidTestImplementation "androidx.test.espresso:espresso-core:${versions.espressoVersion}"
implementation project(':common-base')
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。