This repository has been archived by the owner. It is now read-only.
Permalink
Cannot retrieve contributors at this time
154 lines (124 sloc)
3.81 KB
| # 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 | |
| # | |
| # Uncomment the line if you want fastlane to automatically update itself | |
| update_fastlane | |
| default_platform(:ios) | |
| platform :ios do | |
| desc "Description of what the lane does" | |
| lane :importLocalizations do | |
| # Import Firefox localizations | |
| import_repository( | |
| url: 'https://github.com/cliqz-oss/ios-l10n-scripts.git', | |
| clone_folder: "../build-tools", | |
| ) | |
| sh("cd .. && sh ../build-tools/import-locales-firefox.sh --release") | |
| # revert changes that Firefox did to InfoPlist.strings | |
| sh("cd .. && git checkout Client/en.lproj/InfoPlist.strings") | |
| # Import Cliqz localizations | |
| import_repository( | |
| url: 'https://github.com/cliqz-oss/browser-ios-l10n.git', | |
| clone_folder: "../build-tools/cliqzios-l10n", | |
| ) | |
| import_cliqz_localizations( | |
| l10n_folder: "../build-tools/cliqzios-l10n", | |
| ) | |
| end | |
| lane :beta do | |
| # Configuring Sentry DSN | |
| sh("cd .. && plutil -replace SentryDSN -string $SentryDSN Client/Info.plist") | |
| # Building ReactNative Entension | |
| sh("cd .. && npm run bundle") | |
| create_keychain( | |
| name: ENV["MATCH_KEYCHAIN_NAME"], | |
| password: ENV["MATCH_PASSWORD"], | |
| default_keychain: true, | |
| unlock: true, | |
| timeout: 3600, | |
| add_to_search_list: true | |
| ) | |
| match( | |
| keychain_name: ENV["MATCH_KEYCHAIN_NAME"], | |
| keychain_password: ENV["MATCH_PASSWORD"], | |
| git_branch: "new-browser-ios-beta", | |
| app_identifier: ["com.cliqz.ios.newCliqz", "*"], | |
| readonly: true, | |
| verbose: true | |
| ) | |
| increment_build_number( | |
| build_number: latest_testflight_build_number + 1, | |
| xcodeproj: "Client.xcodeproj" | |
| ) | |
| build_app( | |
| workspace: "Client.xcworkspace", | |
| clean: "true", | |
| scheme: "Firefox", | |
| xcconfig: "Client/Configuration/Firefox.xcconfig", | |
| skip_profile_detection: "true", | |
| export_options: { | |
| provisioningProfiles: { | |
| "com.cliqz.ios.newCliqz" => "match AppStore com.cliqz.ios.newCliqz", | |
| } | |
| } | |
| ) | |
| upload_to_testflight( | |
| changelog: "New Cliqz Nightly build", | |
| demo_account_required: "false", | |
| skip_waiting_for_build_processing: "true" | |
| ) | |
| sentry_upload_dsym( | |
| auth_token: ENV["SENTRY_AUTH_TOKEN"], | |
| org_slug: 'cliqz', | |
| project_slug: 'new-cliqz', | |
| ) | |
| end | |
| lane :release do | |
| # Configuring Sentry DSN | |
| sh("cd .. && plutil -replace SentryDSN -string $SentryDSN Client/Info.plist") | |
| # Building ReactNative Entension | |
| sh("cd .. && npm run bundle") | |
| create_keychain( | |
| name: ENV["MATCH_KEYCHAIN_NAME"], | |
| password: ENV["MATCH_PASSWORD"], | |
| default_keychain: true, | |
| unlock: true, | |
| timeout: 3600, | |
| add_to_search_list: true | |
| ) | |
| match( | |
| keychain_name: ENV["MATCH_KEYCHAIN_NAME"], | |
| keychain_password: ENV["MATCH_PASSWORD"], | |
| git_branch: "ghostery-ios", | |
| team_id: ENV["DEVELOPER_TEAM_ID"], | |
| app_identifier: ["com.evidon.Ghostery", "*"], | |
| readonly: true, | |
| verbose: true | |
| ) | |
| build_app( | |
| workspace: "Client.xcworkspace", | |
| clean: "true", | |
| scheme: "Ghostery", | |
| xcconfig: "Client/Configuration/Ghostery.xcconfig", | |
| skip_profile_detection: "true", | |
| export_options: { | |
| provisioningProfiles: { | |
| "com.evidon.Ghostery" => "match AppStore com.evidon.Ghostery" | |
| } | |
| } | |
| ) | |
| upload_to_testflight( | |
| changelog: "Ghostery Nightly build", | |
| demo_account_required: "false", | |
| skip_waiting_for_build_processing: "true" | |
| ) | |
| sentry_upload_dsym( | |
| auth_token: ENV["SENTRY_AUTH_TOKEN"], | |
| org_slug: 'cliqz', | |
| project_slug: 'ghostery', | |
| ) | |
| end | |
| end |