fix(fdroid): strip flutter_tesseract_ocr's stale jcenter buildscript
The plugin's android/build.gradle pins its own AGP 7.1.2 and resolves it via jcenter() (dead since 2021). On a cold Gradle cache the AGP-7.1.2 transitives (apkzlib -> fastutil/json-simple/javawriter) only resolve from jcenter and fail hard, breaking the reproducible fdroid build. Warm-cache runs masked it (the one green armeabi-v7a run never hit jcenter). Strip that buildscript block in prebuild so the plugin inherits the app's AGP 8.11.1 (settings.gradle.kts) and never touches jcenter or old AGP at all.
This commit is contained in:
parent
64b974a7a6
commit
08459ad29d
1 changed files with 3 additions and 0 deletions
|
|
@ -40,6 +40,7 @@ Builds:
|
||||||
- export PUB_CACHE=$(pwd)/.pub-cache
|
- export PUB_CACHE=$(pwd)/.pub-cache
|
||||||
- $$flutter$$/bin/flutter config --no-analytics
|
- $$flutter$$/bin/flutter config --no-analytics
|
||||||
- $$flutter$$/bin/flutter pub get --enforce-lockfile
|
- $$flutter$$/bin/flutter pub get --enforce-lockfile
|
||||||
|
- "sed -i '/^buildscript {/,/^}/d' $PUB_CACHE/hosted/pub.dev/flutter_tesseract_ocr-*/android/build.gradle"
|
||||||
- cd apps/app_seeds
|
- cd apps/app_seeds
|
||||||
- $$flutter$$/bin/dart run slang
|
- $$flutter$$/bin/dart run slang
|
||||||
- $$flutter$$/bin/dart run build_runner build --delete-conflicting-outputs
|
- $$flutter$$/bin/dart run build_runner build --delete-conflicting-outputs
|
||||||
|
|
@ -73,6 +74,7 @@ Builds:
|
||||||
- export PUB_CACHE=$(pwd)/.pub-cache
|
- export PUB_CACHE=$(pwd)/.pub-cache
|
||||||
- $$flutter$$/bin/flutter config --no-analytics
|
- $$flutter$$/bin/flutter config --no-analytics
|
||||||
- $$flutter$$/bin/flutter pub get --enforce-lockfile
|
- $$flutter$$/bin/flutter pub get --enforce-lockfile
|
||||||
|
- "sed -i '/^buildscript {/,/^}/d' $PUB_CACHE/hosted/pub.dev/flutter_tesseract_ocr-*/android/build.gradle"
|
||||||
- cd apps/app_seeds
|
- cd apps/app_seeds
|
||||||
- $$flutter$$/bin/dart run slang
|
- $$flutter$$/bin/dart run slang
|
||||||
- $$flutter$$/bin/dart run build_runner build --delete-conflicting-outputs
|
- $$flutter$$/bin/dart run build_runner build --delete-conflicting-outputs
|
||||||
|
|
@ -106,6 +108,7 @@ Builds:
|
||||||
- export PUB_CACHE=$(pwd)/.pub-cache
|
- export PUB_CACHE=$(pwd)/.pub-cache
|
||||||
- $$flutter$$/bin/flutter config --no-analytics
|
- $$flutter$$/bin/flutter config --no-analytics
|
||||||
- $$flutter$$/bin/flutter pub get --enforce-lockfile
|
- $$flutter$$/bin/flutter pub get --enforce-lockfile
|
||||||
|
- "sed -i '/^buildscript {/,/^}/d' $PUB_CACHE/hosted/pub.dev/flutter_tesseract_ocr-*/android/build.gradle"
|
||||||
- cd apps/app_seeds
|
- cd apps/app_seeds
|
||||||
- $$flutter$$/bin/dart run slang
|
- $$flutter$$/bin/dart run slang
|
||||||
- $$flutter$$/bin/dart run build_runner build --delete-conflicting-outputs
|
- $$flutter$$/bin/dart run build_runner build --delete-conflicting-outputs
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue