- minSdk 19 -> 17(config.gradle) - OkHttp 4.12 -> 3.12.0(app build.gradle 新老双栈统一锁定) - Retrofit 2.11 -> 2.6.0 + Coroutines 1.8.1 -> 1.6.4 - SignRequestPolicy: toHttpUrlOrNull -> HttpUrl.parse(3.12 API 适配) - HeaderInterceptor/SignAuthenticator: 属性访问改方法调用(url()/request()/priorResponse()) - VideoViewTv: SDK_INT<19 强制切 AndroidMediaPlayer 内核 + instanceof 短路保护 - AndroidManifest: overrideLibrary OAID 4.1.3(minSdk 19) - 全局 resolutionStrategy.force 锁定 OkHttp/Retrofit 版本
39 lines
1.2 KiB
Groovy
Executable File
39 lines
1.2 KiB
Groovy
Executable File
ext {
|
|
app_android = [
|
|
compileSdkVersion: 34,
|
|
minSdkVersion : 17, // Android 4.2 兼容(探测编译,待验证)
|
|
targetSdkVersion : 29,
|
|
multiDexEnabled : true
|
|
]
|
|
|
|
app_base_test_dependencies=[
|
|
junit : "junit:junit:4.13.2",
|
|
]
|
|
|
|
app_base_android_test_dependencies=[
|
|
androidJunit : "androidx.test.ext:junit:1.1.3",
|
|
espresso : "androidx.test.espresso:espresso-core:3.4.0",
|
|
]
|
|
app_base_dependencies = [
|
|
corektx : 'androidx.core:core-ktx:1.3.2',
|
|
appcompat : 'androidx.appcompat:appcompat:1.3.0',
|
|
constraint : 'androidx.constraintlayout:constraintlayout:2.0.4',
|
|
material : "com.google.android.material:material:1.4.0",
|
|
]
|
|
|
|
libsVersion = [
|
|
retrofit_version = "2.6.0",
|
|
leanback_version ="1.0.0",
|
|
fresco_version="2.6.0"
|
|
]
|
|
|
|
app_libdata_dependencies = [
|
|
"retrofit" : "com.squareup.retrofit2:retrofit:${retrofit_version}",
|
|
]
|
|
|
|
app_app_dependencies = [
|
|
"leanback" :"androidx.leanback:leanback:${leanback_version}",
|
|
"fresco":"com.facebook.fresco:fresco:${fresco_version}"
|
|
]
|
|
|
|
} |