aboutsummaryrefslogtreecommitdiff
path: root/androidApp/build.gradle.kts
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2022-01-13 18:17:15 -0600
committerIván Ávalos <avalos@disroot.org>2022-01-13 18:17:15 -0600
commit2f23203099cd152c36571a39c42ff3056c13484c (patch)
treeb3fe1d68b439600b39753c4e6b5cf2b4ab8aa7fb /androidApp/build.gradle.kts
parent2fef9e4abfcfa2895ba4f4c082fe7a7a10acebac (diff)
downloadetbsa-trackermap-mobile-2f23203099cd152c36571a39c42ff3056c13484c.tar.gz
etbsa-trackermap-mobile-2f23203099cd152c36571a39c42ff3056c13484c.tar.bz2
etbsa-trackermap-mobile-2f23203099cd152c36571a39c42ff3056c13484c.zip
Introduced Google product flavor for FCM notifications
Diffstat (limited to 'androidApp/build.gradle.kts')
-rw-r--r--androidApp/build.gradle.kts27
1 files changed, 25 insertions, 2 deletions
diff --git a/androidApp/build.gradle.kts b/androidApp/build.gradle.kts
index 22d894a..eecf55b 100644
--- a/androidApp/build.gradle.kts
+++ b/androidApp/build.gradle.kts
@@ -7,7 +7,7 @@ plugins {
android {
compileSdk = 31
defaultConfig {
- applicationId = "mx.trackermap.TrackerMap.android"
+ applicationId = "mx.trackermap.TrackerMap"
minSdk = 21
targetSdk = 31
versionCode = 1
@@ -21,8 +21,22 @@ android {
buildFeatures {
viewBinding = true
}
+
+ flavorDimensionList.add("regular")
+ productFlavors {
+ create("regular") {
+ dimension = "regular"
+ isDefault = true
+ }
+ create("google") {
+ dimension = "regular"
+ isDefault = true
+ }
+ }
}
+val googleImplementation by configurations
+
dependencies {
implementation(project(":shared"))
implementation("com.google.android.material:material:1.4.0")
@@ -32,12 +46,21 @@ dependencies {
implementation("com.github.Zhuinden:live-event:1.2.0")
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.4.0")
implementation("androidx.lifecycle:lifecycle-viewmodel-savedstate:2.4.0")
+ implementation("androidx.preference:preference-ktx:1.1.1")
implementation("io.insert-koin:koin-android:3.1.4")
implementation("androidx.core:core-ktx:1.7.0")
implementation("androidx.fragment:fragment-ktx:1.4.0")
implementation("io.ktor:ktor-client-serialization:1.6.6")
+ implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.3.1")
implementation("com.github.zerobranch:SwipeLayout:1.3.1")
implementation("com.github.addisonElliott:SegmentedButton:3.1.9")
implementation("mil.nga.sf:sf-wkt:1.0.1")
implementation(group = "", name = "WhirlyGlobeMaply", ext = "aar")
-} \ No newline at end of file
+
+ googleImplementation(platform("com.google.firebase:firebase-bom:29.0.3"))
+ googleImplementation("com.google.firebase:firebase-messaging")
+}
+
+if (gradle.startParameter.taskRequests.toString().contains("Google")) {
+ apply(plugin = "com.google.gms.google-services")
+}