Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit 6ae0fb0

Browse files
Incorrect Google Play Services version check in include.gradle #894
1 parent f69cd92 commit 6ae0fb0

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

demo-push/app_resources/Android/app.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
// compile 'com.android.support:recyclerview-v7:+'
66
//}
77

8+
//project.ext {
9+
// googlePlayServicesVersion = "15.0.1"
10+
//}
11+
812
android {
913
defaultConfig {
1014
generatedDensities = []

publish/scripts/installer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -573,8 +573,8 @@ repositories {
573573
def supportVersion = project.hasProperty("supportVersion") ? project.supportVersion : "26.0.0"
574574
def googlePlayServicesVersion = project.hasProperty('googlePlayServicesVersion') ? project.googlePlayServicesVersion : "15.0.1"
575575
576-
if (VersionNumber.parse(googlePlayServicesVersion) < VersionNumber.parse('15.0.1')) {
577-
throw new GradleException(" googlePlayServicesVersion set too low, please update to at least 15.0.1 (currently set to $googlePlayServicesVersion)");
576+
if (VersionNumber.parse(googlePlayServicesVersion) < VersionNumber.parse('15.0.+')) {
577+
throw new GradleException(" googlePlayServicesVersion set too low, please update to at least 15.0.0 / 15.0.+ (currently set to $googlePlayServicesVersion)");
578578
}
579579
580580
dependencies {

src/scripts/postinstall.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3371,8 +3371,8 @@ repositories {
33713371
def supportVersion = project.hasProperty("supportVersion") ? project.supportVersion : "26.0.0"
33723372
def googlePlayServicesVersion = project.hasProperty('googlePlayServicesVersion') ? project.googlePlayServicesVersion : "15.0.1"
33733373
3374-
if (VersionNumber.parse(googlePlayServicesVersion) < VersionNumber.parse('15.0.1')) {
3375-
throw new GradleException(" googlePlayServicesVersion set too low, please update to at least 15.0.1 (currently set to $googlePlayServicesVersion)");
3374+
if (VersionNumber.parse(googlePlayServicesVersion) < VersionNumber.parse('15.0.+')) {
3375+
throw new GradleException(" googlePlayServicesVersion set too low, please update to at least 15.0.0 / 15.0.+ (currently set to $googlePlayServicesVersion)");
33763376
}
33773377
33783378
dependencies {

0 commit comments

Comments
 (0)