File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,12 @@ In file `android/app/src/main/res/values/strings.xml` add the following lines :
7575
7676Don't forget to replace ` [APP_ID] ` by your AdMob application Id.
7777
78+ #### Variables
79+
80+ This plugin will use the following project variables (defined in your app's ` variables.gradle ` file):
81+
82+ - ` $playServicesAdsVersion ` version of ` com.google.android.gms:play-services-ads ` (default: ` 21.1.0 ` )
83+
7884### iOS configuration
7985
8086Add the following in the ` ios/App/App/info.plist ` file inside of the outermost ` <dict> ` :
Original file line number Diff line number Diff line change 44 androidxCoordinatorLayoutVersion = project. hasProperty(' androidxCoordinatorLayoutVersion' ) ? rootProject. ext. androidxCoordinatorLayoutVersion : ' 1.2.0'
55 androidxJunitVersion = project. hasProperty(' androidxJunitVersion' ) ? rootProject. ext. androidxJunitVersion : ' 1.1.3'
66 androidxEspressoCoreVersion = project. hasProperty(' androidxEspressoCoreVersion' ) ? rootProject. ext. androidxEspressoCoreVersion : ' 3.4.0'
7+ playServicesAdsVersion = project. hasProperty(' playServicesAdsVersion' ) ? rootProject. ext. playServicesAdsVersion : ' 21.1.0'
8+
79}
810
911buildscript {
@@ -73,7 +75,7 @@ dependencies {
7375 // androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
7476
7577 // after 20.5.0, require minCompileSdk (31)
76- implementation ' com.google.android.gms:play-services-ads:21.1.0 '
78+ implementation " com.google.android.gms:play-services-ads:$p layServicesAdsVersion "
7779 implementation " androidx.appcompat:appcompat:$androidxAppCompatVersion "
7880 implementation " androidx.coordinatorlayout:coordinatorlayout:$androidxCoordinatorLayoutVersion "
7981 implementation " androidx.core:core-ktx:1.6.0"
You can’t perform that action at this time.
0 commit comments