diff --git a/src/pandroid/app/build.gradle.kts b/src/pandroid/app/build.gradle.kts index b20512d62..10b5748ab 100644 --- a/src/pandroid/app/build.gradle.kts +++ b/src/pandroid/app/build.gradle.kts @@ -21,20 +21,21 @@ android { } buildTypes { - release { - minifyEnabled true - shrinkResources true + getByName("release") { + isMinifyEnabled = true + isShrinkResources = true proguardFiles( getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro" ) } - debug { - minifyEnabled false - shrinkResources false - debuggable true - proguardFiles( getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro" - + getByName("debug") { + isMinifyEnabled = false + isShrinkResources = false + isDebuggable = true + proguardFiles( + getDefaultProguardFile("proguard-android-optimize.txt"), + "proguard-rules.pro" ) } } @@ -50,4 +51,4 @@ dependencies { implementation("androidx.preference:preference:1.2.1") implementation("androidx.constraintlayout:constraintlayout:2.1.4") implementation("com.google.code.gson:gson:2.10.1") -} \ No newline at end of file +}