diff --git a/Example/PrebidDemoJava/build.gradle b/Example/PrebidDemoJava/build.gradle index cf6ccf042..39f11d41b 100644 --- a/Example/PrebidDemoJava/build.gradle +++ b/Example/PrebidDemoJava/build.gradle @@ -38,7 +38,7 @@ dependencies { implementation 'androidx.constraintlayout:constraintlayout:2.1.4' // Ads - implementation 'com.google.android.gms:play-services-ads:+' + implementation libs.google.play.services.ads // Video Player implementation 'com.google.android.exoplayer:exoplayer:2.15.1' diff --git a/Example/PrebidDemoKotlin/build.gradle b/Example/PrebidDemoKotlin/build.gradle index 2249c450d..cc6b31cc1 100644 --- a/Example/PrebidDemoKotlin/build.gradle +++ b/Example/PrebidDemoKotlin/build.gradle @@ -46,7 +46,7 @@ dependencies { implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1' // Advertisement - implementation 'com.google.android.gms:play-services-ads:+' + implementation libs.google.play.services.ads implementation "com.applovin:applovin-sdk:11.5.3" implementation "com.google.android.gms:play-services-ads-identifier:18.0.1" // For Applovin Max diff --git a/Example/PrebidInternalTestApp/build.gradle b/Example/PrebidInternalTestApp/build.gradle index 1ef79b7a8..e59fcb314 100644 --- a/Example/PrebidInternalTestApp/build.gradle +++ b/Example/PrebidInternalTestApp/build.gradle @@ -84,7 +84,7 @@ dependencies { // Ad dependencies implementation 'com.google.android.gms:play-services-base:18.1.0' - implementation 'com.google.android.gms:play-services-ads:+' + implementation libs.google.play.services.ads implementation "com.applovin:applovin-sdk:11.3.2" implementation "com.google.android.gms:play-services-ads-identifier:18.0.1" // For Applovin Max diff --git a/PrebidMobile/PrebidMobile-admobAdapters/build.gradle b/PrebidMobile/PrebidMobile-admobAdapters/build.gradle index 84b67e1c5..0b9286692 100644 --- a/PrebidMobile/PrebidMobile-admobAdapters/build.gradle +++ b/PrebidMobile/PrebidMobile-admobAdapters/build.gradle @@ -10,5 +10,5 @@ android { dependencies { implementation project(":PrebidMobile") - implementation 'com.google.android.gms:play-services-ads:+' + implementation libs.google.play.services.ads } diff --git a/PrebidMobile/PrebidMobile-gamEventHandlers/build.gradle b/PrebidMobile/PrebidMobile-gamEventHandlers/build.gradle index 84b67e1c5..0b9286692 100644 --- a/PrebidMobile/PrebidMobile-gamEventHandlers/build.gradle +++ b/PrebidMobile/PrebidMobile-gamEventHandlers/build.gradle @@ -10,5 +10,5 @@ android { dependencies { implementation project(":PrebidMobile") - implementation 'com.google.android.gms:play-services-ads:+' + implementation libs.google.play.services.ads } diff --git a/PrebidMobile/PrebidMobile-gamEventHandlers/src/test/java/org/prebid/mobile/eventhandlers/global/GoogleAdVersionTest.java b/PrebidMobile/PrebidMobile-gamEventHandlers/src/test/java/org/prebid/mobile/eventhandlers/global/GoogleAdVersionTest.java index f6fd647dc..dabcbd54e 100644 --- a/PrebidMobile/PrebidMobile-gamEventHandlers/src/test/java/org/prebid/mobile/eventhandlers/global/GoogleAdVersionTest.java +++ b/PrebidMobile/PrebidMobile-gamEventHandlers/src/test/java/org/prebid/mobile/eventhandlers/global/GoogleAdVersionTest.java @@ -20,7 +20,8 @@ public void checkIfLastVersionUsed() { assertEquals( "Google Ad SDK was updated to " + currentVersion + "! " + "Please test Prebid SDK with the new version, resolve compilation problems, rewrite deprecated code. " + - "After testing you must update PrebidMobile.TESTED_GOOGLE_SDK_VERSION" + + "After testing you must update PrebidMobile.TESTED_GOOGLE_SDK_VERSION," + + "update google-play-services-ads version on the libs.versions.toml " + "and also must update version in publishing XML files (scripts/Maven/*.xml.", currentVersion, PrebidMobile.TESTED_GOOGLE_SDK_VERSION diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml new file mode 100644 index 000000000..dac328158 --- /dev/null +++ b/gradle/libs.versions.toml @@ -0,0 +1,5 @@ +[versions] +google-play-services-ads = "22.6.0" + +[libraries] +google-play-services-ads = { group = "com.google.android.gms", name = "play-services-ads", version.ref = "google-play-services-ads" }