File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11plugins {
22 id(" com.android.application" )
33 id(" kotlin-android" )
4- id(" org.jetbrains.kotlin.plugin.compose" ) version " 2.0.21 "
4+ id(" org.jetbrains.kotlin.plugin.compose" ) version " 2.2.0 "
55}
66
7+ val kotlinVersion: String by rootProject.extra
8+
79// Apply GMS or Huawei plugin based on build variant
810// Check at configuration time, not when task graph is ready
911val taskRequests = gradle.startParameter.taskRequests.toString().lowercase()
@@ -87,7 +89,7 @@ android {
8789
8890dependencies {
8991 // Kotlin
90- implementation(" org.jetbrains.kotlin:kotlin-stdlib-jdk8:2.0.21 " )
92+ implementation(" org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion " )
9193 implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3" )
9294
9395 // AndroidX
Original file line number Diff line number Diff line change 11// Top-level build file where you can add configuration options common to all sub-projects/modules.
22
3+ val kotlinVersion by extra(" 2.2.0" )
4+
35buildscript {
6+ val kotlinVersion: String by extra
47 repositories {
58 google()
69 mavenCentral()
@@ -10,7 +13,7 @@ buildscript {
1013 }
1114 dependencies {
1215 classpath(" com.android.tools.build:gradle:8.8.2" )
13- classpath(" org.jetbrains.kotlin:kotlin-gradle-plugin:2.0.21 " )
16+ classpath(" org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion " )
1417 classpath(" com.google.gms:google-services:4.3.10" )
1518 classpath(" com.huawei.agconnect:agcp:1.9.1.304" )
1619 }
You can’t perform that action at this time.
0 commit comments