90 lines
No EOL
2.2 KiB
Text
90 lines
No EOL
2.2 KiB
Text
plugins {
|
|
id("com.android.application")
|
|
id("kotlin-android")
|
|
}
|
|
|
|
android {
|
|
compileSdk = Versions.androidCompileSdk
|
|
|
|
defaultConfig {
|
|
applicationId = "com.surrus.peopleinspace"
|
|
minSdk = 26
|
|
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("androidx.glance:glance-wear:1.0.0-SNAPSHOT")
|
|
|
|
implementation(project(":common"))
|
|
} |