Compare commits

...
Author SHA1 Message Date
Loïc Wisniewski
ccad74d39d F-Droid recipe: 1.5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 20:56:18 +02:00
Loïc Wisniewski
41f8462ffe 1.5: shrink and optimize release builds with R8
Release APK goes from 115 KB to 47 KB. Shizuku.newProcess is kept explicitly
because ShizukuGrant reaches it by reflection.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 19:46:30 +02:00
Loïc Wisniewski
1ce56ce92c F-Droid recipe: new categories, pin v1.4 commit hash
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 21:52:27 +02:00
4 changed files with 20 additions and 10 deletions

View file

@ -10,13 +10,15 @@ android {
applicationId "com.lpw.graypause"
minSdk 33
targetSdk 36
versionCode 5
versionName "1.4"
versionCode 6
versionName "1.5"
}
buildTypes {
release {
minifyEnabled false
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro"
}
}

8
app/proguard-rules.pro vendored Normal file
View file

@ -0,0 +1,8 @@
# ShizukuGrant calls this private method by reflection (Shizuku 13 hides it); R8 would
# otherwise rename or drop it and the "Grant with Shizuku" button would fail at runtime.
-keep class rikka.shizuku.Shizuku {
private static rikka.shizuku.ShizukuRemoteProcess newProcess(java.lang.String[], java.lang.String[], java.lang.String);
}
# Not shipped: compile-time annotations referenced by the Shizuku library.
-dontwarn androidx.annotation.**

View file

@ -0,0 +1 @@
Smaller APK: release builds are now shrunk and optimized with R8.

View file

@ -1,7 +1,6 @@
# Draft for https://gitlab.com/fdroid/fdroiddata (metadata/com.lpw.graypause.yml).
Categories:
- System
- Theming
- Timer
License: GPL-3.0-or-later
AuthorName: metaheavens
SourceCode: https://metaheavens.de/forgejo/metaheavens/graypause
@ -13,14 +12,14 @@ RepoType: git
Repo: https://metaheavens.de/forgejo/metaheavens/graypause.git
Builds:
- versionName: '1.4'
versionCode: 5
commit: v1.4
- versionName: '1.5'
versionCode: 6
commit: 41f8462ffe73ff1de90669528a00d7649a6d85f3
subdir: app
gradle:
- yes
AutoUpdateMode: Version
UpdateCheckMode: Tags
CurrentVersion: '1.4'
CurrentVersionCode: 5
CurrentVersion: '1.5'
CurrentVersionCode: 6