diff options
Diffstat (limited to 'app/build.gradle')
-rw-r--r-- | app/build.gradle | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/app/build.gradle b/app/build.gradle index 0f0e8d8..c963ac4 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -12,6 +12,11 @@ android { versionName "2.3" } + productFlavors { + regular + google + } + buildTypes { release { minifyEnabled false @@ -21,6 +26,24 @@ android { } dependencies { + compile 'com.android.support:design:26.0.1' testCompile 'junit:junit:4.12' testCompile 'org.robolectric:robolectric:3.0' + googleCompile 'com.google.firebase:firebase-core:11.2.0' + googleCompile 'com.google.firebase:firebase-crash:11.2.0' +} + +if (getGradle().getStartParameter().getTaskRequests().toString().contains("Google")) { + apply plugin: 'com.google.gms.google-services' + + task copyJson(type: Copy) { + from '../../traccar-shared/google-services' + into '.' + include 'traccar-manager-android.json' + rename('traccar-manager-android.json', 'google-services.json') + } + + afterEvaluate { + preBuild.dependsOn copyJson + } } |