Recently Written · git

ink-update

Ink Update: tells you when Rebind, Ink Recents or Ink Dim has a new version. F-Droid, then Google Play, then GitHub.

git clone https://github.com/equwal/ink-update

Log | Files | Refs


commit a17a139b7c1f95c61ac4525837b670e098b99810
truex <truex@equwal.com>
2026-09-26 13:26:43 -0700

Turn on R8 and set the version to 0.1.1

F-Droid asks for R8 and for a reproducible build. The recipe now names the signed APK on GitHub (Binaries) and the key that signs it (AllowedAPKSigningKeys).

 CHANGELOG.md                                     |  4 ++++
 app/build.gradle.kts                             | 10 ++++++----
 fastlane/metadata/android/en-US/changelogs/2.txt |  1 +
 fdroid/README.md                                 |  2 +-
 fdroid/dev.equwal.inkupdate.yml                  | 14 +++++++++-----
 5 files changed, 21 insertions(+), 10 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 632490e..1243a88 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,9 @@
 # Changelog
 
+## 0.1.1
+
+- The APK is smaller: R8 removes the code that the app does not use.
+
 ## 0.1.0
 
 First release.
diff --git a/app/build.gradle.kts b/app/build.gradle.kts
index 5e48f76..19755a4 100644
--- a/app/build.gradle.kts
+++ b/app/build.gradle.kts
@@ -25,8 +25,8 @@ android {
         applicationId = "dev.equwal.inkupdate"
         minSdk = 31
         targetSdk = 36
-        versionCode = 1
-        versionName = "0.1.0"
+        versionCode = 2
+        versionName = "0.1.1"
     }
 
     signingConfigs {
@@ -42,8 +42,10 @@ android {
 
     buildTypes {
         release {
-            // No shrinking: the app is small, and R8 adds nothing here.
-            isMinifyEnabled = false
+            // R8 removes unused code and resources. F-Droid asks for it.
+            isMinifyEnabled = true
+            isShrinkResources = true
+            proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"))
             if (hasSigning) signingConfig = signingConfigs.getByName("release")
         }
         debug {
diff --git a/fastlane/metadata/android/en-US/changelogs/2.txt b/fastlane/metadata/android/en-US/changelogs/2.txt
new file mode 100644
index 0000000..6701a6e
--- /dev/null
+++ b/fastlane/metadata/android/en-US/changelogs/2.txt
@@ -0,0 +1 @@
+The APK is smaller: R8 removes the code that the app does not use.
diff --git a/fdroid/README.md b/fdroid/README.md
index 63904e0..d2634e0 100644
--- a/fdroid/README.md
+++ b/fdroid/README.md
@@ -1,6 +1,6 @@
 # How to submit Ink Update to F-Droid
 
-1. Tag the release `v0.1.0` and push the tag.
+1. Tag the release `v0.1.1` and push the tag.
 2. Fork `fdroid/fdroiddata` on GitLab, then clone your fork.
 3. Copy `dev.equwal.inkupdate.yml` into `metadata/` of your clone.
 4. Run `fdroid readmeta` and `fdroid lint dev.equwal.inkupdate` to check it.
diff --git a/fdroid/dev.equwal.inkupdate.yml b/fdroid/dev.equwal.inkupdate.yml
index 3c4d795..2b1297d 100644
--- a/fdroid/dev.equwal.inkupdate.yml
+++ b/fdroid/dev.equwal.inkupdate.yml
@@ -12,16 +12,20 @@ AutoName: Ink Update
 
 RepoType: git
 Repo: https://github.com/equwal/ink-update.git
+Binaries: 
+  https://github.com/equwal/ink-update/releases/download/v%v/ink-update-%v.apk
 
 Builds:
-  - versionName: 0.1.0
-    versionCode: 1
-    commit: v0.1.0
+  - versionName: 0.1.1
+    versionCode: 2
+    commit: v0.1.1
     subdir: app
     gradle:
       - yes
 
+AllowedAPKSigningKeys: bcb3127e1931a9b906e8e2498184ef5380f97cbf3531e5bc8bb0064476ee2919
+
 AutoUpdateMode: Version
 UpdateCheckMode: Tags
-CurrentVersion: 0.1.0
-CurrentVersionCode: 1
+CurrentVersion: 0.1.1
+CurrentVersionCode: 2