only-bible-app v3.7.2+24
git clone https://git.pyrossh.dev/only-bible-app
The only bible app you will ever need. No ads. No in-app purchases. No distractions.
android/fastlane/Fastfile
| fe24dd6 | 1 | # This file contains the fastlane.tools configuration |
| fe24dd6 | 2 | # You can find the documentation at https://docs.fastlane.tools |
| fe24dd6 | 3 | # |
| fe24dd6 | 4 | # For a list of all available actions, check out |
| fe24dd6 | 5 | # |
| fe24dd6 | 6 | # https://docs.fastlane.tools/actions |
| fe24dd6 | 7 | # |
| fe24dd6 | 8 | # For a list of all available plugins, check out |
| fe24dd6 | 9 | # |
| fe24dd6 | 10 | # https://docs.fastlane.tools/plugins/available-plugins |
| fe24dd6 | 11 | # |
| fe24dd6 | 12 | |
| fe24dd6 | 13 | # Uncomment the line if you want fastlane to automatically update itself |
| fe24dd6 | 14 | # update_fastlane |
| fe24dd6 | 15 | |
| fe24dd6 | 16 | default_platform(:android) |
| fe24dd6 | 17 | |
| 8b87a9b | 18 | # Screenshots are left untouched by default (regenerating/uploading them on |
| 8b87a9b | 19 | # every release is slow and usually a no-op since the UI rarely changes). |
| 8b87a9b | 20 | # Opt in with `fastlane deploy update_screenshots:true` or |
| 8b87a9b | 21 | # `UPDATE_SCREENSHOTS=true fastlane deploy`. |
| 8b87a9b | 22 | def update_screenshots_requested?(options) |
| 8b87a9b | 23 | options[:update_screenshots] || %w[1 true].include?(ENV["UPDATE_SCREENSHOTS"]) |
| 8b87a9b | 24 | end |
| 8b87a9b | 25 | |
| fe24dd6 | 26 | platform :android do |
| fe24dd6 | 27 | desc "Runs all the tests" |
| fe24dd6 | 28 | lane :test do |
| fe24dd6 | 29 | gradle(task: "test") |
| fe24dd6 | 30 | end |
| fe24dd6 | 31 | |
| fe24dd6 | 32 | desc "Submit a new Beta Build to Crashlytics Beta" |
| fe24dd6 | 33 | lane :beta do |
| fe24dd6 | 34 | gradle(task: "clean assembleRelease") |
| fe24dd6 | 35 | crashlytics |
| fe24dd6 | 36 | |
| fe24dd6 | 37 | # sh "your_script.sh" |
| fe24dd6 | 38 | # You can also use other beta testing services here |
| fe24dd6 | 39 | end |
| fe24dd6 | 40 | |
| e26d881 | 41 | desc "Regenerate Play Store screenshots from the Flutter golden tests" |
| e26d881 | 42 | lane :screenshots do |
| e26d881 | 43 | sh("cd ../.. && flutter test test/screenshot_test.dart --update-goldens") |
| e26d881 | 44 | end |
| e26d881 | 45 | |
| fe24dd6 | 46 | desc "Deploy a new version to the Google Play" |
| 0228ae8 | 47 | lane :deploy do |options| |
| 8b87a9b | 48 | update_screenshots = update_screenshots_requested?(options) |
| 8b87a9b | 49 | screenshots if update_screenshots |
| 0228ae8 | 50 | # Invoking gradle directly (as the old `gradle(task: "clean assembleRelease")` |
| 0228ae8 | 51 | # did) skips `flutter pub get`'s plugin-registrant regeneration, which is |
| 0228ae8 | 52 | # what excludes dev-only plugins like integration_test from the release |
| 0228ae8 | 53 | # classpath. Building through `flutter build` runs that step first, so |
| 0228ae8 | 54 | # GeneratedPluginRegistrant.java is correct for a release build. It also |
| 0228ae8 | 55 | # produces an .aab (assembleRelease only produces an .apk). |
| 0228ae8 | 56 | sh("cd ../.. && flutter build appbundle --release") |
| 8b87a9b | 57 | upload(update_screenshots: update_screenshots) |
| fe24dd6 | 58 | end |
| fe24dd6 | 59 | |
| fe24dd6 | 60 | desc "Upload a pre-built AAB to the Google Play" |
| 8b87a9b | 61 | lane :upload do |options| |
| 8b87a9b | 62 | update_screenshots = update_screenshots_requested?(options) |
| fe24dd6 | 63 | upload_to_play_store( |
| fe24dd6 | 64 | aab: "../build/app/outputs/bundle/release/app-release.aab", |
| 8b87a9b | 65 | skip_upload_screenshots: !update_screenshots, |
| fe24dd6 | 66 | ) |
| fe24dd6 | 67 | end |
| fe24dd6 | 68 | end |