Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable R8 for code & resource shrinking #81

Merged
merged 1 commit into from
Nov 12, 2024
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
3 changes: 2 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ android {
]
}
release {
minifyEnabled false
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.testRelease
manifestPlaceholders = [
Expand Down
8 changes: 7 additions & 1 deletion app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,10 @@

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
#-renamesourcefileattribute SourceFile
-keep class dev.arkbuilders.arklib.** { *; }
-dontwarn javax.xml.stream.XMLResolver
-dontwarn org.slf4j.impl.StaticLoggerBinder
-dontobfuscate

-keepattributes Signature
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ class NotesListAdapter(

if (note is TextNote) {
holder.contentPreview.text = note.text
} else {
holder.contentPreview.text = ""
}
holder.layoutAudioView.root.gone()
holder.ivGraphicThumb.gone()
Expand Down