Skip to content
This repository was archived by the owner on Jun 9, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[versions]
agp = "8.7.3"
agp = "8.9.1"
android-desugar = "2.1.5"
androidx-core = "1.16.0"
androidx-test-rules = "1.6.1"
Expand Down
12 changes: 12 additions & 0 deletions lib/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ android {
aarMetadata {
minCompileSdk = 29
}

// These ProGuard/R8 rules will be included in the final APK.
consumerProguardFiles("consumer-rules.pro")
}

compileOptions {
Expand Down Expand Up @@ -51,6 +54,15 @@ android {
}
}

buildTypes {
release {
// Android libraries shouldn't be minified:
// https://developer.android.com/studio/projects/android-library#Considerations
isMinifyEnabled = false
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"))
}
}

lint {
disable += listOf("AllowBackup", "InvalidPackage")
}
Expand Down
11 changes: 11 additions & 0 deletions lib/consumer-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

# keep all iCalendar properties/parameters (used via reflection)
-keep class net.fortuna.ical4j.** { *; }

# don't warn when these are missing
-dontwarn com.github.erosb.jsonsKema.**
-dontwarn groovy.**
-dontwarn java.beans.Transient
-dontwarn javax.cache.**
-dontwarn org.codehaus.groovy.**
-dontwarn org.jparsec.**
Loading