2021-07-01 19:49:14 +00:00
|
|
|
plugins {
|
|
|
|
id("com.android.application")
|
|
|
|
id("kotlin-android")
|
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
2021-09-15 18:20:55 +00:00
|
|
|
compileSdk = Versions.androidCompileSdk
|
2021-07-01 19:49:14 +00:00
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
applicationId = "com.surrus.peopleinspace"
|
2021-11-06 10:32:57 +00:00
|
|
|
minSdk = 26
|
2021-09-15 18:20:55 +00:00
|
|
|
targetSdk = Versions.androidTargetSdk
|
2021-10-09 16:39:16 +00:00
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
2021-07-01 19:49:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
buildFeatures {
|
|
|
|
compose = true
|
|
|
|
}
|
|
|
|
|
|
|
|
composeOptions {
|
2021-12-17 22:39:35 +00:00
|
|
|
kotlinCompilerExtensionVersion = Versions.composeCompiler
|
2021-07-01 19:49:14 +00:00
|
|
|
}
|
|
|
|
|
2021-10-05 08:28:54 +00:00
|
|
|
kotlinOptions {
|
|
|
|
freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn"
|
|
|
|
}
|
|
|
|
|
2021-07-01 19:49:14 +00:00
|
|
|
buildTypes {
|
|
|
|
release {
|
2021-10-29 15:49:58 +00:00
|
|
|
isMinifyEnabled = true
|
|
|
|
isShrinkResources = true
|
2021-07-01 19:49:14 +00:00
|
|
|
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
|
2021-10-29 15:49:58 +00:00
|
|
|
// temporary hack for local testing of release builds
|
|
|
|
signingConfig = signingConfigs.getByName("debug")
|
2021-07-01 19:49:14 +00:00
|
|
|
}
|
|
|
|
}
|
2021-10-09 16:39:16 +00:00
|
|
|
|
|
|
|
packagingOptions {
|
|
|
|
resources.excludes.add("META-INF/licenses/**")
|
|
|
|
resources.excludes.add("META-INF/AL2.0")
|
|
|
|
resources.excludes.add("META-INF/LGPL2.1")
|
|
|
|
}
|
2021-07-01 19:49:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
|
2021-10-29 15:07:56 +00:00
|
|
|
with(Deps.Android) {
|
|
|
|
implementation(osmdroidAndroid)
|
|
|
|
}
|
|
|
|
|
2021-07-01 19:49:14 +00:00
|
|
|
with(Deps.AndroidX) {
|
|
|
|
implementation(activityCompose)
|
|
|
|
}
|
|
|
|
|
|
|
|
with(Deps.Compose) {
|
2021-12-17 22:39:35 +00:00
|
|
|
implementation(compiler)
|
2021-07-01 19:49:14 +00:00
|
|
|
implementation(wearFoundation)
|
|
|
|
implementation(wearMaterial)
|
2021-10-15 12:44:45 +00:00
|
|
|
implementation(wearNavigation)
|
2021-08-04 20:49:34 +00:00
|
|
|
implementation(coilCompose)
|
2021-10-09 16:39:16 +00:00
|
|
|
implementation(uiTooling)
|
2021-07-02 17:16:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
with(Deps.Koin) {
|
|
|
|
implementation(core)
|
|
|
|
implementation(android)
|
|
|
|
implementation(compose)
|
2021-07-01 19:49:14 +00:00
|
|
|
}
|
|
|
|
|
2021-10-07 20:33:48 +00:00
|
|
|
with (Deps.Ok) {
|
|
|
|
implementation(okhttp)
|
|
|
|
implementation(loggingInterceptor)
|
|
|
|
}
|
|
|
|
|
2021-10-09 16:39:16 +00:00
|
|
|
with(Deps.Test) {
|
|
|
|
testImplementation(junit)
|
|
|
|
androidTestImplementation(androidXTestJUnit)
|
|
|
|
testImplementation(testCore)
|
|
|
|
testImplementation(robolectric)
|
|
|
|
testImplementation(mockito)
|
|
|
|
|
|
|
|
// Compose testing dependencies
|
|
|
|
androidTestImplementation(composeUiTest)
|
|
|
|
androidTestImplementation(composeUiTestJUnit)
|
|
|
|
debugImplementation(composeUiTestManifest)
|
|
|
|
}
|
|
|
|
|
2022-01-29 13:03:32 +00:00
|
|
|
with(Deps.Glance) {
|
|
|
|
implementation(tiles)
|
|
|
|
}
|
2021-11-06 10:32:57 +00:00
|
|
|
|
2021-07-01 19:49:14 +00:00
|
|
|
implementation(project(":common"))
|
|
|
|
}
|