Skip to content

Commit

Permalink
shrinkage
Browse files Browse the repository at this point in the history
  • Loading branch information
RLD-JL committed Aug 19, 2024
1 parent 97abe48 commit acf467c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
19 changes: 15 additions & 4 deletions androidApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
id("kotlin-android")
kotlin("kapt")
id("dagger.hilt.android.plugin")
id("org.jetbrains.kotlin.plugin.compose") version "2.0.10" // this version matches your Kotlin version
id("org.jetbrains.kotlin.plugin.compose") version "2.0.10"
}

dependencies {
Expand Down Expand Up @@ -39,9 +39,6 @@ dependencies {
kapt {
correctErrorTypes = true
}
kotlin {
jvmToolchain(17)
}
android {
compileSdk = 34
defaultConfig {
Expand All @@ -55,6 +52,20 @@ android {
}
}

buildTypes {
getByName("release") {
isMinifyEnabled = true
isShrinkResources = true
proguardFiles("proguard-rules.pro")
}
getByName("debug") {
isMinifyEnabled = false
isShrinkResources = false
}
}
kotlinOptions {
jvmTarget = "17"
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
Expand Down
6 changes: 3 additions & 3 deletions shared/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
@Suppress("DSL_SCOPE_VIOLATION")

@Suppress("DSL_SCOPE_VIOLATION")
plugins {
kotlin("multiplatform")
id("com.android.library")
Expand All @@ -24,6 +24,7 @@ kotlin {
}
}
}

sourceSets {
val commonMain by getting {
dependencies {
Expand Down Expand Up @@ -54,7 +55,6 @@ kotlin {
dependencies {
implementation("io.ktor:ktor-client-ios:${libs.versions.ktorVersion.get()}")
implementation("com.squareup.sqldelight:native-driver:1.5.3")

}
}
val iosTest by getting
Expand Down Expand Up @@ -85,8 +85,8 @@ android {
compileSdk = 34
sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml")
defaultConfig {
testOptions.targetSdk = 34
minSdk = 21
targetSdk = 34
}
namespace = "com.rld.justlisten"
compileOptions {
Expand Down

0 comments on commit acf467c

Please sign in to comment.