Skip to content

Commit 84e3644

Browse files
jcesarmobiledistante
authored andcommitted
feat(android): Add playServicesAdsVersion variable
1 parent f03c4d4 commit 84e3644

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,12 @@ In file `android/app/src/main/res/values/strings.xml` add the following lines :
7575

7676
Don'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

8086
Add the following in the `ios/App/App/info.plist` file inside of the outermost `<dict>`:

android/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ ext {
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

911
buildscript {
@@ -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:$playServicesAdsVersion"
7779
implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
7880
implementation "androidx.coordinatorlayout:coordinatorlayout:$androidxCoordinatorLayoutVersion"
7981
implementation "androidx.core:core-ktx:1.6.0"

0 commit comments

Comments
 (0)