PeopleInSpace/wearApp/build.gradle.kts
John O'Reilly ff8a9efb5b
Merge pull request #88 from yschimke/release
Only just working proguard rules for release build
2021-10-29 17:05:09 +01:00

88 lines
No EOL
2.1 KiB
Text

plugins {
id("com.android.application")
id("kotlin-android")
}
android {
compileSdk = Versions.androidCompileSdk
defaultConfig {
applicationId = "com.surrus.peopleinspace"
minSdk = 25
targetSdk = Versions.androidTargetSdk
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
buildFeatures {
compose = true
}
composeOptions {
kotlinCompilerExtensionVersion = Versions.compose
}
kotlinOptions {
freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn"
}
buildTypes {
release {
isMinifyEnabled = true
isShrinkResources = true
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
// temporary hack for local testing of release builds
signingConfig = signingConfigs.getByName("debug")
}
}
packagingOptions {
resources.excludes.add("META-INF/licenses/**")
resources.excludes.add("META-INF/AL2.0")
resources.excludes.add("META-INF/LGPL2.1")
}
}
dependencies {
with(Deps.Android) {
implementation(osmdroidAndroid)
}
with(Deps.AndroidX) {
implementation(activityCompose)
}
with(Deps.Compose) {
implementation(wearFoundation)
implementation(wearMaterial)
implementation(wearNavigation)
implementation(coilCompose)
implementation(uiTooling)
}
with(Deps.Koin) {
implementation(core)
implementation(android)
implementation(compose)
}
with (Deps.Ok) {
implementation(okhttp)
implementation(loggingInterceptor)
}
with(Deps.Test) {
testImplementation(junit)
androidTestImplementation(androidXTestJUnit)
testImplementation(testCore)
testImplementation(robolectric)
testImplementation(mockito)
// Compose testing dependencies
androidTestImplementation(composeUiTest)
androidTestImplementation(composeUiTestJUnit)
debugImplementation(composeUiTestManifest)
}
implementation(project(":common"))
}