Closed IzzySoft closed 3 months ago
./gradlew --dependency-verification lenient assembleRelease
will make it build
There currently is an issue with gradle/AS and metadata verification, see https://github.com/Tommy-Geenexus/exif-eraser/blob/main/.github/workflows/assemble.yml#L33C9-L33C14
Thanks, that helped! Builds now, though I had to patch out the call to signingConfigs.getByName
as it failed at the signing part (I need an unsigned APK anyway to compare yours against). Now it not only builds, but also results in a Reproducible Build again – thanks!
For background: Reproducible Builds, special client support and more in our repo :wink:
I'll update the gradle build to prevent exceptions when missing the signing config, that should make it easier for you.
Eh, it actually was a one-liner, and is set up now – so no need to adjust:
- tag: v6.2.0
apks:
- apk_pattern: app-release\.apk
apk_url: https://github.com/Tommy-Geenexus/exif-eraser/releases/download/v6.2.0/app-release.apk
build:
- sed -r '/signingConfigs.getByName/d' -i app/build.gradle.kts
- chmod +x gradlew
- ./gradlew --dependency-verification lenient assembleRelease
- mv app/build/outputs/apk/release/*unsigned.apk /outputs/unsigned.apk
I have that with so many apps, that sed
line I add in less than a minute after skimming the corresponding build.gradle[.kts]
.
Should you already have changed it, please let me know so I adjust the recipe on the next update. No need to carry unnecessary commands, though in this case it wouldn't even fail I guess (just find nothing to replace, maybe).
You can find the results here, and the full recipe here, if you're curious :wink:
Should you already have changed it, please let me know so I adjust the recipe on the next update.
getByName has been replaced by findByName which simply returns null, that should fix building release without a config (see https://github.com/Tommy-Geenexus/exif-eraser/commit/c3b18629cd09b308c3905b60ee3d76b8a9236220)
New release built fine and is RB, thanks!
Trying to build the latest release using
./gradlew assembleRelease
from the commit the tag points to leads to a crash:That worked well with the previous one. So am I missing something here, or was maybe something missed to commit/push that's needed to build? Building on Debian Bookworm here with JDK 17, in case it matters.