Skip to content
Merged
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
14 changes: 10 additions & 4 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# No obfuscation because open source
# We depend on the convention of generated DAO names by Room in order to support performance profiling.
# If you decide to obfuscate the final APK, please verify the performance profiling tool continues to function.
# We obfuscate the final APK while keeping generated Room DAO names unchanged.
# We depend on the convention of generated DAO names by Room to support performance profiling.
# If you modify this rule, please verify that the performance profiling tool continues to function.
# See: https://github.com/simpledotorg/simple-android/issues/2470
-dontobfuscate
-keepnames class **_RoomDao_Impl

# We process generated Room DAO metadata and use a runtime exception for performance profiling.
# If you remove this, please ensure that the profiling does not break.
Expand Down Expand Up @@ -46,6 +46,12 @@
<fields>;
}

# SyncProgress is serialized by Moshi's reflective EnumJsonAdapter.
# Keep enum field names unchanged so Moshi can resolve them by reflection.
-keepclassmembers enum org.simple.clinic.sync.SyncProgress {
<fields>;
}

# The name of @JsonClass types is used to look up the generated adapter.
-keepnames @com.squareup.moshi.JsonClass class *

Expand Down
Loading