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

Commit bfb95cf

Browse files
author
SD MacBookAir 1
committed
WIP( Android Google PlayServices ): adding check for google play services in the installer.js file
1 parent 11a5058 commit bfb95cf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

publish/scripts/installer.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,13 +463,18 @@ repositories {
463463
def supportVersion = project.hasProperty("supportVersion") ? project.supportVersion : "26.0.0"
464464
def googlePlayServicesVersion = project.hasProperty('googlePlayServicesVersion') ? project.googlePlayServicesVersion : "12.0.1"
465465
466+
if ( VersionNumber.parse( googlePlayServicesVersion ) < VersionNumber.parse( '9.2' ) ) {
467+
throw new GradleException('Google Play services version too low, please update to at least 9.2');
468+
}
469+
466470
dependencies {
467471
compile "com.android.support:appcompat-v7:$supportVersion"
468472
compile "com.android.support:cardview-v7:$supportVersion"
469473
compile "com.android.support:customtabs:$supportVersion"
470474
compile "com.android.support:design:$supportVersion"
471475
compile "com.android.support:support-compat:$supportVersion"
472476
477+
473478
474479
// make sure you have these versions by updating your local Android SDK's (Android Support repo and Google repo)
475480
compile "com.google.firebase:firebase-core:$googlePlayServicesVersion"

0 commit comments

Comments
 (0)