Template
mirror of
https://github.com/MorpheApp/morphe-patches-template.git
synced 2026-12-01 00:19:34 +00:00
14 lines
519 B
Prolog
14 lines
519 B
Prolog
# R8 rules shared by all extensions (applied in settings.gradle.kts).
|
|
|
|
-dontobfuscate
|
|
-dontoptimize
|
|
-keepattributes *
|
|
|
|
# Extension classes are only called by bytecode that patches add, so R8 sees no uses of them.
|
|
# Keep everything except the Kotlin standard library, which R8 then trims to what extension code
|
|
# uses. Listing only your extension packages here would also shrink other libraries, but a package
|
|
# missing from that list is removed without any build error.
|
|
-keep class !kotlin.**,!kotlinx.**,** {
|
|
*;
|
|
}
|