96 lines
2.6 KiB
Text
96 lines
2.6 KiB
Text
plugins {
|
|
id("com.android.application")
|
|
kotlin("android")
|
|
}
|
|
|
|
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"
|
|
}
|
|
}
|
|
|
|
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
|
|
kotlinOptions {
|
|
jvmTarget = JavaVersion.VERSION_1_8.toString()
|
|
freeCompilerArgs = listOf(
|
|
"-Xallow-jvm-ir-dependencies", "-Xskip-prerelease-check",
|
|
"-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi",
|
|
"-P",
|
|
"plugin:androidx.compose.compiler.plugins.kotlin:suppressKotlinVersionCompatibilityCheck=true"
|
|
)
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation("com.google.android.material:material:1.3.0")
|
|
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.4.0-alpha01")
|
|
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.4.0-alpha01")
|
|
implementation("androidx.activity:activity-compose:1.3.0-beta2")
|
|
|
|
with(Deps.Compose) {
|
|
implementation(ui)
|
|
implementation(uiGraphics)
|
|
implementation(uiTooling)
|
|
implementation(foundationLayout)
|
|
implementation(material)
|
|
implementation(navigation)
|
|
implementation(accompanistCoil)
|
|
implementation(accompanistPlaceholder)
|
|
}
|
|
|
|
with(Deps.Koin) {
|
|
implementation(core)
|
|
implementation(android)
|
|
implementation(compose)
|
|
testImplementation(test)
|
|
testImplementation(testJUnit4)
|
|
}
|
|
|
|
with(Deps.Test) {
|
|
testImplementation(junit)
|
|
testImplementation("androidx.test:core:1.3.0")
|
|
testImplementation("org.robolectric:robolectric:4.4")
|
|
testImplementation(mockito)
|
|
androidTestImplementation(testRunner)
|
|
}
|
|
|
|
implementation("org.osmdroid:osmdroid-android:6.1.10")
|
|
|
|
implementation(project(":common"))
|
|
}
|