105 lines
No EOL
2.5 KiB
Text
105 lines
No EOL
2.5 KiB
Text
plugins {
|
|
id("com.android.application")
|
|
kotlin("android")
|
|
id("com.github.ben-manes.versions")
|
|
}
|
|
|
|
android {
|
|
compileSdk = Versions.androidCompileSdk
|
|
|
|
defaultConfig {
|
|
applicationId = "com.surrus.peopleinspace"
|
|
minSdk = Versions.androidMinSdk
|
|
targetSdk = Versions.androidTargetSdk
|
|
|
|
versionCode = 1
|
|
versionName = "1.0"
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
buildFeatures {
|
|
compose = true
|
|
}
|
|
|
|
composeOptions {
|
|
kotlinCompilerExtensionVersion = Versions.compose
|
|
}
|
|
|
|
buildTypes {
|
|
getByName("release") {
|
|
isMinifyEnabled = true
|
|
isShrinkResources = true
|
|
proguardFiles(
|
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
"proguard-rules.pro"
|
|
)
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
}
|
|
|
|
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(material)
|
|
implementation(osmdroidAndroid)
|
|
}
|
|
|
|
with(Deps.AndroidX) {
|
|
implementation(lifecycleRuntimeKtx)
|
|
implementation(lifecycleViewmodelKtx)
|
|
implementation(activityCompose)
|
|
}
|
|
|
|
implementation("androidx.glance:glance-appwidget:1.0.0-SNAPSHOT")
|
|
|
|
|
|
with(Deps.Compose) {
|
|
implementation(ui)
|
|
implementation(uiGraphics)
|
|
implementation(foundationLayout)
|
|
implementation(material)
|
|
implementation(navigation)
|
|
implementation(coilCompose)
|
|
implementation(accompanistNavigationAnimation)
|
|
implementation(uiTooling)
|
|
}
|
|
|
|
|
|
|
|
with(Deps.Koin) {
|
|
implementation(core)
|
|
implementation(android)
|
|
implementation(compose)
|
|
testImplementation(test)
|
|
testImplementation(testJUnit4)
|
|
}
|
|
|
|
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"))
|
|
} |