Recently Written · git

scan-subread

PDF reader that follows an audiobook with the SubRead suite

git clone https://github.com/equwal/scan-subread

Log | Files | Refs


commit 68f726bbcd019a16620d934522dc1ec9f17ece03
equwal <13551856+equwal@users.noreply.github.com>
2026-10-04 21:11:33 -0700

Turn on R8

 android/app/build.gradle | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/android/app/build.gradle b/android/app/build.gradle
index 6bb1ad6..ac5bb4a 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -13,8 +13,8 @@ android {
         minSdkVersion rootProject.ext.minSdkVersion
         targetSdkVersion rootProject.ext.targetSdkVersion
         // versionCode must increase with each release.
-        versionCode 2
-        versionName "0.1.1"
+        versionCode 3
+        versionName "0.1.2"
         testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
         aaptOptions {
              // Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.
@@ -39,8 +39,11 @@ android {
     }
     buildTypes {
         release {
-            minifyEnabled false
-            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
+            // R8 removes unused code and resources. F-Droid asks for it. Capacitor
+            // brings its own keep rules for the plugin classes.
+            minifyEnabled true
+            shrinkResources true
+            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
             if (signingReady) signingConfig signingConfigs.release
         }
     }