diff --git a/.gitea/workflows/frontend_build-android.yaml b/.gitea/workflows/frontend_build-android.yaml index fa89f2b..e119bad 100644 --- a/.gitea/workflows/frontend_build-android.yaml +++ b/.gitea/workflows/frontend_build-android.yaml @@ -6,7 +6,7 @@ on: - frontend/** -name: Build and release APK +name: Build and release debug APK jobs: build: @@ -55,7 +55,7 @@ jobs: ls -lah android working-directory: ./frontend - - run: flutter build apk --release --split-per-abi --build-number=${{ gitea.run_number }} + - run: flutter build apk --debug --split-per-abi --build-number=${{ gitea.run_number }} working-directory: ./frontend - name: Upload APKs to artifacts diff --git a/frontend/android/app/build.gradle b/frontend/android/app/build.gradle index 6827865..a01905d 100644 --- a/frontend/android/app/build.gradle +++ b/frontend/android/app/build.gradle @@ -30,14 +30,19 @@ if (flutterVersionName == null) { def secretPropertiesFile = rootProject.file('secrets.properties') +def fallbackPropertiesFile = rootProject.file('fallback.properties') def secretProperties = new Properties() if (secretPropertiesFile.exists()) { secretPropertiesFile.withReader('UTF-8') { reader -> secretProperties.load(reader) } +} else if (fallbackPropertiesFile.exists()) { + fallbackPropertiesFile.withReader('UTF-8') { reader -> + secretProperties.load(reader) + } } else { - throw new GradleException("Secrets file secrets.properties not found") + throw new GradleException("Secrets file (secrets.properties, fallback.properties) not found") } diff --git a/frontend/android/fallback.properties b/frontend/android/fallback.properties index f7ee9e9..0824221 100644 --- a/frontend/android/fallback.properties +++ b/frontend/android/fallback.properties @@ -1 +1,3 @@ +# This file mirrors the state of secrets.properties as a reference for the developer. +# And as a fallback for build.gradle MAPS_API_KEY=Key \ No newline at end of file diff --git a/frontend/android/fastlane/Fastfile b/frontend/android/fastlane/Fastfile index de53656..d03c6ca 100644 --- a/frontend/android/fastlane/Fastfile +++ b/frontend/android/fastlane/Fastfile @@ -21,8 +21,10 @@ platform :android do track: 'alpha', skip_upload_apk: true, skip_upload_changelogs: true, - aab: "build/app/outputs/bundle/release/app-release.aab", - # this is the default output of flutter build ... --release (in particular it is relative) + aab: "../../build/app/outputs/bundle/release/app-release.aab", + # this is the default output of flutter build ... --release + # in particular this the build folder lies in the flutter root folder + # hence the relative path ) end @@ -39,8 +41,10 @@ platform :android do track: "production", skip_upload_apk: true, skip_upload_changelogs: true, - aab: "build/app/outputs/bundle/release/app-release.aab", - # this is the default output of flutter build ... --release (in particular it is relative) + aab: "../../build/app/outputs/bundle/release/app-release.aab", + # this is the default output of flutter build ... --release + # in particular this the build folder lies in the flutter root folder + # hence the relative path ) end end