fastlane 2.74.1 → 2.75.0.beta.20180109010003
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/bin-proxy +2 -2
- data/bin/fastlane +5 -5
- data/cert/lib/cert/commands_generator.rb +1 -1
- data/cert/lib/cert/runner.rb +14 -14
- data/credentials_manager/lib/credentials_manager/account_manager.rb +11 -11
- data/credentials_manager/lib/credentials_manager/appfile_config.rb +11 -11
- data/credentials_manager/lib/credentials_manager/cli.rb +4 -4
- data/deliver/lib/deliver/app_screenshot.rb +19 -2
- data/deliver/lib/deliver/commands_generator.rb +2 -2
- data/deliver/lib/deliver/loader.rb +2 -2
- data/deliver/lib/deliver/options.rb +2 -2
- data/deliver/lib/deliver/setup.rb +1 -1
- data/deliver/lib/deliver/submit_for_review.rb +1 -1
- data/fastlane/lib/fastlane/action.rb +2 -2
- data/fastlane/lib/fastlane/actions/actions_helper.rb +5 -5
- data/fastlane/lib/fastlane/actions/add_extra_platforms.rb +2 -2
- data/fastlane/lib/fastlane/actions/add_git_tag.rb +1 -1
- data/fastlane/lib/fastlane/actions/app_store_build_number.rb +1 -1
- data/fastlane/lib/fastlane/actions/appaloosa.rb +4 -4
- data/fastlane/lib/fastlane/actions/appetize.rb +3 -3
- data/fastlane/lib/fastlane/actions/appetize_viewing_url_generator.rb +2 -2
- data/fastlane/lib/fastlane/actions/appium.rb +2 -2
- data/fastlane/lib/fastlane/actions/appledoc.rb +3 -3
- data/fastlane/lib/fastlane/actions/apteligent.rb +2 -2
- data/fastlane/lib/fastlane/actions/artifactory.rb +2 -2
- data/fastlane/lib/fastlane/actions/backup_xcarchive.rb +1 -1
- data/fastlane/lib/fastlane/actions/build_ios_app.rb +1 -1
- data/fastlane/lib/fastlane/actions/capture_ios_screenshots.rb +1 -1
- data/fastlane/lib/fastlane/actions/carthage.rb +4 -4
- data/fastlane/lib/fastlane/actions/changelog_from_git_commits.rb +4 -4
- data/fastlane/lib/fastlane/actions/clean_build_artifacts.rb +1 -1
- data/fastlane/lib/fastlane/actions/clean_cocoapods_cache.rb +1 -1
- data/fastlane/lib/fastlane/actions/cloc.rb +1 -1
- data/fastlane/lib/fastlane/actions/cocoapods.rb +1 -1
- data/fastlane/lib/fastlane/actions/commit_github_file.rb +4 -4
- data/fastlane/lib/fastlane/actions/commit_version_bump.rb +7 -7
- data/fastlane/lib/fastlane/actions/copy_artifacts.rb +1 -1
- data/fastlane/lib/fastlane/actions/crashlytics.rb +2 -2
- data/fastlane/lib/fastlane/actions/debug.rb +2 -2
- data/fastlane/lib/fastlane/actions/delete_keychain.rb +1 -1
- data/fastlane/lib/fastlane/actions/deploygate.rb +7 -7
- data/fastlane/lib/fastlane/actions/docs/cert.md +2 -2
- data/fastlane/lib/fastlane/actions/docs/deliver.md +1 -1
- data/fastlane/lib/fastlane/actions/docs/frameit.md +2 -2
- data/fastlane/lib/fastlane/actions/docs/gym.md +1 -3
- data/fastlane/lib/fastlane/actions/docs/match.md +4 -4
- data/fastlane/lib/fastlane/actions/docs/pem.md +1 -1
- data/fastlane/lib/fastlane/actions/docs/precheck.md +2 -2
- data/fastlane/lib/fastlane/actions/docs/produce.md +1 -1
- data/fastlane/lib/fastlane/actions/docs/scan.md +0 -2
- data/fastlane/lib/fastlane/actions/docs/sigh.md +6 -6
- data/fastlane/lib/fastlane/actions/docs/snapshot.md +4 -4
- data/fastlane/lib/fastlane/actions/download_dsyms.rb +1 -1
- data/fastlane/lib/fastlane/actions/dsym_zip.rb +1 -1
- data/fastlane/lib/fastlane/actions/ensure_no_debug_code.rb +1 -1
- data/fastlane/lib/fastlane/actions/flock.rb +7 -7
- data/fastlane/lib/fastlane/actions/frame_screenshots.rb +1 -1
- data/fastlane/lib/fastlane/actions/gcovr.rb +5 -5
- data/fastlane/lib/fastlane/actions/get_build_number.rb +2 -2
- data/fastlane/lib/fastlane/actions/get_build_number_repository.rb +9 -9
- data/fastlane/lib/fastlane/actions/get_github_release.rb +2 -2
- data/fastlane/lib/fastlane/actions/get_info_plist_value.rb +1 -1
- data/fastlane/lib/fastlane/actions/get_version_number.rb +7 -7
- data/fastlane/lib/fastlane/actions/github_api.rb +2 -2
- data/fastlane/lib/fastlane/actions/hg_commit_version_bump.rb +2 -2
- data/fastlane/lib/fastlane/actions/hockey.rb +5 -5
- data/fastlane/lib/fastlane/actions/ifttt.rb +4 -4
- data/fastlane/lib/fastlane/actions/increment_build_number.rb +3 -3
- data/fastlane/lib/fastlane/actions/increment_version_number.rb +4 -4
- data/fastlane/lib/fastlane/actions/install_on_device.rb +2 -2
- data/fastlane/lib/fastlane/actions/install_xcode_plugin.rb +2 -2
- data/fastlane/lib/fastlane/actions/installr.rb +6 -6
- data/fastlane/lib/fastlane/actions/ipa.rb +1 -1
- data/fastlane/lib/fastlane/actions/latest_testflight_build_number.rb +1 -1
- data/fastlane/lib/fastlane/actions/lcov.rb +1 -1
- data/fastlane/lib/fastlane/actions/mailgun.rb +3 -3
- data/fastlane/lib/fastlane/actions/modify_services.rb +1 -1
- data/fastlane/lib/fastlane/actions/notification.rb +1 -1
- data/fastlane/lib/fastlane/actions/number_of_commits.rb +1 -1
- data/fastlane/lib/fastlane/actions/onesignal.rb +1 -1
- data/fastlane/lib/fastlane/actions/pod_push.rb +1 -1
- data/fastlane/lib/fastlane/actions/podio_item.rb +6 -6
- data/fastlane/lib/fastlane/actions/puts.rb +1 -1
- data/fastlane/lib/fastlane/actions/read_podspec.rb +1 -1
- data/fastlane/lib/fastlane/actions/recreate_schemes.rb +1 -1
- data/fastlane/lib/fastlane/actions/reset_git_repo.rb +1 -1
- data/fastlane/lib/fastlane/actions/restore_file.rb +1 -1
- data/fastlane/lib/fastlane/actions/rocket.rb +2 -2
- data/fastlane/lib/fastlane/actions/run_tests.rb +1 -1
- data/fastlane/lib/fastlane/actions/s3.rb +1 -1
- data/fastlane/lib/fastlane/actions/scp.rb +2 -2
- data/fastlane/lib/fastlane/actions/set_build_number_repository.rb +1 -1
- data/fastlane/lib/fastlane/actions/set_changelog.rb +2 -2
- data/fastlane/lib/fastlane/actions/set_github_release.rb +4 -4
- data/fastlane/lib/fastlane/actions/set_info_plist_value.rb +2 -2
- data/fastlane/lib/fastlane/actions/set_pod_key.rb +1 -1
- data/fastlane/lib/fastlane/actions/setup_circle_ci.rb +4 -4
- data/fastlane/lib/fastlane/actions/setup_jenkins.rb +6 -6
- data/fastlane/lib/fastlane/actions/setup_travis.rb +2 -2
- data/fastlane/lib/fastlane/actions/slack.rb +3 -3
- data/fastlane/lib/fastlane/actions/slather.rb +2 -2
- data/fastlane/lib/fastlane/actions/spm.rb +2 -2
- data/fastlane/lib/fastlane/actions/ssh.rb +1 -1
- data/fastlane/lib/fastlane/actions/team_id.rb +1 -1
- data/fastlane/lib/fastlane/actions/team_name.rb +1 -1
- data/fastlane/lib/fastlane/actions/testfairy.rb +7 -7
- data/fastlane/lib/fastlane/actions/tryouts.rb +6 -6
- data/fastlane/lib/fastlane/actions/update_app_group_identifiers.rb +2 -2
- data/fastlane/lib/fastlane/actions/update_fastlane.rb +5 -5
- data/fastlane/lib/fastlane/actions/update_icloud_container_identifiers.rb +10 -10
- data/fastlane/lib/fastlane/actions/update_info_plist.rb +1 -1
- data/fastlane/lib/fastlane/actions/update_project_provisioning.rb +1 -1
- data/fastlane/lib/fastlane/actions/update_url_schemes.rb +1 -1
- data/fastlane/lib/fastlane/actions/upload_symbols_to_crashlytics.rb +4 -4
- data/fastlane/lib/fastlane/actions/upload_symbols_to_sentry.rb +4 -4
- data/fastlane/lib/fastlane/actions/verify_build.rb +6 -6
- data/fastlane/lib/fastlane/actions/verify_pod_keys.rb +1 -1
- data/fastlane/lib/fastlane/actions/version_bump_podspec.rb +3 -3
- data/fastlane/lib/fastlane/actions/version_get_podspec.rb +2 -2
- data/fastlane/lib/fastlane/actions/xcode_select.rb +2 -2
- data/fastlane/lib/fastlane/actions/xcode_server_get_assets.rb +3 -3
- data/fastlane/lib/fastlane/actions/xcov.rb +1 -1
- data/fastlane/lib/fastlane/actions/xctool.rb +1 -1
- data/fastlane/lib/fastlane/actions/xcversion.rb +1 -1
- data/fastlane/lib/fastlane/actions/zip.rb +3 -3
- data/fastlane/lib/fastlane/auto_complete.rb +15 -15
- data/fastlane/lib/fastlane/cli_tools_distributor.rb +15 -15
- data/fastlane/lib/fastlane/command_line_handler.rb +1 -1
- data/fastlane/lib/fastlane/commands_generator.rb +26 -26
- data/fastlane/lib/fastlane/configuration_helper.rb +2 -2
- data/fastlane/lib/fastlane/documentation/actions_list.rb +47 -47
- data/fastlane/lib/fastlane/documentation/docs_generator.rb +1 -1
- data/fastlane/lib/fastlane/environment_printer.rb +5 -5
- data/fastlane/lib/fastlane/fast_file.rb +5 -5
- data/fastlane/lib/fastlane/fastlane_require.rb +2 -2
- data/fastlane/lib/fastlane/helper/crashlytics_helper.rb +3 -3
- data/fastlane/lib/fastlane/helper/podspec_helper.rb +1 -1
- data/fastlane/lib/fastlane/helper/sh_helper.rb +2 -2
- data/fastlane/lib/fastlane/helper/xcversion_helper.rb +1 -1
- data/fastlane/lib/fastlane/lane.rb +6 -6
- data/fastlane/lib/fastlane/lane_list.rb +3 -3
- data/fastlane/lib/fastlane/lane_manager.rb +7 -7
- data/fastlane/lib/fastlane/lane_manager_base.rb +15 -15
- data/fastlane/lib/fastlane/markdown_table_formatter.rb +2 -2
- data/fastlane/lib/fastlane/new_action.rb +5 -5
- data/fastlane/lib/fastlane/one_off.rb +1 -1
- data/fastlane/lib/fastlane/plugins/plugin_generator.rb +5 -5
- data/fastlane/lib/fastlane/plugins/plugin_generator_ui.rb +2 -2
- data/fastlane/lib/fastlane/plugins/plugin_manager.rb +7 -7
- data/fastlane/lib/fastlane/plugins/plugin_search.rb +5 -5
- data/fastlane/lib/fastlane/plugins/plugin_update_manager.rb +4 -4
- data/fastlane/lib/fastlane/plugins/template/%gem_name%.gemspec.erb +9 -8
- data/fastlane/lib/fastlane/plugins/template/.rubocop.yml +37 -2
- data/fastlane/lib/fastlane/plugins/template/Gemfile +1 -1
- data/fastlane/lib/fastlane/plugins/template/Rakefile +1 -1
- data/fastlane/lib/fastlane/plugins/template/lib/fastlane/plugin/%plugin_name%/actions/%plugin_name%_action.rb.erb +3 -0
- data/fastlane/lib/fastlane/plugins/template/lib/fastlane/plugin/%plugin_name%/helper/%plugin_name%_helper.rb.erb +4 -0
- data/fastlane/lib/fastlane/plugins/template/spec/spec_helper.rb.erb +1 -1
- data/fastlane/lib/fastlane/runner.rb +9 -9
- data/fastlane/lib/fastlane/setup/crashlytics_beta.rb +9 -9
- data/fastlane/lib/fastlane/setup/crashlytics_beta_command_line_handler.rb +7 -7
- data/fastlane/lib/fastlane/setup/crashlytics_beta_info_collector.rb +19 -19
- data/fastlane/lib/fastlane/setup/crashlytics_beta_ui.rb +3 -3
- data/fastlane/lib/fastlane/setup/setup_android.rb +4 -4
- data/fastlane/lib/fastlane/setup/setup_ios.rb +9 -9
- data/fastlane/lib/fastlane/supported_platforms.rb +1 -1
- data/fastlane/lib/fastlane/swift_fastlane_api_generator.rb +10 -6
- data/fastlane/lib/fastlane/swift_lane_manager.rb +1 -1
- data/fastlane/lib/fastlane/version.rb +1 -1
- data/fastlane_core/README.md +0 -26
- data/fastlane_core/lib/fastlane_core/analytics/analytics_ingester_client.rb +2 -2
- data/fastlane_core/lib/fastlane_core/build_watcher.rb +1 -1
- data/fastlane_core/lib/fastlane_core/cert_checker.rb +2 -2
- data/fastlane_core/lib/fastlane_core/command_executor.rb +3 -3
- data/fastlane_core/lib/fastlane_core/configuration/config_item.rb +4 -4
- data/fastlane_core/lib/fastlane_core/configuration/configuration.rb +4 -4
- data/fastlane_core/lib/fastlane_core/configuration/configuration_file.rb +4 -4
- data/fastlane_core/lib/fastlane_core/core_ext/cfpropertylist.rb +3 -3
- data/fastlane_core/lib/fastlane_core/device_manager.rb +2 -4
- data/fastlane_core/lib/fastlane_core/fastlane_folder.rb +1 -1
- data/fastlane_core/lib/fastlane_core/globals.rb +3 -3
- data/fastlane_core/lib/fastlane_core/helper.rb +1 -1
- data/fastlane_core/lib/fastlane_core/ipa_file_analyser.rb +1 -1
- data/fastlane_core/lib/fastlane_core/ipa_upload_package_builder.rb +2 -2
- data/fastlane_core/lib/fastlane_core/itunes_transporter.rb +2 -2
- data/fastlane_core/lib/fastlane_core/pkg_file_analyser.rb +1 -1
- data/fastlane_core/lib/fastlane_core/pkg_upload_package_builder.rb +1 -1
- data/fastlane_core/lib/fastlane_core/print_table.rb +5 -5
- data/fastlane_core/lib/fastlane_core/project.rb +7 -7
- data/fastlane_core/lib/fastlane_core/swag.rb +9 -9
- data/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb +49 -49
- data/fastlane_core/lib/fastlane_core/ui/github_issue_inspector_reporter.rb +18 -18
- data/fastlane_core/lib/fastlane_core/ui/implementations/shell.rb +1 -1
- data/fastlane_core/lib/fastlane_core/update_checker/changelog.rb +7 -7
- data/fastlane_core/lib/fastlane_core/update_checker/update_checker.rb +11 -11
- data/frameit/lib/frameit/commands_generator.rb +2 -2
- data/frameit/lib/frameit/config_parser.rb +11 -11
- data/frameit/lib/frameit/dependency_checker.rb +7 -7
- data/frameit/lib/frameit/editor.rb +41 -41
- data/frameit/lib/frameit/frame_downloader.rb +12 -12
- data/frameit/lib/frameit/mac_editor.rb +2 -2
- data/frameit/lib/frameit/options.rb +1 -1
- data/frameit/lib/frameit/runner.rb +7 -7
- data/frameit/lib/frameit/screenshot.rb +5 -5
- data/frameit/lib/frameit/strings_parser.rb +6 -6
- data/frameit/lib/frameit/template_finder.rb +3 -3
- data/gym/lib/gym/commands_generator.rb +4 -4
- data/gym/lib/gym/detect_values.rb +1 -1
- data/gym/lib/gym/error_handler.rb +84 -84
- data/gym/lib/gym/generators/build_command_generator.rb +1 -1
- data/gym/lib/gym/runner.rb +24 -24
- data/gym/lib/gym/xcodebuild_fixes/generic_archive_fix.rb +2 -2
- data/match/lib/assets/READMETemplate.md +3 -3
- data/match/lib/match/commands_generator.rb +3 -3
- data/match/lib/match/encrypt.rb +10 -10
- data/match/lib/match/git_helper.rb +5 -5
- data/match/lib/match/nuke.rb +29 -29
- data/match/lib/match/runner.rb +13 -13
- data/match/lib/match/setup.rb +7 -7
- data/match/lib/match/table_printer.rb +6 -6
- data/match/lib/match/utils.rb +2 -2
- data/pem/lib/pem/commands_generator.rb +1 -1
- data/pem/lib/pem/manager.rb +9 -9
- data/pem/lib/pem/module.rb +1 -1
- data/pilot/lib/pilot/build_manager.rb +8 -8
- data/pilot/lib/pilot/commands_generator.rb +1 -1
- data/pilot/lib/pilot/manager.rb +1 -1
- data/pilot/lib/pilot/options.rb +4 -4
- data/pilot/lib/pilot/tester_manager.rb +10 -10
- data/precheck/lib/precheck/commands_generator.rb +4 -4
- data/precheck/lib/precheck/rule.rb +2 -2
- data/precheck/lib/precheck/rule_processor.rb +7 -7
- data/precheck/lib/precheck/rules/abstract_text_match_rule.rb +2 -2
- data/precheck/lib/precheck/rules/curse_words_rule.rb +3 -3
- data/precheck/lib/precheck/rules/unreachable_urls_rule.rb +3 -3
- data/precheck/lib/precheck/runner.rb +7 -7
- data/produce/lib/produce/commands_generator.rb +48 -48
- data/produce/lib/produce/developer_center.rb +4 -4
- data/produce/lib/produce/group.rb +2 -2
- data/produce/lib/produce/itunes_connect.rb +4 -4
- data/produce/lib/produce/options.rb +3 -3
- data/produce/lib/produce/service.rb +1 -1
- data/scan/lib/scan/commands_generator.rb +2 -2
- data/scan/lib/scan/error_handler.rb +12 -12
- data/scan/lib/scan/runner.rb +3 -3
- data/scan/lib/scan/slack_poster.rb +2 -2
- data/scan/lib/scan/test_command_generator.rb +1 -1
- data/screengrab/lib/screengrab/commands_generator.rb +1 -1
- data/screengrab/lib/screengrab/dependency_checker.rb +9 -9
- data/screengrab/lib/screengrab/options.rb +3 -3
- data/screengrab/lib/screengrab/reports_generator.rb +2 -2
- data/screengrab/lib/screengrab/runner.rb +32 -32
- data/sigh/lib/sigh/commands_generator.rb +18 -18
- data/sigh/lib/sigh/download_all.rb +4 -4
- data/sigh/lib/sigh/local_manage.rb +27 -27
- data/sigh/lib/sigh/manager.rb +1 -1
- data/sigh/lib/sigh/repair.rb +6 -6
- data/sigh/lib/sigh/resign.rb +7 -7
- data/sigh/lib/sigh/runner.rb +26 -26
- data/snapshot/lib/snapshot/collector.rb +7 -7
- data/snapshot/lib/snapshot/commands_generator.rb +7 -7
- data/snapshot/lib/snapshot/dependency_checker.rb +34 -19
- data/snapshot/lib/snapshot/detect_values.rb +2 -0
- data/snapshot/lib/snapshot/error_handler.rb +1 -1
- data/snapshot/lib/snapshot/fixes/hardware_keyboard_fix.rb +1 -1
- data/snapshot/lib/snapshot/fixes/simulator_zoom_fix.rb +1 -1
- data/snapshot/lib/snapshot/reports_generator.rb +2 -2
- data/snapshot/lib/snapshot/reset_simulators.rb +2 -2
- data/snapshot/lib/snapshot/runner.rb +14 -14
- data/snapshot/lib/snapshot/screenshot_flatten.rb +1 -1
- data/snapshot/lib/snapshot/screenshot_rotate.rb +6 -6
- data/snapshot/lib/snapshot/setup.rb +16 -16
- data/snapshot/lib/snapshot/simulator_launchers/simulator_launcher.rb +1 -1
- data/snapshot/lib/snapshot/simulator_launchers/simulator_launcher_base.rb +7 -7
- data/snapshot/lib/snapshot/simulator_launchers/simulator_launcher_xcode_8.rb +4 -4
- data/snapshot/lib/snapshot/update.rb +8 -8
- data/spaceship/lib/spaceship/base.rb +3 -3
- data/spaceship/lib/spaceship/client.rb +17 -17
- data/spaceship/lib/spaceship/commands_generator.rb +1 -1
- data/spaceship/lib/spaceship/du/du_client.rb +6 -3
- data/spaceship/lib/spaceship/globals.rb +1 -1
- data/spaceship/lib/spaceship/playground.rb +18 -18
- data/spaceship/lib/spaceship/portal/certificate.rb +5 -5
- data/spaceship/lib/spaceship/portal/device.rb +2 -2
- data/spaceship/lib/spaceship/portal/portal_client.rb +7 -7
- data/spaceship/lib/spaceship/portal/provisioning_profile.rb +7 -9
- data/spaceship/lib/spaceship/portal/ui/select_team.rb +13 -13
- data/spaceship/lib/spaceship/spaceauth_runner.rb +16 -16
- data/spaceship/lib/spaceship/test_flight/client.rb +9 -9
- data/spaceship/lib/spaceship/tunes/app_details.rb +1 -1
- data/spaceship/lib/spaceship/tunes/app_version.rb +7 -7
- data/spaceship/lib/spaceship/tunes/app_version_common.rb +1 -1
- data/spaceship/lib/spaceship/tunes/application.rb +1 -1
- data/spaceship/lib/spaceship/tunes/device_type.rb +2 -2
- data/spaceship/lib/spaceship/tunes/iap_detail.rb +1 -1
- data/spaceship/lib/spaceship/tunes/tunes_client.rb +54 -54
- data/spaceship/lib/spaceship/two_step_client.rb +19 -19
- data/spaceship/lib/spaceship/ui.rb +1 -1
- data/supply/lib/supply/client.rb +1 -1
- data/supply/lib/supply/commands_generator.rb +1 -1
- data/supply/lib/supply/options.rb +14 -14
- data/supply/lib/supply/uploader.rb +3 -3
- metadata +31 -25
- data/fastlane/lib/.DS_Store +0 -0
- data/fastlane/lib/assets/.DS_Store +0 -0
- data/fastlane/lib/fastlane/.DS_Store +0 -0
- data/fastlane/lib/fastlane/actions/.DS_Store +0 -0
- data/fastlane/lib/fastlane/actions/docs/.DS_Store +0 -0
- data/fastlane/lib/fastlane/setup/.DS_Store +0 -0
- data/fastlane_core/lib/.DS_Store +0 -0
- data/fastlane_core/lib/fastlane_core/.DS_Store +0 -0
@@ -10,7 +10,7 @@ module Fastlane
|
|
10
10
|
def self.run(options)
|
11
11
|
return if options[:no_update] # this is used to update itself
|
12
12
|
|
13
|
-
tools_to_update = options[:tools].split
|
13
|
+
tools_to_update = options[:tools].split(',') unless options[:tools].nil?
|
14
14
|
tools_to_update ||= all_installed_tools
|
15
15
|
|
16
16
|
if tools_to_update.count == 0
|
@@ -36,8 +36,8 @@ module Fastlane
|
|
36
36
|
end
|
37
37
|
|
38
38
|
unless updater.respond_to?(:highest_installed_gems)
|
39
|
-
UI.important
|
40
|
-
UI.important
|
39
|
+
UI.important("The update_fastlane action requires rubygems version 2.1.0 or greater.")
|
40
|
+
UI.important("Please update your version of ruby gems before proceeding.")
|
41
41
|
UI.command "gem install rubygems-update"
|
42
42
|
UI.command "update_rubygems"
|
43
43
|
UI.command "gem update --system"
|
@@ -89,7 +89,7 @@ module Fastlane
|
|
89
89
|
UI.message("fastlane.tools successfully updated! I will now restart myself... 😴")
|
90
90
|
|
91
91
|
# Set no_update to true so we don't try to update again
|
92
|
-
exec
|
92
|
+
exec("FL_NO_UPDATE=true #{$PROGRAM_NAME} #{ARGV.join(' ')}")
|
93
93
|
end
|
94
94
|
|
95
95
|
def self.show_information_about_nightly_builds
|
@@ -104,7 +104,7 @@ module Fastlane
|
|
104
104
|
end
|
105
105
|
|
106
106
|
def self.all_installed_tools
|
107
|
-
Gem::Specification.select { |s| ALL_TOOLS.include?
|
107
|
+
Gem::Specification.select { |s| ALL_TOOLS.include?(s.name) }.map(&:name).uniq
|
108
108
|
end
|
109
109
|
|
110
110
|
def self.description
|
@@ -9,21 +9,21 @@ module Fastlane
|
|
9
9
|
|
10
10
|
def self.run(params)
|
11
11
|
entitlements_file = params[:entitlements_file]
|
12
|
-
UI.message
|
12
|
+
UI.message("Entitlements File: #{entitlements_file}")
|
13
13
|
|
14
14
|
# parse entitlements
|
15
15
|
result = Plist.parse_xml(entitlements_file)
|
16
|
-
UI.error
|
16
|
+
UI.error("Entitlements file at '#{entitlements_file}' cannot be parsed.") unless result
|
17
17
|
|
18
18
|
# get iCloud container field
|
19
19
|
icloud_container_key = 'com.apple.developer.icloud-container-identifiers'
|
20
20
|
icloud_container_value = result[icloud_container_key]
|
21
|
-
UI.error
|
21
|
+
UI.error("No existing iCloud container field specified. Please specify an iCloud container in the entitlements file.") unless icloud_container_value
|
22
22
|
|
23
23
|
# get uniquity container field
|
24
24
|
ubiquity_container_key = 'com.apple.developer.ubiquity-container-identifiers'
|
25
25
|
ubiquity_container_value = result[ubiquity_container_key]
|
26
|
-
UI.error
|
26
|
+
UI.error("No existing ubiquity container field specified. Please specify an ubiquity container in the entitlements file.") unless ubiquity_container_value
|
27
27
|
|
28
28
|
# set iCloud container identifiers
|
29
29
|
result[icloud_container_key] = params[:icloud_container_identifiers]
|
@@ -32,11 +32,11 @@ module Fastlane
|
|
32
32
|
# save entitlements file
|
33
33
|
result.save_plist(entitlements_file)
|
34
34
|
|
35
|
-
UI.message
|
36
|
-
UI.message
|
35
|
+
UI.message("Old iCloud Container Identifiers: #{icloud_container_value}")
|
36
|
+
UI.message("Old Ubiquity Container Identifiers: #{ubiquity_container_value}")
|
37
37
|
|
38
|
-
UI.success
|
39
|
-
UI.success
|
38
|
+
UI.success("New iCloud Container Identifiers set: #{result[icloud_container_key]}")
|
39
|
+
UI.success("New Ubiquity Container Identifiers set: #{result[ubiquity_container_key]}")
|
40
40
|
|
41
41
|
Actions.lane_context[SharedValues::UPDATE_ICLOUD_CONTAINER_IDENTIFIERS] = result[icloud_container_key]
|
42
42
|
end
|
@@ -55,7 +55,7 @@ module Fastlane
|
|
55
55
|
env_name: "FL_UPDATE_ICLOUD_CONTAINER_IDENTIFIERS_ENTITLEMENTS_FILE_PATH",
|
56
56
|
description: "The path to the entitlement file which contains the iCloud container identifiers",
|
57
57
|
verify_block: proc do |value|
|
58
|
-
UI.user_error!("Please pass a path to an entitlements file. ") unless value.include?
|
58
|
+
UI.user_error!("Please pass a path to an entitlements file. ") unless value.include?(".entitlements")
|
59
59
|
UI.user_error!("Could not find entitlements file") if !File.exist?(value) and !Helper.is_test?
|
60
60
|
end),
|
61
61
|
FastlaneCore::ConfigItem.new(key: :icloud_container_identifiers,
|
@@ -63,7 +63,7 @@ module Fastlane
|
|
63
63
|
description: "An Array of unique identifiers for the iCloud containers. Eg. ['iCloud.com.test.testapp']",
|
64
64
|
is_string: false,
|
65
65
|
verify_block: proc do |value|
|
66
|
-
UI.user_error!("The parameter icloud_container_identifiers needs to be an Array.") unless value.kind_of?
|
66
|
+
UI.user_error!("The parameter icloud_container_identifiers needs to be an Array.") unless value.kind_of?(Array)
|
67
67
|
end)
|
68
68
|
]
|
69
69
|
end
|
@@ -76,7 +76,7 @@ module Fastlane
|
|
76
76
|
description: "Path to your Xcode project",
|
77
77
|
optional: true,
|
78
78
|
verify_block: proc do |value|
|
79
|
-
UI.user_error!("Please pass the path to the project, not the workspace") if value.end_with?
|
79
|
+
UI.user_error!("Please pass the path to the project, not the workspace") if value.end_with?(".xcworkspace")
|
80
80
|
UI.user_error!("Could not find Xcode project") unless File.exist?(value)
|
81
81
|
end),
|
82
82
|
FastlaneCore::ConfigItem.new(key: :plist_path,
|
@@ -48,13 +48,13 @@ module Fastlane
|
|
48
48
|
Actions.sh("unzip -qo #{current_path.shellescape}")
|
49
49
|
work_q = Queue.new
|
50
50
|
Dir["*.dSYM"].each do |sub|
|
51
|
-
work_q.push
|
51
|
+
work_q.push(sub)
|
52
52
|
end
|
53
53
|
execute_uploads(params, max_worker_threads, work_q)
|
54
54
|
end
|
55
55
|
end
|
56
56
|
else
|
57
|
-
UI.error
|
57
|
+
UI.error("Don't know how to handle '#{current_path}'")
|
58
58
|
end
|
59
59
|
end
|
60
60
|
|
@@ -68,7 +68,7 @@ module Fastlane
|
|
68
68
|
upload_dsym(params, current_path)
|
69
69
|
end
|
70
70
|
rescue => ex
|
71
|
-
UI.error
|
71
|
+
UI.error(ex.to_s)
|
72
72
|
end
|
73
73
|
end
|
74
74
|
end
|
@@ -87,7 +87,7 @@ module Fastlane
|
|
87
87
|
UI.verbose("upload_dsym using command: #{command_to_execute}")
|
88
88
|
Actions.sh(command_to_execute, log: false)
|
89
89
|
rescue => ex
|
90
|
-
UI.error
|
90
|
+
UI.error(ex.to_s) # it fails, however we don't want to fail everything just for this
|
91
91
|
end
|
92
92
|
end
|
93
93
|
|
@@ -40,7 +40,7 @@ module Fastlane
|
|
40
40
|
resource = RestClient::Resource.new(url, headers: { Authorization: "Bearer #{auth_token}" })
|
41
41
|
end
|
42
42
|
|
43
|
-
UI.message
|
43
|
+
UI.message("Will upload dSYM(s) to #{url}")
|
44
44
|
|
45
45
|
# Upload dsym(s)
|
46
46
|
dsym_paths += [dsym_path]
|
@@ -53,13 +53,13 @@ module Fastlane
|
|
53
53
|
end
|
54
54
|
|
55
55
|
def self.upload_dsym(resource, dsym)
|
56
|
-
UI.message
|
56
|
+
UI.message("Uploading... #{dsym}")
|
57
57
|
resource.post(file: File.new(dsym, 'rb')) unless Helper.test?
|
58
|
-
UI.success
|
58
|
+
UI.success('dSYM successfully uploaded to Sentry!')
|
59
59
|
|
60
60
|
dsym
|
61
61
|
rescue
|
62
|
-
UI.user_error!
|
62
|
+
UI.user_error!('Error while trying to upload dSYM to Sentry')
|
63
63
|
end
|
64
64
|
|
65
65
|
#####################################################
|
@@ -46,10 +46,10 @@ module Fastlane
|
|
46
46
|
type = part.split('=')[1].split(':')[0]
|
47
47
|
values['provisioning_type'] = type.downcase =~ /distribution/i ? "distribution" : "development"
|
48
48
|
end
|
49
|
-
if part.start_with?
|
49
|
+
if part.start_with?("TeamIdentifier")
|
50
50
|
values['team_identifier'] = part.split('=')[1]
|
51
51
|
end
|
52
|
-
if part.start_with?
|
52
|
+
if part.start_with?("Identifier")
|
53
53
|
values['bundle_identifier'] = part.split('=')[1]
|
54
54
|
end
|
55
55
|
end
|
@@ -96,9 +96,9 @@ module Fastlane
|
|
96
96
|
end
|
97
97
|
end
|
98
98
|
|
99
|
-
puts
|
100
|
-
puts
|
101
|
-
puts
|
99
|
+
puts("")
|
100
|
+
puts(table)
|
101
|
+
puts("")
|
102
102
|
end
|
103
103
|
|
104
104
|
def self.evaulate(params, values)
|
@@ -121,7 +121,7 @@ module Fastlane
|
|
121
121
|
UI.user_error!("Mismatched bundle_identifier. Required: '#{params[:bundle_identifier]}'; Found: '#{values['bundle_identifier']}'") unless params[:bundle_identifier] == values['bundle_identifier']
|
122
122
|
end
|
123
123
|
|
124
|
-
UI.success
|
124
|
+
UI.success("Build is verified, have a 🍪.")
|
125
125
|
end
|
126
126
|
|
127
127
|
#####################################################
|
@@ -8,7 +8,7 @@ module Fastlane
|
|
8
8
|
def self.run(params)
|
9
9
|
podspec_path = params[:path]
|
10
10
|
|
11
|
-
UI.user_error!("Could not find podspec file at path #{podspec_path}") unless File.exist?
|
11
|
+
UI.user_error!("Could not find podspec file at path #{podspec_path}") unless File.exist?(podspec_path)
|
12
12
|
|
13
13
|
version_podspec_file = Helper::PodspecHelper.new(podspec_path)
|
14
14
|
|
@@ -57,7 +57,7 @@ module Fastlane
|
|
57
57
|
description: "The type of this version bump. Available: patch, minor, major",
|
58
58
|
default_value: "patch",
|
59
59
|
verify_block: proc do |value|
|
60
|
-
UI.user_error!("Available values are 'patch', 'minor' and 'major'") unless ['patch', 'minor', 'major'].include?
|
60
|
+
UI.user_error!("Available values are 'patch', 'minor' and 'major'") unless ['patch', 'minor', 'major'].include?(value)
|
61
61
|
end),
|
62
62
|
FastlaneCore::ConfigItem.new(key: :version_number,
|
63
63
|
env_name: "FL_VERSION_BUMP_PODSPEC_VERSION_NUMBER",
|
@@ -81,7 +81,7 @@ module Fastlane
|
|
81
81
|
end
|
82
82
|
|
83
83
|
def self.is_supported?(platform)
|
84
|
-
[:ios, :mac].include?
|
84
|
+
[:ios, :mac].include?(platform)
|
85
85
|
end
|
86
86
|
|
87
87
|
def self.example_code
|
@@ -4,7 +4,7 @@ module Fastlane
|
|
4
4
|
def self.run(params)
|
5
5
|
podspec_path = params[:path]
|
6
6
|
|
7
|
-
UI.user_error!("Could not find podspec file at path '#{podspec_path}'") unless File.exist?
|
7
|
+
UI.user_error!("Could not find podspec file at path '#{podspec_path}'") unless File.exist?(podspec_path)
|
8
8
|
|
9
9
|
version_podspec_file = Helper::PodspecHelper.new(podspec_path)
|
10
10
|
|
@@ -44,7 +44,7 @@ module Fastlane
|
|
44
44
|
end
|
45
45
|
|
46
46
|
def self.is_supported?(platform)
|
47
|
-
[:ios, :mac].include?
|
47
|
+
[:ios, :mac].include?(platform)
|
48
48
|
end
|
49
49
|
|
50
50
|
def self.example_code
|
@@ -19,7 +19,7 @@ module Fastlane
|
|
19
19
|
#
|
20
20
|
class XcodeSelectAction < Action
|
21
21
|
def self.run(params)
|
22
|
-
params = nil unless params.kind_of?
|
22
|
+
params = nil unless params.kind_of?(Array)
|
23
23
|
xcode_path = (params || []).first
|
24
24
|
|
25
25
|
# Verify that a param was passed in
|
@@ -46,7 +46,7 @@ module Fastlane
|
|
46
46
|
end
|
47
47
|
|
48
48
|
def self.is_supported?(platform)
|
49
|
-
[:ios, :mac].include?
|
49
|
+
[:ios, :mac].include?(platform)
|
50
50
|
end
|
51
51
|
|
52
52
|
def self.example_code
|
@@ -80,7 +80,7 @@ module Fastlane
|
|
80
80
|
UI.important("Archive #{archive_path} already exists, not unzipping again...")
|
81
81
|
else
|
82
82
|
# unzip the archive
|
83
|
-
sh
|
83
|
+
sh("unzip -q \"#{zipped_archive_path}\" -d \"#{archive_dir_path}\"")
|
84
84
|
end
|
85
85
|
|
86
86
|
# reload asset entries to also contain the xcarchive file
|
@@ -149,7 +149,7 @@ module Fastlane
|
|
149
149
|
out_folder = File.join(dir, "out_#{rand(1_000_000)}")
|
150
150
|
FileUtils.mkdir_p(out_folder)
|
151
151
|
|
152
|
-
action.sh
|
152
|
+
action.sh("cd \"#{out_folder}\"; cat \"#{temp_file}\" | gzip -d | tar -x")
|
153
153
|
|
154
154
|
# then pull the real name from headers
|
155
155
|
asset_filename = response.headers['Content-Disposition'].split(';')[1].split('=')[1].delete('"')
|
@@ -292,7 +292,7 @@ module Fastlane
|
|
292
292
|
end
|
293
293
|
|
294
294
|
def self.is_supported?(platform)
|
295
|
-
[:ios, :mac].include?
|
295
|
+
[:ios, :mac].include?(platform)
|
296
296
|
end
|
297
297
|
|
298
298
|
def self.example_code
|
@@ -7,7 +7,7 @@ module Fastlane
|
|
7
7
|
UI.user_error!("xctool not installed, please install using `brew install xctool`") if `which xctool`.length == 0
|
8
8
|
end
|
9
9
|
|
10
|
-
params = [] if params.kind_of?
|
10
|
+
params = [] if params.kind_of?(FastlaneCore::Configuration)
|
11
11
|
|
12
12
|
Actions.sh('xctool ' + params.join(' '))
|
13
13
|
end
|
@@ -2,7 +2,7 @@ module Fastlane
|
|
2
2
|
module Actions
|
3
3
|
class ZipAction < Action
|
4
4
|
def self.run(params)
|
5
|
-
UI.message
|
5
|
+
UI.message("Compressing #{params[:path]}...")
|
6
6
|
|
7
7
|
params[:output_path] ||= params[:path]
|
8
8
|
|
@@ -19,10 +19,10 @@ module Fastlane
|
|
19
19
|
Dir.chdir(File.expand_path("..", params[:path])) do # required to properly zip
|
20
20
|
zip_options = params[:verbose] ? "r" : "rq"
|
21
21
|
|
22
|
-
Actions.sh
|
22
|
+
Actions.sh("zip -#{zip_options} #{absolute_output_path.shellescape} #{File.basename(params[:path]).shellescape}")
|
23
23
|
end
|
24
24
|
|
25
|
-
UI.success
|
25
|
+
UI.success("Successfully generated zip file at path '#{File.expand_path(absolute_output_path)}'")
|
26
26
|
return File.expand_path(absolute_output_path)
|
27
27
|
end
|
28
28
|
|
@@ -9,38 +9,38 @@ module Fastlane
|
|
9
9
|
def self.execute(args, options)
|
10
10
|
shell = ENV['SHELL']
|
11
11
|
|
12
|
-
if shell.end_with?
|
12
|
+
if shell.end_with?("fish")
|
13
13
|
fish_completions_dir = "~/.config/fish/completions"
|
14
14
|
|
15
15
|
if UI.interactive?
|
16
|
-
confirm = UI.confirm
|
16
|
+
confirm = UI.confirm("This will copy a fish script into #{fish_completions_dir} that provides the command tab completion. If the directory does not exist it will be created. Sound good?")
|
17
17
|
return unless confirm
|
18
18
|
end
|
19
19
|
|
20
|
-
fish_completions_dir = File.expand_path
|
21
|
-
FileUtils.mkdir_p
|
20
|
+
fish_completions_dir = File.expand_path(fish_completions_dir)
|
21
|
+
FileUtils.mkdir_p(fish_completions_dir)
|
22
22
|
|
23
23
|
completion_script_path = File.join(Fastlane::ROOT, 'lib', 'assets', 'completions', 'completion.fish')
|
24
24
|
final_completion_script_path = File.join(fish_completions_dir, 'fastlane.fish')
|
25
25
|
|
26
|
-
FileUtils.cp
|
26
|
+
FileUtils.cp(completion_script_path, final_completion_script_path)
|
27
27
|
|
28
|
-
UI.success
|
28
|
+
UI.success("Copied! You can now use tab completion for lanes")
|
29
29
|
else
|
30
30
|
fastlane_conf_dir = "~/.fastlane"
|
31
31
|
|
32
32
|
if UI.interactive?
|
33
|
-
confirm = UI.confirm
|
33
|
+
confirm = UI.confirm("This will copy a shell script into #{fastlane_conf_dir} that provides the command tab completion. Sound good?")
|
34
34
|
return unless confirm
|
35
35
|
end
|
36
36
|
|
37
37
|
# create the ~/.fastlane directory
|
38
|
-
fastlane_conf_dir = File.expand_path
|
39
|
-
FileUtils.mkdir_p
|
38
|
+
fastlane_conf_dir = File.expand_path(fastlane_conf_dir)
|
39
|
+
FileUtils.mkdir_p(fastlane_conf_dir)
|
40
40
|
|
41
41
|
# then copy all of the completions files into it from the gem
|
42
42
|
completion_script_path = File.join(Fastlane::ROOT, 'lib', 'assets', 'completions')
|
43
|
-
FileUtils.cp_r
|
43
|
+
FileUtils.cp_r(completion_script_path, fastlane_conf_dir)
|
44
44
|
|
45
45
|
custom_commands = options.custom.to_s.split(',')
|
46
46
|
|
@@ -48,21 +48,21 @@ module Fastlane
|
|
48
48
|
open("#{fastlane_conf_dir}/completions/completion.#{shell_name}", 'a') do |file|
|
49
49
|
default_line_prefix = Helper.bundler? ? "bundle exec " : ""
|
50
50
|
|
51
|
-
file.puts
|
51
|
+
file.puts(self.get_auto_complete_line(shell_name, "#{default_line_prefix}fastlane"))
|
52
52
|
|
53
53
|
custom_commands.each do |command|
|
54
54
|
auto_complete_line = self.get_auto_complete_line(shell_name, command)
|
55
55
|
|
56
56
|
next if auto_complete_line.nil?
|
57
57
|
|
58
|
-
file.puts
|
58
|
+
file.puts(auto_complete_line)
|
59
59
|
end
|
60
60
|
end
|
61
61
|
end
|
62
62
|
|
63
|
-
UI.success
|
64
|
-
UI.important
|
65
|
-
UI.success
|
63
|
+
UI.success("Copied! To use auto complete for fastlane, add the following line to your favorite rc file (e.g. ~/.bashrc)")
|
64
|
+
UI.important(" . ~/.fastlane/completions/completion.sh")
|
65
|
+
UI.success("Don't forget to source that file in your current shell! 🐚")
|
66
66
|
end
|
67
67
|
end
|
68
68
|
|