From 1b439e9499897bac588b5637627f4dfd0c466564 Mon Sep 17 00:00:00 2001 From: vjrj Date: Tue, 21 Jul 2026 19:12:11 +0200 Subject: [PATCH] =?UTF-8?q?chore(release):=20prep=20v0.1.10=20=E2=80=94=20?= =?UTF-8?q?harden=20play=20vs=20jcenter/OOM,=20point=20recipe=20at=20v0.1.?= =?UTF-8?q?10?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - play job: apply the same two fixes the fdroid recipe uses (strip flutter_tesseract_ocr's dead-jcenter buildscript; cap Gradle heap to -Xmx4g + no daemon) so a cold-cache production AAB build can't hit either blocker. play builds the AAB directly, not via the recipe, so it was still exposed. - pubspec: 0.1.9+11 -> 0.1.10+12. - fdroid recipe: versionName 0.1.10, versionCodes 121/122/123, commit v0.1.10, CurrentVersion(Code) 0.1.10/123. binary: uses %v so it resolves to the v0.1.10 release assets the tag build will upload. The v0.1.10 tag is intentionally NOT cut here: cutting it deploys to Google Play PRODUCTION (100%) and uploads the 3 signed reference APKs. --- .forgejo/workflows/release.yml | 7 +++++++ apps/app_seeds/pubspec.yaml | 2 +- docs/fdroid/org.comunes.tane.yml | 22 +++++++++++----------- 3 files changed, 19 insertions(+), 12 deletions(-) diff --git a/.forgejo/workflows/release.yml b/.forgejo/workflows/release.yml index e52d86c..96da7ee 100644 --- a/.forgejo/workflows/release.yml +++ b/.forgejo/workflows/release.yml @@ -61,6 +61,13 @@ jobs: working-directory: apps/app_seeds run: | flutter pub get + # Same two hardenings the fdroid recipe applies (this job builds the AAB + # directly, not via the recipe, so a cold cache is still exposed): + # 1) strip flutter_tesseract_ocr's dead-jcenter buildscript (AGP 7.1.2) so + # it inherits the app's AGP instead of hitting jcenter.bintray.com; + # 2) cap the Gradle heap so the build fits the shared CI host's RAM. + find "${PUB_CACHE:-$HOME/.pub-cache}" -path '*flutter_tesseract_ocr-*/android/build.gradle' -exec sed -i '/^buildscript {/,/^}/d' {} + + printf 'org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g\norg.gradle.daemon=false\n' >> android/gradle.properties dart run slang dart run build_runner build --delete-conflicting-outputs diff --git a/apps/app_seeds/pubspec.yaml b/apps/app_seeds/pubspec.yaml index 3677465..241cb72 100644 --- a/apps/app_seeds/pubspec.yaml +++ b/apps/app_seeds/pubspec.yaml @@ -1,7 +1,7 @@ name: tane description: "Tane — local-first, encrypted, decentralized traditional-seed inventory and market." publish_to: 'none' -version: 0.1.9+11 +version: 0.1.10+12 environment: sdk: ^3.11.5 diff --git a/docs/fdroid/org.comunes.tane.yml b/docs/fdroid/org.comunes.tane.yml index 5408114..ec42f99 100644 --- a/docs/fdroid/org.comunes.tane.yml +++ b/docs/fdroid/org.comunes.tane.yml @@ -22,9 +22,9 @@ Repo: https://git.comunes.org/comunes/tane.git AllowedAPKSigningKeys: ddfae432091b8248a8a4a1b353487fa626301f4357ef835e94ec312f69418e38 Builds: - - versionName: 0.1.9 - versionCode: 111 - commit: v0.1.9 + - versionName: 0.1.10 + versionCode: 121 + commit: v0.1.10 subdir: apps/app_seeds output: build/app/outputs/flutter-apk/app-armeabi-v7a-release.apk binary: https://git.comunes.org/comunes/tane/releases/download/v%v/app-armeabi-v7a-release.apk @@ -58,9 +58,9 @@ Builds: $PUB_CACHE/hosted/pub.dev/flutter_tesseract_ocr-0.4.31/android/libs/tesseract4android-release.aar - $$flutter$$/bin/flutter build apk --release --split-per-abi --target-platform=android-arm - - versionName: 0.1.9 - versionCode: 112 - commit: v0.1.9 + - versionName: 0.1.10 + versionCode: 122 + commit: v0.1.10 subdir: apps/app_seeds output: build/app/outputs/flutter-apk/app-arm64-v8a-release.apk binary: https://git.comunes.org/comunes/tane/releases/download/v%v/app-arm64-v8a-release.apk @@ -94,9 +94,9 @@ Builds: $PUB_CACHE/hosted/pub.dev/flutter_tesseract_ocr-0.4.31/android/libs/tesseract4android-release.aar - $$flutter$$/bin/flutter build apk --release --split-per-abi --target-platform=android-arm64 - - versionName: 0.1.9 - versionCode: 113 - commit: v0.1.9 + - versionName: 0.1.10 + versionCode: 123 + commit: v0.1.10 subdir: apps/app_seeds output: build/app/outputs/flutter-apk/app-x86_64-release.apk binary: https://git.comunes.org/comunes/tane/releases/download/v%v/app-x86_64-release.apk @@ -138,5 +138,5 @@ VercodeOperation: - '%c * 10 + 3' UpdateCheckData: apps/app_seeds/pubspec.yaml|version:\s*[\d.]+\+(\d+)|apps/app_seeds/pubspec.yaml|version:\s*([\d.]+)\+ -CurrentVersion: 0.1.9 -CurrentVersionCode: 113 +CurrentVersion: 0.1.10 +CurrentVersionCode: 123