diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-09-03 10:28:53 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-09-03 10:28:53 +1200 |
commit | 5705bc2c909fb93ba18ac42ade6a450b72e32598 (patch) | |
tree | a223ce5f854e05b1806f2afd1f84c2406641ba78 /app/build.gradle | |
parent | 56eb501b5e33dcd15f6d0f4c3af229ec75b433fd (diff) | |
download | etbsa-traccar-manager-android-5705bc2c909fb93ba18ac42ade6a450b72e32598.tar.gz etbsa-traccar-manager-android-5705bc2c909fb93ba18ac42ade6a450b72e32598.tar.bz2 etbsa-traccar-manager-android-5705bc2c909fb93ba18ac42ade6a450b72e32598.zip |
Add Firebase and support lib
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 + } } |