aboutsummaryrefslogtreecommitdiff
path: root/androidApp/build.gradle.kts
blob: 6920eb10f494fda9a87235245d2278720293eeb6 (plain)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
plugins {
    id("com.android.application")
    id("kotlinx-serialization")
    kotlin("android")
    id("kotlin-android")
}

android {
    compileSdk = 31
    defaultConfig {
        applicationId = "mx.trackermap.TrackerMap"
        minSdk = 21
        targetSdk = 31
        versionCode = 1
        versionName = "1.0"
        ndk {
            abiFilters.clear()
            abiFilters += listOf("armeabi-v7a", "arm64-v8a")
        }
    }
    buildTypes {
        getByName("release") {
            isMinifyEnabled = false
        }
    }
    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.5.0")
    implementation("androidx.appcompat:appcompat:1.4.1")
    implementation("androidx.constraintlayout:constraintlayout:2.1.3")
    implementation("com.squareup.okhttp3:okhttp:4.9.1")
    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.activity:activity-ktx:1.4.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("com.soywiz.korlibs.krypto:krypto:2.4.12")
    implementation(group = "", name = "WhirlyGlobeMaply", ext = "aar")
    implementation("androidx.legacy:legacy-support-v4:1.0.0")

    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")
}