forked from luisbouca/cordova-plugin-firebase-analytics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
25 lines (23 loc) · 878 Bytes
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
buildscript {
repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.+'
classpath 'com.google.gms:google-services:4.3.+'
}
}
// use postBuildExtras to make sure the plugin is applied after
// cdvPluginPostBuildExtras. Therefore if googleServices is added
// to cdvPluginPostBuildExtras somewhere else, the plugin execution
// will be skipped and project build will be successfull
ext.postBuildExtras = {
if (project.extensions.findByName('googleServices') == null) {
// apply plugin: 'com.google.gms.google-services'
// class must be used instead of id(string) to be able to apply plugin from non-root gradle file
apply plugin: com.google.gms.googleservices.GoogleServicesPlugin
googleServices.disableVersionCheck = true
}
}