commit 71632ba6fa9bb95f4acbab41c7a4e9ec6ca1dfae equwal <truex@equwal.com> 2026-09-26 12:43:03 -0700 Turn on R8 and set the version to 0.5.0 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), and it uses the Audiobook category.
app/build.gradle.kts | 9 ++++--- fastlane/metadata/android/en-US/changelogs/6.txt | 1 + fdroid/space.subread.overlay.yml | 33 +++++++----------------- 3 files changed, 16 insertions(+), 27 deletions(-)
diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 8b1af1f..6bd3df0 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -24,8 +24,8 @@ android { minSdk = 26 targetSdk = 36 // Plain numbers, in this file: F-Droid reads them from here to find a new release. - versionCode = 5 - versionName = "0.4.0" + versionCode = 6 + versionName = "0.5.0" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" // A link to the Ko-fi page. Google Play is not given it (-PplayStore=true), the same @@ -47,7 +47,10 @@ android { buildTypes { debug { applicationIdSuffix = ".debug" } release { - isMinifyEnabled = false + // R8 removes unused code and resources, so the APK is smaller. F-Droid asks for it. + isMinifyEnabled = true + isShrinkResources = true + proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt")) if (signingReady) signingConfig = signingConfigs.getByName("release") } } diff --git a/fastlane/metadata/android/en-US/changelogs/6.txt b/fastlane/metadata/android/en-US/changelogs/6.txt new file mode 100644 index 0000000..f41804d --- /dev/null +++ b/fastlane/metadata/android/en-US/changelogs/6.txt @@ -0,0 +1 @@ +An "Anki" button under a selected word sends the word and its line to SubRead Anki. Flash card apps can ask for the subtitle line of now. The app is smaller: R8 removes code that it does not use. diff --git a/fdroid/space.subread.overlay.yml b/fdroid/space.subread.overlay.yml index 4c61f95..03a74d6 100644 --- a/fdroid/space.subread.overlay.yml +++ b/fdroid/space.subread.overlay.yml @@ -1,5 +1,5 @@ Categories: - - Multimedia + - Audiobook - Science & Education License: AGPL-3.0-only AuthorName: equwal @@ -12,34 +12,19 @@ AutoName: SubRead Overlay RepoType: git Repo: https://github.com/equwal/subread-overlay.git +Binaries: https://github.com/equwal/subread-overlay/releases/download/v%v/SubRead-Overlay-%v.apk Builds: - - versionName: 0.1.1 - versionCode: 2 - commit: f97704e83deff38bf92125aff677e4f508caa3e1 - subdir: app - gradle: - - yes - - versionName: 0.2.0 - versionCode: 3 - commit: v0.2.0 - subdir: app - gradle: - - yes - - versionName: 0.3.0 - versionCode: 4 - commit: v0.3.0 - subdir: app - gradle: - - yes - - versionName: 0.4.0 - versionCode: 5 - commit: v0.4.0 + - versionName: 0.5.0 + versionCode: 6 + commit: v0.5.0 subdir: app gradle: - yes +AllowedAPKSigningKeys: e46f72ef28c79489cad0f1eee60cbf7fd3f29b5bff1bb1d82bab1e30427ff44f + AutoUpdateMode: Version UpdateCheckMode: Tags -CurrentVersion: 0.4.0 -CurrentVersionCode: 5 +CurrentVersion: 0.5.0 +CurrentVersionCode: 6 \ No newline at end of file