Skip to content

Commit 0cb7c5a

Browse files
committed
Update proguard rules and build configuration
1 parent 504be06 commit 0cb7c5a

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

gradle/libs.versions.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[versions]
2-
agp = "8.7.3"
2+
agp = "8.9.1"
33
android-desugar = "2.1.5"
44
androidx-core = "1.16.0"
55
androidx-test-rules = "1.6.1"

lib/build.gradle.kts

+8
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ android {
2424
aarMetadata {
2525
minCompileSdk = 29
2626
}
27+
consumerProguardFiles("consomer-rules.pro")
2728
}
2829

2930
compileOptions {
@@ -51,6 +52,13 @@ android {
5152
}
5253
}
5354

55+
buildTypes {
56+
release {
57+
isMinifyEnabled = false
58+
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"))
59+
}
60+
}
61+
5462
lint {
5563
disable += listOf("AllowBackup", "InvalidPackage")
5664
}

lib/consumer-rules.pro

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
# keep all iCalendar properties/parameters (used via reflection)
3+
-keep class net.fortuna.ical4j.** { *; }
4+
5+
# don't warn when these are missing
6+
-dontwarn com.github.erosb.jsonsKema.**
7+
#-dontwarn javax.cache.**
8+
#-dontwarn org.jparsec.**

0 commit comments

Comments
 (0)