Skip to content

Commit 3363bff

Browse files
authored
feat(android): Add googlePlayIntegrityVersion variable (#6)
1 parent 884e55a commit 3363bff

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,15 @@ try {
3636
// Recommendation: Report to backend and exit the application
3737
}
3838
```
39+
40+
## Android
41+
42+
### Variables
43+
44+
This plugin will use the following project variables (defined in your app's `variables.gradle` file):
45+
46+
- `googlePlayIntegrityVersion`: version of `com.google.android.play:integrity` (default: `1.3.0`)
47+
3948
## API
4049

4150
<docgen-index>

android/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ ext {
33
androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.7.0'
44
androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.2.1'
55
androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.6.1'
6+
googlePlayIntegrityVersion = project.hasProperty('googlePlayIntegrityVersion') ? rootProject.ext.googlePlayIntegrityVersion : '1.3.0'
67
}
78

89
buildscript {
@@ -53,7 +54,7 @@ dependencies {
5354
implementation project(':capacitor-android')
5455
implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
5556
testImplementation "junit:junit:$junitVersion"
56-
implementation 'com.google.android.play:integrity:1.3.0'
57+
implementation "com.google.android.play:integrity:$googlePlayIntegrityVersion"
5758
androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
5859
androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
5960
}

0 commit comments

Comments
 (0)