Skip to content

Commit 9a8ce24

Browse files
committed
Fix android release package
1 parent 96490c9 commit 9a8ce24

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

build.gradle

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,11 @@ android { // android specific configuration
5252
}
5353

5454
buildTypes { // the build variants for the lib
55-
release {
56-
minifyEnabled true
55+
getByName("release") {
56+
minifyEnabled false
57+
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"))
5758
}
58-
debug {
59+
getByName("debug") {
5960
minifyEnabled false
6061
}
6162
}
@@ -85,10 +86,8 @@ kotlin {
8586
}
8687
}
8788
// use the android preset
88-
android("android") {
89-
// you can also publish both "release" and "debug"
90-
publishLibraryVariants("release")
91-
publishLibraryVariants("debug")
89+
android {
90+
publishLibraryVariants("release", "debug")
9291
}
9392

9493
sourceSets {

0 commit comments

Comments
 (0)