1414 */
1515apply plugin : ' com.android.application'
1616apply plugin : ' kotlin-android'
17- apply plugin : ' kotlin-android-extensions'
1817apply plugin : ' com.google.android.gms.oss-licenses-plugin'
1918
2019android {
21- compileSdkVersion 30
20+ compileSdkVersion 34
2221 buildToolsVersion " 30.0.1"
2322
2423 defaultConfig {
2524 applicationId " com.example.android.taskinterop"
26- minSdkVersion 16
27- targetSdkVersion 30
25+ minSdkVersion 21
26+ targetSdkVersion 34
2827 versionCode 1
2928 versionName " 1.0"
3029 multiDexEnabled true
@@ -38,29 +37,33 @@ android {
3837 proguardFiles getDefaultProguardFile(' proguard-android-optimize.txt' )
3938 }
4039 }
40+ buildFeatures {
41+ buildConfig = true
42+ }
4143 compileOptions {
4244 sourceCompatibility JavaVersion . VERSION_1_8
4345 targetCompatibility JavaVersion . VERSION_1_8
4446 }
4547 kotlinOptions {
4648 jvmTarget = ' 1.8'
4749 }
50+ namespace ' com.example.android.taskinterop'
4851}
4952
5053dependencies {
5154 implementation fileTree(dir : " libs" , include : [" *.jar" ])
5255 implementation " org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version "
53- implementation ' androidx.core:core-ktx:1.3.2 '
54- implementation ' androidx.appcompat:appcompat:1.2 .0'
55- implementation ' com.google.android.material:material:1.2 .0'
56- implementation ' androidx.constraintlayout:constraintlayout:2.0.1 '
57- implementation ' com.google.android.gms:play-services-tasks:17 .2.0'
58- implementation ' com.google.android.gms:play-services-oss-licenses:17.0 .0'
56+ implementation ' androidx.core:core-ktx:1.13.1 '
57+ implementation ' androidx.appcompat:appcompat:1.7 .0'
58+ implementation ' com.google.android.material:material:1.12 .0'
59+ implementation ' androidx.constraintlayout:constraintlayout:2.1.4 '
60+ implementation ' com.google.android.gms:play-services-tasks:18 .2.0'
61+ implementation ' com.google.android.gms:play-services-oss-licenses:17.1 .0'
5962 // Coroutines dependencies
60- implementation ' org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.1 '
61- implementation ' org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.1 '
63+ implementation ' org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3 '
64+ implementation ' org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3 '
6265 // Lifecycle library
63- implementation ' androidx.lifecycle:lifecycle-runtime-ktx:2.2.0 '
66+ implementation ' androidx.lifecycle:lifecycle-runtime-ktx:2.8.3 '
6467
6568 // Task interop dependencies
6669 // [START rx_gradle]
@@ -70,14 +73,14 @@ dependencies {
7073 implementation " org.jetbrains.kotlin:kotlin-scripting-jvm:$kotlin_version "
7174 // [START ktx_gradle]
7275 // Source: https://github.com/Kotlin/kotlinx.coroutines/tree/master/integration/kotlinx-coroutines-play-services
73- implementation ' org.jetbrains.kotlinx:kotlinx-coroutines-play-services:1.4.1 '
76+ implementation ' org.jetbrains.kotlinx:kotlinx-coroutines-play-services:1.7.3 '
7477 // [END ktx_gradle]
7578 // [START guava_gradle]
76- implementation " androidx.concurrent:concurrent-futures:1.1 .0"
79+ implementation " androidx.concurrent:concurrent-futures:1.2 .0"
7780 // [END guava_gradle]
7881
7982 // Test dependencies
80- testImplementation ' junit:junit:4.12 '
81- androidTestImplementation ' androidx.test.ext:junit:1.1.2 '
82- androidTestImplementation ' androidx.test.espresso:espresso-core:3.3.0 '
83+ testImplementation ' junit:junit:4.13.2 '
84+ androidTestImplementation ' androidx.test.ext:junit:1.2.1 '
85+ androidTestImplementation ' androidx.test.espresso:espresso-core:3.6.1 '
8386}
0 commit comments