79 lines
2.3 KiB
Text
79 lines
2.3 KiB
Text
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"
|
|
}
|
|
|
|
buildFeatures {
|
|
compose = true
|
|
}
|
|
|
|
composeOptions {
|
|
kotlinCompilerVersion = "1.4.21"
|
|
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"
|
|
)
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation("androidx.appcompat:appcompat:1.2.0")
|
|
implementation("com.google.android.material:material:1.2.1")
|
|
implementation("androidx.lifecycle:lifecycle-extensions:2.2.0")
|
|
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0")
|
|
implementation("androidx.lifecycle:lifecycle-livedata-ktx:2.2.0")
|
|
|
|
implementation(Compose.ui)
|
|
implementation(Compose.uiGraphics)
|
|
implementation(Compose.uiTooling)
|
|
implementation(Compose.foundationLayout)
|
|
implementation(Compose.material)
|
|
implementation(Compose.runtimeLiveData)
|
|
implementation(Compose.navigation)
|
|
implementation(Compose.accompanist)
|
|
|
|
implementation(Koin.android)
|
|
implementation(Koin.androidViewModel)
|
|
|
|
testImplementation("junit:junit:4.13.1")
|
|
testImplementation("androidx.test:core:1.3.0")
|
|
testImplementation("org.robolectric:robolectric:4.4")
|
|
androidTestImplementation("androidx.test:runner:1.3.0")
|
|
|
|
implementation(project(":common"))
|
|
}
|