29 lines
868 B
Groovy
29 lines
868 B
Groovy
apply plugin: 'com.android.library'
|
||
apply plugin: 'maven-publish'
|
||
apply from: '../.winboll/winboll_lib_build.gradle'
|
||
apply from: '../.winboll/winboll_lint_build.gradle'
|
||
|
||
android {
|
||
|
||
// 1. compileSdkVersion:必须 ≥ targetSdkVersion,建议直接等于 targetSdkVersion(30)
|
||
compileSdkVersion 30
|
||
|
||
// 2. buildToolsVersion:需匹配 compileSdkVersion,建议使用 30.x.x 最新稳定版(无需高于 compileSdkVersion)
|
||
buildToolsVersion "30.0.3" // 这是 30 对应的最新稳定版,避免使用 beta 版
|
||
|
||
defaultConfig {
|
||
minSdkVersion 23
|
||
targetSdkVersion 30
|
||
}
|
||
buildTypes {
|
||
release {
|
||
minifyEnabled false
|
||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||
}
|
||
}
|
||
}
|
||
|
||
dependencies {
|
||
api fileTree(dir: 'libs', include: ['*.jar'])
|
||
}
|