2020-10-28 21:19:44 +00:00
|
|
|
plugins {
|
|
|
|
id("com.android.application")
|
|
|
|
kotlin("android")
|
2021-09-17 19:04:32 +00:00
|
|
|
id("com.github.ben-manes.versions")
|
2020-10-28 21:19:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
2021-06-19 17:19:48 +00:00
|
|
|
compileSdk = Versions.androidCompileSdk
|
2021-06-19 13:02:01 +00:00
|
|
|
|
2020-10-28 21:19:44 +00:00
|
|
|
defaultConfig {
|
|
|
|
applicationId = "com.surrus.peopleinspace"
|
2021-06-19 17:19:48 +00:00
|
|
|
minSdk = Versions.androidMinSdk
|
|
|
|
targetSdk = Versions.androidTargetSdk
|
2020-10-28 21:19:44 +00:00
|
|
|
|
|
|
|
versionCode = 1
|
|
|
|
versionName = "1.0"
|
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
}
|
|
|
|
|
2021-05-29 13:49:17 +00:00
|
|
|
buildFeatures {
|
|
|
|
compose = true
|
|
|
|
}
|
|
|
|
|
|
|
|
composeOptions {
|
2021-12-17 22:39:35 +00:00
|
|
|
kotlinCompilerExtensionVersion = Versions.composeCompiler
|
2021-05-29 13:49:17 +00:00
|
|
|
}
|
|
|
|
|
2020-10-28 21:19:44 +00:00
|
|
|
buildTypes {
|
|
|
|
getByName("release") {
|
2020-12-20 10:23:00 +00:00
|
|
|
isMinifyEnabled = true
|
|
|
|
isShrinkResources = true
|
2021-06-19 14:00:09 +00:00
|
|
|
proguardFiles(
|
|
|
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
|
|
"proguard-rules.pro"
|
|
|
|
)
|
2020-10-28 21:19:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
}
|
|
|
|
|
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = "1.8"
|
|
|
|
}
|
2021-07-09 20:41:58 +00:00
|
|
|
|
|
|
|
packagingOptions {
|
2021-07-23 09:09:37 +00:00
|
|
|
resources.excludes.add("META-INF/licenses/**")
|
|
|
|
resources.excludes.add("META-INF/AL2.0")
|
|
|
|
resources.excludes.add("META-INF/LGPL2.1")
|
2021-07-09 20:41:58 +00:00
|
|
|
}
|
2020-10-28 21:19:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2021-06-20 12:52:13 +00:00
|
|
|
with(Deps.Android) {
|
2021-06-20 05:23:36 +00:00
|
|
|
implementation(material)
|
2021-06-20 12:52:13 +00:00
|
|
|
implementation(osmdroidAndroid)
|
|
|
|
}
|
|
|
|
|
|
|
|
with(Deps.AndroidX) {
|
2021-06-20 05:23:36 +00:00
|
|
|
implementation(lifecycleRuntimeKtx)
|
|
|
|
implementation(lifecycleViewmodelKtx)
|
|
|
|
implementation(activityCompose)
|
|
|
|
}
|
2021-03-24 19:52:16 +00:00
|
|
|
|
2021-10-31 20:49:33 +00:00
|
|
|
implementation("androidx.glance:glance-appwidget:1.0.0-SNAPSHOT")
|
|
|
|
|
|
|
|
|
2021-06-19 17:51:54 +00:00
|
|
|
with(Deps.Compose) {
|
2021-12-17 22:39:35 +00:00
|
|
|
implementation(compiler)
|
2021-06-19 17:51:54 +00:00
|
|
|
implementation(ui)
|
|
|
|
implementation(uiGraphics)
|
|
|
|
implementation(foundationLayout)
|
|
|
|
implementation(material)
|
|
|
|
implementation(navigation)
|
2021-08-04 20:49:34 +00:00
|
|
|
implementation(coilCompose)
|
2021-08-07 10:28:06 +00:00
|
|
|
implementation(accompanistNavigationAnimation)
|
2021-09-03 17:15:58 +00:00
|
|
|
implementation(uiTooling)
|
2021-06-19 17:51:54 +00:00
|
|
|
}
|
2020-10-28 21:19:44 +00:00
|
|
|
|
2021-10-31 20:49:33 +00:00
|
|
|
|
|
|
|
|
2021-06-19 17:51:54 +00:00
|
|
|
with(Deps.Koin) {
|
|
|
|
implementation(core)
|
|
|
|
implementation(android)
|
|
|
|
implementation(compose)
|
|
|
|
testImplementation(test)
|
|
|
|
testImplementation(testJUnit4)
|
|
|
|
}
|
2021-06-19 17:38:31 +00:00
|
|
|
|
2021-06-19 17:51:54 +00:00
|
|
|
with(Deps.Test) {
|
|
|
|
testImplementation(junit)
|
2021-09-03 16:24:03 +00:00
|
|
|
androidTestImplementation(androidXTestJUnit)
|
2021-09-03 16:46:28 +00:00
|
|
|
testImplementation(testCore)
|
|
|
|
testImplementation(robolectric)
|
|
|
|
testImplementation(mockito)
|
2021-07-09 20:41:58 +00:00
|
|
|
|
|
|
|
// Compose testing dependencies
|
|
|
|
androidTestImplementation(composeUiTest)
|
|
|
|
androidTestImplementation(composeUiTestJUnit)
|
|
|
|
debugImplementation(composeUiTestManifest)
|
2021-06-19 17:51:54 +00:00
|
|
|
}
|
2020-10-28 21:19:44 +00:00
|
|
|
|
|
|
|
implementation(project(":common"))
|
2021-06-20 09:32:24 +00:00
|
|
|
}
|