# This file contains the fastlane.tools configuration # You can find the documentation at https://docs.fastlane.tools # # For a list of all available actions, check out # # https://docs.fastlane.tools/actions # # For a list of all available plugins, check out # # https://docs.fastlane.tools/plugins/available-plugins # # Uncomment the line if you want fastlane to automatically update itself # update_fastlane default_platform(:ios) before_all do if is_ci setup_ci() end end desc "Installs all Certs and Profiles necessary for development and ad-hoc" lane :match_me do match( type: "adhoc", app_identifier: [ "io.getstream.reactnative.SampleApp", ], readonly: true, force_for_new_devices: !is_ci ) end desc "Installs all Certs and Profiles necessary for appstore" lane :match_appstore do match( type: "appstore", app_identifier: [ "io.getstream.reactnative.SampleApp", ], readonly: is_ci ) end platform :ios do desc "Deploy build to Firebase" lane :deploy_to_firebase do match_me gym( workspace: "./SampleApp.xcworkspace", scheme: "SampleApp", export_method: "ad-hoc", export_options: "./fastlane/beta_gym_export_options.plist", silent: true, clean: true, include_symbols: true, output_directory: "./dist", xcargs: "ENABLE_BITCODE=1" ) firebase_app_distribution( app: "1:190151624402:ios:403df895972564bd658f0b", groups: "ios-react-native-testers", release_notes: "Lots of amazing new features to test out!" ) end end platform :ios do desc "Deploy build to TestFlight QA" lane :deploy_to_testflight_qa do app_store_connect_api_key() match_appstore settings_to_override = { :BUNDLE_IDENTIFIER => "io.getstream.reactnative.SampleApp", :PROVISIONING_PROFILE_SPECIFIER => "match AppStore io.getstream.reactnative.SampleApp" } package = load_json(json_path: "../package.json") increment_version_number(version_number: package["version"]) increment_build_number(xcodeproj: "SampleApp.xcodeproj") gym( workspace: "./SampleApp.xcworkspace", scheme: "SampleApp", export_method: "app-store", export_options: "./fastlane/testflight_gym_export_options.plist", silent: true, clean: true, xcargs: settings_to_override, include_symbols: true, output_directory: "./dist", ) upload_to_testflight( groups: ['Testers'], changelog: "Lots of amazing new features to test out!", reject_build_waiting_for_review: true ) commit_version_bump( message: "[fastlane][ios] Bump version [skip ci]", xcodeproj: "SampleApp.xcodeproj", force: true # otherwise untracked files may crash the CI build ) push_to_git_remote() end end