Merge "Upgrade SpaLib AGP to 8.0.0" into udc-dev

This commit is contained in:
Chaohui Wang
2023-04-23 05:53:07 +00:00
committed by Android (Google) Code Review
4 changed files with 17 additions and 19 deletions

View File

@@ -14,17 +14,27 @@
* limitations under the License. * limitations under the License.
*/ */
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
buildscript { buildscript {
ext { ext {
BUILD_TOOLS_VERSION = "30.0.3" BUILD_TOOLS_VERSION = "30.0.3"
MIN_SDK = 21 MIN_SDK = 21
TARGET_SDK = 33 TARGET_SDK = 33
jetpack_compose_version = '1.4.0-beta01' jetpack_compose_version = '1.4.0-beta01'
jetpack_compose_compiler_version = '1.4.0' jetpack_compose_compiler_version = '1.4.4'
} }
} }
plugins { plugins {
id 'com.android.application' version '8.0.0-beta05' apply false id 'com.android.application' version '8.0.0' apply false
id 'com.android.library' version '8.0.0-beta05' apply false id 'com.android.library' version '8.0.0' apply false
id 'org.jetbrains.kotlin.android' version '1.8.0' apply false id 'org.jetbrains.kotlin.android' version '1.8.10' apply false
}
subprojects {
tasks.withType(KotlinCompile).configureEach {
kotlinOptions {
jvmTarget = "17"
freeCompilerArgs = ["-Xjvm-default=all"]
}
}
} }

View File

@@ -42,12 +42,8 @@ android {
} }
} }
compileOptions { compileOptions {
sourceCompatibility JavaVersion.VERSION_11 sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_11 targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = '11'
freeCompilerArgs = ["-Xjvm-default=all"]
} }
buildFeatures { buildFeatures {
compose true compose true

View File

@@ -51,10 +51,6 @@ android {
sourceCompatibility JavaVersion.VERSION_17 sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17 targetCompatibility JavaVersion.VERSION_17
} }
kotlinOptions {
jvmTarget = '17'
freeCompilerArgs = ["-Xjvm-default=all"]
}
buildFeatures { buildFeatures {
compose true compose true
} }
@@ -79,7 +75,7 @@ dependencies {
api "androidx.compose.ui:ui-tooling-preview:$jetpack_compose_version" api "androidx.compose.ui:ui-tooling-preview:$jetpack_compose_version"
api "androidx.lifecycle:lifecycle-livedata-ktx" api "androidx.lifecycle:lifecycle-livedata-ktx"
api "androidx.lifecycle:lifecycle-runtime-compose" api "androidx.lifecycle:lifecycle-runtime-compose"
api "androidx.navigation:navigation-compose:2.6.0-alpha07" api "androidx.navigation:navigation-compose:2.6.0-alpha08"
api "com.github.PhilJay:MPAndroidChart:v3.1.0-alpha" api "com.github.PhilJay:MPAndroidChart:v3.1.0-alpha"
api "com.google.android.material:material:1.7.0-alpha03" api "com.google.android.material:material:1.7.0-alpha03"
debugApi "androidx.compose.ui:ui-tooling:$jetpack_compose_version" debugApi "androidx.compose.ui:ui-tooling:$jetpack_compose_version"

View File

@@ -41,10 +41,6 @@ android {
sourceCompatibility JavaVersion.VERSION_17 sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17 targetCompatibility JavaVersion.VERSION_17
} }
kotlinOptions {
jvmTarget = '17'
freeCompilerArgs = ["-Xjvm-default=all"]
}
buildFeatures { buildFeatures {
compose true compose true
} }