11import com.android.build.gradle.internal.tasks.factory.dependsOn
2+ import org.jetbrains.kotlin.gradle.dsl.JvmTarget
23
34plugins {
45 id(" com.android.application" )
@@ -16,7 +17,7 @@ android {
1617
1718 defaultConfig {
1819 applicationId = " com.google.samples.quickstart.admobexample"
19- minSdk = 21
20+ minSdk = 23
2021 targetSdk = 36
2122 versionCode = 1
2223 versionName = " 1.0"
@@ -38,8 +39,10 @@ android {
3839 sourceCompatibility = JavaVersion .VERSION_17
3940 targetCompatibility = JavaVersion .VERSION_17
4041 }
41- kotlinOptions {
42- jvmTarget = " 17"
42+ kotlin {
43+ compilerOptions {
44+ jvmTarget = JvmTarget .JVM_17
45+ }
4346 }
4447 buildFeatures {
4548 viewBinding = true
@@ -52,21 +55,21 @@ dependencies {
5255 implementation(" androidx.appcompat:appcompat:1.7.1" )
5356 implementation(" com.google.android.material:material:1.12.0" )
5457 implementation(" androidx.browser:browser:1.5.0" )
55- implementation(" androidx.navigation:navigation-fragment-ktx:2.9.0 " )
56- implementation(" androidx.navigation:navigation-ui-ktx:2.9.0 " )
58+ implementation(" androidx.navigation:navigation-fragment-ktx:2.9.3 " )
59+ implementation(" androidx.navigation:navigation-ui-ktx:2.9.3 " )
5760
5861 implementation(" com.google.android.gms:play-services-ads:23.3.0" )
5962
6063 // Import the Firebase BoM (see: https://firebase.google.com/docs/android/learn-more#bom)
61- implementation(platform(" com.google.firebase:firebase-bom:33.15 .0" ))
64+ implementation(platform(" com.google.firebase:firebase-bom:34.1 .0" ))
6265
6366 // For an optimal experience using AdMob, add the Firebase SDK
6467 // for Google Analytics. This is recommended, but not required.
6568 implementation(" com.google.firebase:firebase-analytics" )
6669
67- debugImplementation(" androidx.fragment:fragment-testing:1.8.8 " )
68- androidTestImplementation(" androidx.test.espresso:espresso-core:3.6.1 " )
69- androidTestImplementation(" androidx.test:rules:1.6.1 " )
70- androidTestImplementation(" androidx.test:runner:1.6.2 " )
71- androidTestImplementation(" androidx.test.ext:junit:1.2.1 " )
70+ debugImplementation(" androidx.fragment:fragment-testing:1.8.9 " )
71+ androidTestImplementation(" androidx.test.espresso:espresso-core:3.7.0 " )
72+ androidTestImplementation(" androidx.test:rules:1.7.0 " )
73+ androidTestImplementation(" androidx.test:runner:1.7.0 " )
74+ androidTestImplementation(" androidx.test.ext:junit:1.3.0 " )
7275}
0 commit comments