2021-04-01 16:19:10 +00:00
|
|
|
import org.jetbrains.kotlin.gradle.plugin.PLUGIN_CLASSPATH_CONFIGURATION_NAME
|
|
|
|
|
2020-10-28 21:19:44 +00:00
|
|
|
plugins {
|
|
|
|
id("com.android.application")
|
|
|
|
kotlin("android")
|
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
|
|
|
compileSdkVersion(AndroidSdk.compile)
|
|
|
|
defaultConfig {
|
|
|
|
applicationId = "com.surrus.peopleinspace"
|
|
|
|
minSdkVersion(AndroidSdk.min)
|
|
|
|
targetSdkVersion(AndroidSdk.target)
|
|
|
|
|
|
|
|
versionCode = 1
|
|
|
|
versionName = "1.0"
|
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
getByName("release") {
|
2020-12-20 10:23:00 +00:00
|
|
|
isMinifyEnabled = true
|
|
|
|
isShrinkResources = true
|
2020-10-28 21:19:44 +00:00
|
|
|
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
}
|
|
|
|
|
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = "1.8"
|
2021-02-18 08:27:52 +00:00
|
|
|
useIR = true
|
2020-10-28 21:19:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
|
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = JavaVersion.VERSION_1_8.toString()
|
|
|
|
freeCompilerArgs = listOf("-Xallow-jvm-ir-dependencies", "-Xskip-prerelease-check",
|
2021-03-10 19:00:31 +00:00
|
|
|
"-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi"
|
2020-10-28 21:19:44 +00:00
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2021-04-01 16:19:10 +00:00
|
|
|
add(PLUGIN_CLASSPATH_CONFIGURATION_NAME, "androidx.compose.compiler:compiler:${Versions.compose}")
|
|
|
|
implementation("androidx.compose.runtime:runtime:${Versions.compose}")
|
|
|
|
|
2021-02-13 10:31:29 +00:00
|
|
|
implementation("com.google.android.material:material:1.3.0")
|
2021-03-24 19:52:16 +00:00
|
|
|
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-alpha05")
|
|
|
|
|
2020-10-28 21:19:44 +00:00
|
|
|
|
|
|
|
implementation(Compose.ui)
|
|
|
|
implementation(Compose.uiGraphics)
|
|
|
|
implementation(Compose.uiTooling)
|
|
|
|
implementation(Compose.foundationLayout)
|
|
|
|
implementation(Compose.material)
|
|
|
|
implementation(Compose.navigation)
|
|
|
|
implementation(Compose.accompanist)
|
|
|
|
|
2021-02-13 10:31:29 +00:00
|
|
|
implementation(Koin.core)
|
2020-10-28 21:19:44 +00:00
|
|
|
implementation(Koin.android)
|
2021-02-13 10:31:29 +00:00
|
|
|
implementation(Koin.compose)
|
2020-10-28 21:19:44 +00:00
|
|
|
|
2021-03-07 14:40:34 +00:00
|
|
|
implementation("org.osmdroid:osmdroid-android:6.1.10")
|
|
|
|
|
2021-02-13 10:31:29 +00:00
|
|
|
testImplementation("junit:junit:4.13.2")
|
2020-12-14 20:54:52 +00:00
|
|
|
testImplementation("androidx.test:core:1.3.0")
|
|
|
|
testImplementation("org.robolectric:robolectric:4.4")
|
|
|
|
androidTestImplementation("androidx.test:runner:1.3.0")
|
2020-10-28 21:19:44 +00:00
|
|
|
|
|
|
|
implementation(project(":common"))
|
|
|
|
}
|