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
@@ -30,10 +30,10 @@ module Fastlane
|
|
30
30
|
class << self
|
31
31
|
attr_accessor :runner
|
32
32
|
|
33
|
-
extend
|
33
|
+
extend(Forwardable)
|
34
34
|
|
35
35
|
# to allow a simple `sh` in the custom actions
|
36
|
-
def_delegator
|
36
|
+
def_delegator(Actions, :sh_control_output, :sh)
|
37
37
|
end
|
38
38
|
|
39
39
|
def self.run(params)
|
@@ -115,16 +115,16 @@ module Fastlane
|
|
115
115
|
class_ref = Fastlane::Actions.const_get(class_name)
|
116
116
|
|
117
117
|
if class_ref.respond_to?(:run)
|
118
|
-
UI.success
|
118
|
+
UI.success("Successfully loaded custom action '#{file}'.") if FastlaneCore::Globals.verbose?
|
119
119
|
else
|
120
|
-
UI.error
|
121
|
-
UI.error
|
120
|
+
UI.error("Could not find method 'run' in class #{class_name}.")
|
121
|
+
UI.error('For more information, check out the docs: https://docs.fastlane.tools/')
|
122
122
|
UI.user_error!("Action '#{file_name}' is damaged!", show_github_issues: true)
|
123
123
|
end
|
124
124
|
rescue NameError
|
125
125
|
# Action not found
|
126
|
-
UI.error
|
127
|
-
UI.error
|
126
|
+
UI.error("Could not find '#{class_name}' class defined.")
|
127
|
+
UI.error('For more information, check out the docs: https://docs.fastlane.tools/')
|
128
128
|
UI.user_error!("Action '#{file_name}' is damaged!", show_github_issues: true)
|
129
129
|
end
|
130
130
|
end
|
@@ -2,9 +2,9 @@ module Fastlane
|
|
2
2
|
module Actions
|
3
3
|
class AddExtraPlatformsAction < Action
|
4
4
|
def self.run(params)
|
5
|
-
UI.verbose
|
5
|
+
UI.verbose("Before injecting extra platforms: #{Fastlane::SupportedPlatforms.all}")
|
6
6
|
Fastlane::SupportedPlatforms.extra = params[:platforms]
|
7
|
-
UI.verbose
|
7
|
+
UI.verbose("After injecting extra platforms (#{params[:platforms]})...: #{Fastlane::SupportedPlatforms.all}")
|
8
8
|
end
|
9
9
|
|
10
10
|
def self.description
|
@@ -112,7 +112,7 @@ module Fastlane
|
|
112
112
|
is_string: true,
|
113
113
|
default_value: "ios",
|
114
114
|
verify_block: proc do |value|
|
115
|
-
UI.user_error!("The platform can only be ios, appletvos, or osx") unless %('ios', 'appletvos', 'osx').include?
|
115
|
+
UI.user_error!("The platform can only be ios, appletvos, or osx") unless %('ios', 'appletvos', 'osx').include?(value)
|
116
116
|
end),
|
117
117
|
FastlaneCore::ConfigItem.new(key: :team_name,
|
118
118
|
short_option: "-e",
|
@@ -28,7 +28,7 @@ module Fastlane
|
|
28
28
|
http.use_ssl = true
|
29
29
|
presign_form_response = http.request(Net::HTTP::Get.new(uri.request_uri))
|
30
30
|
json_res = JSON.parse(presign_form_response.body)
|
31
|
-
return if error_detected
|
31
|
+
return if error_detected(json_res['errors'])
|
32
32
|
s3_sign = json_res['s3_sign']
|
33
33
|
path = json_res['path']
|
34
34
|
uri = URI.parse(Base64.decode64(s3_sign))
|
@@ -123,9 +123,9 @@ module Fastlane
|
|
123
123
|
uoa_response = http.request(req)
|
124
124
|
json_res = JSON.parse(uoa_response.body)
|
125
125
|
if json_res['errors']
|
126
|
-
UI.error
|
126
|
+
UI.error("App: #{json_res['errors']}")
|
127
127
|
else
|
128
|
-
UI.success
|
128
|
+
UI.success("Binary processing: Check your app': #{json_res['link']}")
|
129
129
|
end
|
130
130
|
end
|
131
131
|
|
@@ -226,7 +226,7 @@ module Fastlane
|
|
226
226
|
end
|
227
227
|
|
228
228
|
def self.is_supported?(platform)
|
229
|
-
[:ios, :mac, :android].include?
|
229
|
+
[:ios, :mac, :android].include?(platform)
|
230
230
|
end
|
231
231
|
|
232
232
|
def self.invalid_response?(url_for_download_response)
|
@@ -38,9 +38,9 @@ module Fastlane
|
|
38
38
|
http.use_ssl = true
|
39
39
|
|
40
40
|
if params[:platform] == 'ios'
|
41
|
-
UI.message
|
41
|
+
UI.message("Uploading ipa to appetize... this might take a while")
|
42
42
|
else
|
43
|
-
UI.message
|
43
|
+
UI.message("Uploading apk to appetize... this might take a while")
|
44
44
|
end
|
45
45
|
|
46
46
|
response = http.request(req)
|
@@ -81,7 +81,7 @@ module Fastlane
|
|
81
81
|
Actions.lane_context[SharedValues::APPETIZE_MANAGE_URL] = manage_url
|
82
82
|
return true
|
83
83
|
rescue => ex
|
84
|
-
UI.error
|
84
|
+
UI.error(ex)
|
85
85
|
UI.user_error!("Error uploading to Appetize.io: #{response.body}")
|
86
86
|
end
|
87
87
|
private_class_method :parse_response
|
@@ -27,8 +27,8 @@ module Fastlane
|
|
27
27
|
url_params << "launchUrl=#{params[:launch_url]}" if params[:launch_url]
|
28
28
|
url_params << "language=#{params[:language]}" if params[:language]
|
29
29
|
url_params << "osVersion=#{params[:os_version]}" if params[:os_version]
|
30
|
-
url_params << "params=#{CGI.escape
|
31
|
-
url_params << "proxy=#{CGI.escape
|
30
|
+
url_params << "params=#{CGI.escape(params[:params])}" if params[:params]
|
31
|
+
url_params << "proxy=#{CGI.escape(params[:proxy])}" if params[:proxy]
|
32
32
|
|
33
33
|
return link + "?" + url_params.join("&")
|
34
34
|
end
|
@@ -32,7 +32,7 @@ module Fastlane
|
|
32
32
|
UI.user_error!("Failed to run Appium spec. status code: #{status}")
|
33
33
|
end
|
34
34
|
ensure
|
35
|
-
Actions.sh
|
35
|
+
Actions.sh("kill #{appium_pid}") if appium_pid
|
36
36
|
end
|
37
37
|
|
38
38
|
def self.invoke_appium_server(params)
|
@@ -72,7 +72,7 @@ module Fastlane
|
|
72
72
|
if count * 5 > INVOKE_TIMEOUT
|
73
73
|
UI.user_error!("Invoke Appium server timed out")
|
74
74
|
end
|
75
|
-
sleep
|
75
|
+
sleep(5)
|
76
76
|
end
|
77
77
|
end
|
78
78
|
|
@@ -74,7 +74,7 @@ module Fastlane
|
|
74
74
|
input_cli_arg = Array(params_hash[:input]).map(&:shellescape).join(' ')
|
75
75
|
command = "appledoc #{cli_args}".strip + " " + input_cli_arg
|
76
76
|
UI.verbose(command)
|
77
|
-
Actions.sh
|
77
|
+
Actions.sh(command)
|
78
78
|
end
|
79
79
|
|
80
80
|
def self.params_hash_to_cli_args(params)
|
@@ -109,8 +109,8 @@ module Fastlane
|
|
109
109
|
output_dir = File.dirname(output_path)
|
110
110
|
|
111
111
|
# If the output directory doesn't exist, create it
|
112
|
-
unless Dir.exist?
|
113
|
-
FileUtils.mkpath
|
112
|
+
unless Dir.exist?(output_dir)
|
113
|
+
FileUtils.mkpath(output_dir)
|
114
114
|
end
|
115
115
|
end
|
116
116
|
|
@@ -18,9 +18,9 @@ module Fastlane
|
|
18
18
|
|
19
19
|
def self.fail_on_error(result)
|
20
20
|
if result != "200"
|
21
|
-
UI.crash!
|
21
|
+
UI.crash!("Server error, failed to upload the dSYM file.")
|
22
22
|
else
|
23
|
-
UI.success
|
23
|
+
UI.success('dSYM successfully uploaded to Apteligent!')
|
24
24
|
end
|
25
25
|
end
|
26
26
|
|
@@ -11,7 +11,7 @@ module Fastlane
|
|
11
11
|
|
12
12
|
require 'artifactory'
|
13
13
|
file_path = File.absolute_path(params[:file])
|
14
|
-
if File.exist?
|
14
|
+
if File.exist?(file_path)
|
15
15
|
client = connect_to_artifactory(params)
|
16
16
|
artifact = Artifactory::Resource::Artifact.new
|
17
17
|
artifact.client = client
|
@@ -39,7 +39,7 @@ module Fastlane
|
|
39
39
|
def self.connect_to_artifactory(params)
|
40
40
|
config_keys = [:endpoint, :username, :password, :ssl_pem_file, :ssl_verify, :proxy_username, :proxy_password, :proxy_address, :proxy_port]
|
41
41
|
config = params.values.select do |key|
|
42
|
-
config_keys.include?
|
42
|
+
config_keys.include?(key)
|
43
43
|
end
|
44
44
|
Artifactory::Client.new(config)
|
45
45
|
end
|
@@ -10,9 +10,9 @@ module Fastlane
|
|
10
10
|
cmd << command_name
|
11
11
|
|
12
12
|
if command_name == "archive" && params[:frameworks].count > 0
|
13
|
-
cmd.concat
|
13
|
+
cmd.concat(params[:frameworks])
|
14
14
|
elsif (command_name == "update" || command_name == "build") && params[:dependencies].count > 0
|
15
|
-
cmd.concat
|
15
|
+
cmd.concat(params[:dependencies])
|
16
16
|
end
|
17
17
|
|
18
18
|
cmd << "--output #{params[:output]}" if params[:output]
|
@@ -63,7 +63,7 @@ module Fastlane
|
|
63
63
|
description: "Carthage command (one of: #{available_commands.join(', ')})",
|
64
64
|
default_value: 'bootstrap',
|
65
65
|
verify_block: proc do |value|
|
66
|
-
UI.user_error!("Please pass a valid command. Use one of the following: #{available_commands.join(', ')}") unless available_commands.include?
|
66
|
+
UI.user_error!("Please pass a valid command. Use one of the following: #{available_commands.join(', ')}") unless available_commands.include?(value)
|
67
67
|
end),
|
68
68
|
FastlaneCore::ConfigItem.new(key: :dependencies,
|
69
69
|
description: "Carthage dependencies to update or build",
|
@@ -190,7 +190,7 @@ module Fastlane
|
|
190
190
|
end
|
191
191
|
|
192
192
|
def self.is_supported?(platform)
|
193
|
-
[:ios, :mac].include?
|
193
|
+
[:ios, :mac].include?(platform)
|
194
194
|
end
|
195
195
|
|
196
196
|
def self.authors
|
@@ -37,9 +37,9 @@ module Fastlane
|
|
37
37
|
changelog = changelog.gsub("\n\n", "\n") if changelog # as there are duplicate newlines
|
38
38
|
Actions.lane_context[SharedValues::FL_CHANGELOG] = changelog
|
39
39
|
|
40
|
-
puts
|
41
|
-
puts
|
42
|
-
puts
|
40
|
+
puts("")
|
41
|
+
puts(changelog)
|
42
|
+
puts("")
|
43
43
|
|
44
44
|
changelog
|
45
45
|
end
|
@@ -117,7 +117,7 @@ module Fastlane
|
|
117
117
|
is_string: false,
|
118
118
|
type: Boolean,
|
119
119
|
verify_block: proc do |value|
|
120
|
-
UI.important
|
120
|
+
UI.important("The :include_merges option is deprecated. Please use :merge_commit_filtering instead") unless value.nil?
|
121
121
|
end),
|
122
122
|
FastlaneCore::ConfigItem.new(key: :merge_commit_filtering,
|
123
123
|
env_name: 'FL_CHANGELOG_FROM_GIT_COMMITS_MERGE_COMMIT_FILTERING',
|
@@ -19,8 +19,8 @@ module Fastlane
|
|
19
19
|
UI.important("Creating commit on #{repo_name} on branch \"#{branch}\" for file \"#{file_path}\"")
|
20
20
|
|
21
21
|
api_file_path = file_path
|
22
|
-
api_file_path = "/#{api_file_path}" unless api_file_path.start_with?
|
23
|
-
api_file_path = api_file_path[0..-2] if api_file_path.end_with?
|
22
|
+
api_file_path = "/#{api_file_path}" unless api_file_path.start_with?('/')
|
23
|
+
api_file_path = api_file_path[0..-2] if api_file_path.end_with?('/')
|
24
24
|
|
25
25
|
payload = {
|
26
26
|
path: api_file_path,
|
@@ -89,7 +89,7 @@ module Fastlane
|
|
89
89
|
env_name: "FL_COMMIT_GITHUB_FILE_REPOSITORY_NAME",
|
90
90
|
description: "The path to your repo, e.g. 'fastlane/fastlane'",
|
91
91
|
verify_block: proc do |value|
|
92
|
-
UI.user_error!("Please only pass the path, e.g. 'fastlane/fastlane'") if value.include?
|
92
|
+
UI.user_error!("Please only pass the path, e.g. 'fastlane/fastlane'") if value.include?("github.com")
|
93
93
|
UI.user_error!("Please only pass the path, e.g. 'fastlane/fastlane'") if value.split('/').count != 2
|
94
94
|
end),
|
95
95
|
FastlaneCore::ConfigItem.new(key: :server_url,
|
@@ -98,7 +98,7 @@ module Fastlane
|
|
98
98
|
default_value: "https://api.github.com",
|
99
99
|
optional: true,
|
100
100
|
verify_block: proc do |value|
|
101
|
-
UI.user_error!("Please include the protocol in the server url, e.g. https://your.github.server/api/v3") unless value.include?
|
101
|
+
UI.user_error!("Please include the protocol in the server url, e.g. https://your.github.server/api/v3") unless value.include?("//")
|
102
102
|
end),
|
103
103
|
FastlaneCore::ConfigItem.new(key: :api_token,
|
104
104
|
env_name: "FL_COMMIT_GITHUB_FILE_API_TOKEN",
|
@@ -88,7 +88,7 @@ module Fastlane
|
|
88
88
|
|
89
89
|
if params[:settings]
|
90
90
|
settings_plists_from_param(params[:settings]).each do |file|
|
91
|
-
settings_file_pathname = Pathname.new
|
91
|
+
settings_file_pathname = Pathname.new(settings_bundle_file_path(project, file))
|
92
92
|
expected_changed_files << settings_file_pathname.relative_path_from(repo_pathname).to_s
|
93
93
|
end
|
94
94
|
end
|
@@ -102,7 +102,7 @@ module Fastlane
|
|
102
102
|
UI.user_error!("No file changes picked up. Make sure you run the `increment_build_number` action first.") if git_dirty_files.empty?
|
103
103
|
|
104
104
|
# check if the files changed are the ones we expected to change (these should be only the files that have version info in them)
|
105
|
-
changed_files_as_expected =
|
105
|
+
changed_files_as_expected = Set.new(git_dirty_files.map(&:downcase)).subset?(Set.new(expected_changed_files.map(&:downcase)))
|
106
106
|
unless changed_files_as_expected
|
107
107
|
unless params[:force]
|
108
108
|
error = [
|
@@ -155,7 +155,7 @@ module Fastlane
|
|
155
155
|
description: "The path to your project file (Not the workspace). If you have only one, this is optional",
|
156
156
|
optional: true,
|
157
157
|
verify_block: proc do |value|
|
158
|
-
UI.user_error!("Please pass the path to the project, not the workspace") if value.end_with?
|
158
|
+
UI.user_error!("Please pass the path to the project, not the workspace") if value.end_with?(".xcworkspace")
|
159
159
|
UI.user_error!("Could not find Xcode project") unless File.exist?(value)
|
160
160
|
end),
|
161
161
|
FastlaneCore::ConfigItem.new(key: :force,
|
@@ -204,7 +204,7 @@ module Fastlane
|
|
204
204
|
end
|
205
205
|
|
206
206
|
def self.is_supported?(platform)
|
207
|
-
[:ios, :mac].include?
|
207
|
+
[:ios, :mac].include?(platform)
|
208
208
|
end
|
209
209
|
|
210
210
|
def self.example_code
|
@@ -238,10 +238,10 @@ module Fastlane
|
|
238
238
|
|
239
239
|
class << self
|
240
240
|
def settings_plists_from_param(param)
|
241
|
-
if param.kind_of?
|
241
|
+
if param.kind_of?(String)
|
242
242
|
# commit_version_bump settings: "About.plist"
|
243
243
|
return [param]
|
244
|
-
elsif param.kind_of?
|
244
|
+
elsif param.kind_of?(Array)
|
245
245
|
# commit_version_bump settings: ["Root.plist", "About.plist"]
|
246
246
|
return param
|
247
247
|
else
|
@@ -260,7 +260,7 @@ module Fastlane
|
|
260
260
|
def modified_files_relative_to_repo_root(repo_root)
|
261
261
|
return [] if Actions.lane_context[SharedValues::MODIFIED_FILES].nil?
|
262
262
|
|
263
|
-
root_pathname = Pathname.new
|
263
|
+
root_pathname = Pathname.new(repo_root)
|
264
264
|
all_modified_files = Actions.lane_context[SharedValues::MODIFIED_FILES].map do |path|
|
265
265
|
next path unless path =~ %r{^/}
|
266
266
|
Pathname.new(path).relative_path_from(root_pathname).to_s
|
@@ -23,7 +23,7 @@ module Fastlane
|
|
23
23
|
|
24
24
|
if params[:fail_on_missing]
|
25
25
|
missing = artifacts.reject { |a| File.exist?(a) }
|
26
|
-
UI.user_error!
|
26
|
+
UI.user_error!("Not all files were present in copy artifacts. Missing #{missing.join(', ')}") unless missing.empty?
|
27
27
|
else
|
28
28
|
# If we don't fail on non-existent files, don't try to copy non-existent files
|
29
29
|
artifacts.select! { |artifact| File.exist?(artifact) }
|
@@ -35,7 +35,7 @@ module Fastlane
|
|
35
35
|
.gsub(params[:build_secret], '[[BUILD_SECRET]]')
|
36
36
|
end
|
37
37
|
|
38
|
-
UI.verbose
|
38
|
+
UI.verbose(sanitizer.call(command.join(' '))) if FastlaneCore::Globals.verbose?
|
39
39
|
|
40
40
|
error_callback = proc do |error|
|
41
41
|
clean_error = sanitizer.call(error)
|
@@ -51,7 +51,7 @@ module Fastlane
|
|
51
51
|
|
52
52
|
return command if Helper.test?
|
53
53
|
|
54
|
-
UI.verbose
|
54
|
+
UI.verbose(sanitizer.call(result)) if FastlaneCore::Globals.verbose?
|
55
55
|
|
56
56
|
UI.success('Build successfully uploaded to Crashlytics Beta 🌷')
|
57
57
|
UI.success('Visit https://fabric.io/_/beta to add release notes and notify testers.')
|