34 lines
1.0 KiB
Groovy
34 lines
1.0 KiB
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'])
|
||
// 网络连接类库
|
||
api 'com.squareup.okhttp3:okhttp:4.4.1'
|
||
// https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind
|
||
|
||
api 'com.google.code.gson:gson:2.10.1'
|
||
}
|