51 行
1.4 KiB
Groovy
51 行
1.4 KiB
Groovy
|
|
apply plugin: 'com.android.library'
|
||
|
|
apply plugin: 'kotlin-android'
|
||
|
|
|
||
|
|
android {
|
||
|
|
compileSdkVersion versions.compileSdk
|
||
|
|
buildToolsVersion versions.buildTools
|
||
|
|
|
||
|
|
defaultConfig {
|
||
|
|
minSdkVersion versions.minSdk
|
||
|
|
targetSdkVersion versions.targetSdk
|
||
|
|
flavorDimensions "versioncode"
|
||
|
|
buildConfigField("String", "APP_ID", "\"" + apps.applicationId + "\"")
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
buildTypes {
|
||
|
|
release {
|
||
|
|
minifyEnabled false
|
||
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||
|
|
}
|
||
|
|
}
|
||
|
|
productFlavors productF
|
||
|
|
namespace 'com.xuqm.base'
|
||
|
|
}
|
||
|
|
|
||
|
|
dependencies {
|
||
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
||
|
|
|
||
|
|
api androidxDependencies
|
||
|
|
implementation 'androidx.appcompat:appcompat:1.3.0'
|
||
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
||
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
|
||
|
|
|
||
|
|
|
||
|
|
implementation 'org.jetbrains.anko:anko-commons:0.10.5'
|
||
|
|
|
||
|
|
annotationProcessor compilerDependencies
|
||
|
|
commonDependencies.each { k, v ->
|
||
|
|
api(v) {
|
||
|
|
//去除第三方的重复support库
|
||
|
|
exclude group: 'com.android.support'
|
||
|
|
}
|
||
|
|
}
|
||
|
|
//扫码二维码
|
||
|
|
api 'com.huawei.hms:scanplus:1.1.1.301'
|
||
|
|
}
|
||
|
|
// 这个是把源码打入aar包中的任务
|
||
|
|
task sourceJar(type: Jar) {
|
||
|
|
archiveClassifier.set('sources')
|
||
|
|
from android.sourceSets.main.java.srcDirs
|
||
|
|
}
|