Skip to content

Commit 9f661e5

Browse files
author
Jedlix
committed
Version 1.0.0
1 parent 365f58b commit 9f661e5

File tree

5 files changed

+25
-6
lines changed

5 files changed

+25
-6
lines changed

example/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ android {
3333

3434
buildTypes {
3535
release {
36-
isMinifyEnabled = false
36+
isMinifyEnabled = true
3737
proguardFiles(
3838
getDefaultProguardFile("proguard-android-optimize.txt"),
3939
"proguard-rules.pro"

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ androidxBrowserVersion=1.5.0
1818
dokkaVersion=1.8.10
1919

2020
sdkVersion=1.6.0
21-
exampleAsMavenLocal=false
21+
exampleAsMavenLocal=false
+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
#Wed Jan 05 11:34:33 CET 2022
21
distributionBase=GRADLE_USER_HOME
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
42
distributionPath=wrapper/dists
5-
zipStorePath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
64
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists

sdk/build.gradle.kts

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ android {
1515
minSdk = 21
1616

1717
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
18+
consumerProguardFile("proguard-rules.pro")
1819
}
1920

2021
buildTypes {

sdk/proguard-rules.pro

+20-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,23 @@
1818

1919
# If you keep the line number information, uncomment this to
2020
# hide the original source file name.
21-
#-renamesourcefileattribute SourceFile
21+
#-renamesourcefileattribute SourceFile
22+
23+
-keepattributes *Annotation*, InnerClasses
24+
-dontnote kotlinx.serialization.AnnotationsKt # core serialization annotations
25+
26+
# kotlinx-serialization-json specific. Add this if you have java.lang.NoClassDefFoundError kotlinx.serialization.json.JsonObjectSerializer
27+
-keepclassmembers class kotlinx.serialization.json.** {
28+
*** Companion;
29+
}
30+
-keepclasseswithmembers class kotlinx.serialization.json.** {
31+
kotlinx.serialization.KSerializer serializer(...);
32+
}
33+
34+
-keep,includedescriptorclasses class com.jedlix.sdk.**$$serializer { *; }
35+
-keepclassmembers class com.jedlix.sdk.** {
36+
*** Companion;
37+
}
38+
-keepclasseswithmembers class com.jedlix.sdk.** {
39+
kotlinx.serialization.KSerializer serializer(...);
40+
}

0 commit comments

Comments
 (0)