build: API 脱糖

This commit is contained in:
TongTongStudio
2026-06-11 18:29:14 +08:00
parent bb90b742d6
commit 73e373db93

View File

@@ -77,6 +77,7 @@ android {
} }
compileOptions { compileOptions {
coreLibraryDesugaringEnabled true
sourceCompatibility JavaVersion.VERSION_1_8 sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8
} }
@@ -214,6 +215,8 @@ dependencies {
implementation project(path: ':niceimageview') implementation project(path: ':niceimageview')
implementation project(path: ':iconloader') implementation project(path: ':iconloader')
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.1.5'
// 添加 Kotlin 标准库 // 添加 Kotlin 标准库
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
// 添加这行,使用 BOM 统一 Kotlin 相关库的版本 // 添加这行,使用 BOM 统一 Kotlin 相关库的版本