contentAndroidFastfile top-level constant

String const contentAndroidFastfile

Implementation

const contentAndroidFastfile = '''
default_platform(:android)

platform :android do
  desc "Deploy with Fastlane"

  lane :upload_to_firebase do |options|
      if ENV['APP_ID'] && ENV['TESTER']
        appId=ENV['APP_ID']
        tester=ENV['TESTER']
        puts "[Fastlane Android] Load data from ENV successfully!"

        firebase_app_distribution(
          app: appId,
          testers: tester,
          groups: "public_android",
          release_notes: sh("git log -1 --pretty='%s'"),
          firebase_cli_path: "/usr/local/bin/firebase",
          apk_path: "../build/app/outputs/flutter-apk/app-release.apk"
        )
      else
        raise RuntimeError, '[Fastlane Android] ENV is not found so Fastlane will stop the process! Please try again!'
      end
  end
end
''';