fastlane 2.74.1 → 2.75.0.beta.20180109010003
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
@@ -20,7 +20,7 @@ module Fastlane
|
|
20
20
|
|
21
21
|
# this will log a warning if the passed platform is not supported
|
22
22
|
def self.verify!(platform)
|
23
|
-
unless all.include?
|
23
|
+
unless all.include?(platform.to_s.to_sym)
|
24
24
|
UI.important("Platform '#{platform}' is not officially supported. Currently supported platforms are #{self.all}.")
|
25
25
|
end
|
26
26
|
end
|
@@ -18,9 +18,11 @@ module Fastlane
|
|
18
18
|
attr_accessor :actions_not_supported
|
19
19
|
attr_accessor :action_options_to_ignore
|
20
20
|
attr_accessor :target_output_path
|
21
|
+
attr_accessor :generated_paths # stores all file names of generated files (as they are generated)
|
21
22
|
|
22
23
|
def initialize(target_output_path: "swift")
|
23
24
|
@target_output_path = File.expand_path(target_output_path)
|
25
|
+
@generated_paths = []
|
24
26
|
require 'fastlane'
|
25
27
|
require 'fastlane/documentation/actions_list'
|
26
28
|
Fastlane.load_actions
|
@@ -49,6 +51,7 @@ module Fastlane
|
|
49
51
|
end
|
50
52
|
|
51
53
|
def generate_swift
|
54
|
+
self.generated_paths = [] # reset generated paths in case we're called multiple times
|
52
55
|
file_content = []
|
53
56
|
file_content << "import Foundation"
|
54
57
|
|
@@ -83,9 +86,9 @@ module Fastlane
|
|
83
86
|
File.write(fastlane_swift_api_path, file_content)
|
84
87
|
UI.success(fastlane_swift_api_path)
|
85
88
|
|
86
|
-
|
87
|
-
|
88
|
-
return
|
89
|
+
self.generated_paths << fastlane_swift_api_path
|
90
|
+
self.generated_paths += generate_default_implementations(tool_details: tool_details)
|
91
|
+
return self.generated_paths
|
89
92
|
end
|
90
93
|
|
91
94
|
def write_lanefile(lanefile_implementation_opening: nil, class_name: nil, tool_name: nil)
|
@@ -202,6 +205,7 @@ func parseInt(fromString: String, function: String = #function) -> Int {
|
|
202
205
|
file_content = protocol_content_array.join("\n")
|
203
206
|
File.write(target_path, file_content)
|
204
207
|
UI.success(target_path)
|
208
|
+
return target_path
|
205
209
|
end
|
206
210
|
|
207
211
|
def ignore_param?(function_name: nil, param_name: nil)
|
@@ -226,9 +230,9 @@ func parseInt(fromString: String, function: String = #function) -> Int {
|
|
226
230
|
key_optionality_values = []
|
227
231
|
key_type_overrides = []
|
228
232
|
|
229
|
-
if options.kind_of?
|
233
|
+
if options.kind_of?(Array)
|
230
234
|
options.each do |current|
|
231
|
-
next unless current.kind_of?
|
235
|
+
next unless current.kind_of?(FastlaneCore::ConfigItem)
|
232
236
|
|
233
237
|
if ignore_param?(function_name: action_name, param_name: current.key)
|
234
238
|
next
|
@@ -252,7 +256,7 @@ func parseInt(fromString: String, function: String = #function) -> Int {
|
|
252
256
|
key_type_overrides: key_type_overrides,
|
253
257
|
return_type: action_return_type
|
254
258
|
)
|
255
|
-
generate_tool_protocol(tool_swift_function: tool_swift_function)
|
259
|
+
self.generated_paths << generate_tool_protocol(tool_swift_function: tool_swift_function)
|
256
260
|
return tool_swift_function
|
257
261
|
else
|
258
262
|
return SwiftFunction.new(
|
@@ -42,7 +42,7 @@ module Fastlane
|
|
42
42
|
# We also catch Exception, since the implemented action might send a SystemExit signal
|
43
43
|
# (or similar). We still want to catch that, since we want properly finish running fastlane
|
44
44
|
# Tested with `xcake`, which throws a `Xcake::Informative` object
|
45
|
-
UI.error
|
45
|
+
UI.error(e.to_s) if e.kind_of?(StandardError) # we don't want to print things like 'system exit'
|
46
46
|
end
|
47
47
|
|
48
48
|
skip_message = false
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module Fastlane
|
2
|
-
VERSION = '2.
|
2
|
+
VERSION = '2.75.0.beta.20180109010003'.freeze
|
3
3
|
DESCRIPTION = "The easiest way to automate beta deployments and releases for your iOS and Android apps".freeze
|
4
4
|
MINIMUM_XCODE_RELEASE = "7.0".freeze
|
5
5
|
RUBOCOP_REQUIREMENT = '0.49.1'.freeze
|
data/fastlane_core/README.md
CHANGED
@@ -1,29 +1,3 @@
|
|
1
|
-
<h3 align="center">
|
2
|
-
<a href="https://github.com/fastlane/fastlane/tree/master/fastlane">
|
3
|
-
<img src="../fastlane/assets/fastlane.png" width="150" />
|
4
|
-
<br />
|
5
|
-
fastlane
|
6
|
-
</a>
|
7
|
-
</h3>
|
8
|
-
<p align="center">
|
9
|
-
<a href="https://github.com/fastlane/fastlane/tree/master/deliver">deliver</a> •
|
10
|
-
<a href="https://github.com/fastlane/fastlane/tree/master/snapshot">snapshot</a> •
|
11
|
-
<a href="https://github.com/fastlane/fastlane/tree/master/frameit">frameit</a> •
|
12
|
-
<a href="https://github.com/fastlane/fastlane/tree/master/pem">pem</a> •
|
13
|
-
<a href="https://github.com/fastlane/fastlane/tree/master/sigh">sigh</a> •
|
14
|
-
<a href="https://github.com/fastlane/fastlane/tree/master/produce">produce</a> •
|
15
|
-
<a href="https://github.com/fastlane/fastlane/tree/master/cert">cert</a> •
|
16
|
-
<a href="https://github.com/fastlane/fastlane/tree/master/spaceship">spaceship</a> •
|
17
|
-
<a href="https://github.com/fastlane/fastlane/tree/master/pilot">pilot</a> •
|
18
|
-
<a href="https://github.com/fastlane/boarding">boarding</a> •
|
19
|
-
<a href="https://github.com/fastlane/fastlane/tree/master/gym">gym</a> •
|
20
|
-
<a href="https://github.com/fastlane/fastlane/tree/master/scan">scan</a> •
|
21
|
-
<a href="https://github.com/fastlane/fastlane/tree/master/match">match</a> •
|
22
|
-
<a href="https://github.com/fastlane/fastlane/tree/master/precheck">precheck</a>
|
23
|
-
</p>
|
24
|
-
|
25
|
-
-------
|
26
|
-
|
27
1
|
FastlaneCore
|
28
2
|
============
|
29
3
|
|
@@ -28,14 +28,14 @@ module FastlaneCore
|
|
28
28
|
|
29
29
|
require 'faraday'
|
30
30
|
connection = Faraday.new(url) do |conn|
|
31
|
-
conn.adapter
|
31
|
+
conn.adapter(Faraday.default_adapter)
|
32
32
|
if ENV['METRICS_DEBUG']
|
33
33
|
conn.proxy = "https://127.0.0.1:8888"
|
34
34
|
conn.ssl[:verify_mode] = OpenSSL::SSL::VERIFY_NONE
|
35
35
|
end
|
36
36
|
end
|
37
37
|
connection.post do |req|
|
38
|
-
req.url
|
38
|
+
req.url('/public')
|
39
39
|
req.headers['Content-Type'] = 'application/json'
|
40
40
|
req.body = body
|
41
41
|
end
|
@@ -11,7 +11,7 @@ module FastlaneCore
|
|
11
11
|
ids = installed_identies
|
12
12
|
finger_print = sha1_fingerprint(path)
|
13
13
|
|
14
|
-
return ids.include?
|
14
|
+
return ids.include?(finger_print)
|
15
15
|
end
|
16
16
|
|
17
17
|
# Legacy Method, use `installed?` instead
|
@@ -35,7 +35,7 @@ module FastlaneCore
|
|
35
35
|
|
36
36
|
ids = []
|
37
37
|
available.split("\n").each do |current|
|
38
|
-
next if current.include?
|
38
|
+
next if current.include?("REVOKED")
|
39
39
|
begin
|
40
40
|
(ids << current.match(/.*\) ([[:xdigit:]]*) \".*/)[1])
|
41
41
|
rescue
|
@@ -74,7 +74,7 @@ module FastlaneCore
|
|
74
74
|
# > invalid byte sequence in US-ASCII (ArgumentError)
|
75
75
|
output << ex.to_s
|
76
76
|
o = output.join("\n")
|
77
|
-
puts
|
77
|
+
puts(o)
|
78
78
|
if error
|
79
79
|
error.call(o, nil)
|
80
80
|
else
|
@@ -86,8 +86,8 @@ module FastlaneCore
|
|
86
86
|
status = $?.exitstatus
|
87
87
|
if status != 0
|
88
88
|
o = output.join("\n")
|
89
|
-
puts
|
90
|
-
UI.error
|
89
|
+
puts(o) # the user has the right to see the raw output
|
90
|
+
UI.error("Exit status: #{status}")
|
91
91
|
if error
|
92
92
|
error.call(o, status)
|
93
93
|
else
|
@@ -99,8 +99,8 @@ module FastlaneCore
|
|
99
99
|
code_gen_sensitive: false,
|
100
100
|
code_gen_default_value: nil,
|
101
101
|
display_in_shell: true)
|
102
|
-
UI.user_error!("key must be a symbol") unless key.kind_of?
|
103
|
-
UI.user_error!("env_name must be a String") unless (env_name || '').kind_of?
|
102
|
+
UI.user_error!("key must be a symbol") unless key.kind_of?(Symbol)
|
103
|
+
UI.user_error!("env_name must be a String") unless (env_name || '').kind_of?(String)
|
104
104
|
|
105
105
|
if short_option
|
106
106
|
UI.user_error!("short_option for key :#{key} must of type String") unless short_option.kind_of?(String)
|
@@ -113,7 +113,7 @@ module FastlaneCore
|
|
113
113
|
|
114
114
|
if conflicting_options
|
115
115
|
conflicting_options.each do |conflicting_option_key|
|
116
|
-
UI.user_error!("Conflicting option key must be a symbol") unless conflicting_option_key.kind_of?
|
116
|
+
UI.user_error!("Conflicting option key must be a symbol") unless conflicting_option_key.kind_of?(Symbol)
|
117
117
|
end
|
118
118
|
end
|
119
119
|
|
@@ -210,7 +210,7 @@ module FastlaneCore
|
|
210
210
|
begin
|
211
211
|
@verify_block.call(value)
|
212
212
|
rescue => ex
|
213
|
-
UI.error
|
213
|
+
UI.error("Error setting value '#{value}' for option '#{@key}'")
|
214
214
|
raise Interface::FastlaneError.new, ex.to_s
|
215
215
|
end
|
216
216
|
end
|
@@ -70,9 +70,9 @@ module FastlaneCore
|
|
70
70
|
end
|
71
71
|
|
72
72
|
def verify_input_types
|
73
|
-
UI.user_error!("available_options parameter must be an array of ConfigItems but is #{@available_options.class}") unless @available_options.kind_of?
|
73
|
+
UI.user_error!("available_options parameter must be an array of ConfigItems but is #{@available_options.class}") unless @available_options.kind_of?(Array)
|
74
74
|
@available_options.each do |item|
|
75
|
-
UI.user_error!("available_options parameter must be an array of ConfigItems. Found #{item.class}.") unless item.kind_of?
|
75
|
+
UI.user_error!("available_options parameter must be an array of ConfigItems. Found #{item.class}.") unless item.kind_of?(ConfigItem)
|
76
76
|
end
|
77
77
|
UI.user_error!("values parameter must be a hash") unless @values.kind_of?(Hash)
|
78
78
|
end
|
@@ -245,7 +245,7 @@ module FastlaneCore
|
|
245
245
|
begin
|
246
246
|
set(key, value)
|
247
247
|
rescue => ex
|
248
|
-
puts
|
248
|
+
puts(ex)
|
249
249
|
value = nil
|
250
250
|
end
|
251
251
|
end
|
@@ -261,7 +261,7 @@ module FastlaneCore
|
|
261
261
|
# Overwrites or sets a new value for a given key
|
262
262
|
# @param key [Symbol] Must be a symbol
|
263
263
|
def set(key, value)
|
264
|
-
UI.user_error!("Key '#{key}' must be a symbol. Example :#{key}.") unless key.kind_of?
|
264
|
+
UI.user_error!("Key '#{key}' must be a symbol. Example :#{key}.") unless key.kind_of?(Symbol)
|
265
265
|
option = option_for_key(key)
|
266
266
|
|
267
267
|
unless option
|
@@ -69,10 +69,10 @@ module FastlaneCore
|
|
69
69
|
[key, value] if value.to_s.length > 0
|
70
70
|
end.compact
|
71
71
|
|
72
|
-
puts
|
73
|
-
puts
|
74
|
-
title: "Detected Values from '#{self.configfile_path}'")
|
75
|
-
puts
|
72
|
+
puts("")
|
73
|
+
puts(Terminal::Table.new(rows: FastlaneCore::PrintTable.transform_output(rows),
|
74
|
+
title: "Detected Values from '#{self.configfile_path}'"))
|
75
|
+
puts("")
|
76
76
|
end
|
77
77
|
|
78
78
|
# This is used to display only the values that have changed in the summary table
|
@@ -12,7 +12,7 @@ require "plist"
|
|
12
12
|
# CFPropertyList also adds Enumerator#to_plist, but there is no such
|
13
13
|
# method from Plist, so leave it.
|
14
14
|
[Array, Hash].each do |c|
|
15
|
-
c.send
|
16
|
-
c.send
|
17
|
-
c.module_eval
|
15
|
+
c.send(:alias_method, :to_binary_plist, :to_plist)
|
16
|
+
c.send(:remove_method, :to_plist)
|
17
|
+
c.module_eval("include Plist::Emit")
|
18
18
|
end
|
@@ -56,9 +56,7 @@ module FastlaneCore
|
|
56
56
|
|
57
57
|
if matches.count && (os_type == requested_os_type || requested_os_type == "")
|
58
58
|
# This is disabled here because the Device is defined later in the file, and that's a problem for the cop
|
59
|
-
# rubocop:disable Lint/MissingRequireStatement
|
60
59
|
@devices << Device.new(name: name, os_type: os_type, os_version: (exact_versions[os_type][os_version] || os_version), udid: udid, state: state, is_simulator: true)
|
61
|
-
# rubocop:enable Lint/MissingRequireStatement
|
62
60
|
end
|
63
61
|
end
|
64
62
|
end
|
@@ -257,7 +255,7 @@ module FastlaneCore
|
|
257
255
|
|
258
256
|
simulator_path = File.join(Helper.xcode_path, 'Applications', 'Simulator.app')
|
259
257
|
|
260
|
-
UI.verbose
|
258
|
+
UI.verbose("Launching #{simulator_path} for device: #{device.name} (#{device.udid})")
|
261
259
|
|
262
260
|
Helper.backticks("open -a #{simulator_path} --args -CurrentDeviceUDID #{device.udid}", print: FastlaneCore::Globals.verbose?)
|
263
261
|
end
|
@@ -288,7 +286,7 @@ module FastlaneCore
|
|
288
286
|
|
289
287
|
FileUtils.rm_f(logfile_dst)
|
290
288
|
FileUtils.cp(logfile_src, logfile_dst)
|
291
|
-
UI.success
|
289
|
+
UI.success("Copying file '#{logfile_src}' to '#{logfile_dst}'...")
|
292
290
|
end
|
293
291
|
|
294
292
|
def copy_logarchive(device, log_identity, logs_destination_dir)
|
@@ -65,7 +65,7 @@ module FastlaneCore
|
|
65
65
|
return if File.directory?(path) # directory is already there
|
66
66
|
UI.user_error!("Found a file called 'fastlane' at path '#{path}', please delete it") if File.exist?(path)
|
67
67
|
FileUtils.mkdir_p(path)
|
68
|
-
UI.success
|
68
|
+
UI.success("Created new folder '#{path}'.")
|
69
69
|
end
|
70
70
|
end
|
71
71
|
end
|
@@ -12,7 +12,7 @@ module FastlaneCore
|
|
12
12
|
# This method is deprecated, use the `UI` class
|
13
13
|
# https://github.com/fastlane/fastlane/blob/master/fastlane/docs/UI.md
|
14
14
|
def self.log
|
15
|
-
UI.deprecated
|
15
|
+
UI.deprecated("Helper.log is deprecated. Use `UI` class instead")
|
16
16
|
UI.current.log
|
17
17
|
end
|
18
18
|
|
@@ -47,7 +47,7 @@ module FastlaneCore
|
|
47
47
|
# The XML file has to be properly unpacked first
|
48
48
|
tmp_path = File.join(tmp, "Info.plist")
|
49
49
|
File.open(tmp_path, 'wb') do |output|
|
50
|
-
output.write
|
50
|
+
output.write(zipfile.read(file))
|
51
51
|
end
|
52
52
|
result = CFPropertyList.native_types(CFPropertyList::List.new(file: tmp_path).value)
|
53
53
|
|
@@ -13,8 +13,8 @@ module FastlaneCore
|
|
13
13
|
|
14
14
|
def generate(app_id: nil, ipa_path: nil, package_path: nil, platform: nil)
|
15
15
|
self.package_path = File.join(package_path, "#{app_id}.itmsp")
|
16
|
-
FileUtils.rm_rf
|
17
|
-
FileUtils.mkdir_p
|
16
|
+
FileUtils.rm_rf(self.package_path) if File.directory?(self.package_path)
|
17
|
+
FileUtils.mkdir_p(self.package_path)
|
18
18
|
|
19
19
|
ipa_path = copy_ipa(ipa_path)
|
20
20
|
@data = {
|
@@ -110,8 +110,8 @@ module FastlaneCore
|
|
110
110
|
UI.error("[Transporter Error Output]: #{$1}")
|
111
111
|
|
112
112
|
# Check if it's a login error
|
113
|
-
if $1.include?
|
114
|
-
$1.include?
|
113
|
+
if $1.include?("Your Apple ID or password was entered incorrectly") or
|
114
|
+
$1.include?("This Apple ID has been locked for security reasons")
|
115
115
|
|
116
116
|
unless Helper.is_test?
|
117
117
|
CredentialsManager::AccountManager.new(user: @user).invalid_credentials
|
@@ -22,7 +22,7 @@ module FastlaneCore
|
|
22
22
|
Helper.backticks("xar -C #{dir.shellescape} -xf #{path.shellescape}")
|
23
23
|
|
24
24
|
Dir.foreach(dir) do |file|
|
25
|
-
next unless file.include?
|
25
|
+
next unless file.include?('Distribution')
|
26
26
|
|
27
27
|
begin
|
28
28
|
content = File.open(File.join(dir, file))
|
@@ -14,7 +14,7 @@ module FastlaneCore
|
|
14
14
|
def generate(app_id: nil, pkg_path: nil, package_path: nil, platform: "osx")
|
15
15
|
self.package_path = File.join(package_path, "#{app_id}.itmsp")
|
16
16
|
FileUtils.rm_rf(self.package_path) if File.directory?(self.package_path)
|
17
|
-
FileUtils.mkdir_p
|
17
|
+
FileUtils.mkdir_p(self.package_path)
|
18
18
|
|
19
19
|
pkg_path = copy_pkg(pkg_path)
|
20
20
|
@data = {
|
@@ -36,9 +36,9 @@ module FastlaneCore
|
|
36
36
|
|
37
37
|
params[:title] = title.green if title
|
38
38
|
|
39
|
-
puts
|
40
|
-
puts
|
41
|
-
puts
|
39
|
+
puts("")
|
40
|
+
puts(Terminal::Table.new(params))
|
41
|
+
puts("")
|
42
42
|
|
43
43
|
return params
|
44
44
|
end
|
@@ -118,8 +118,8 @@ module FastlaneCore
|
|
118
118
|
next if hide_keys.include?(prefixed_key)
|
119
119
|
value = mask if mask_keys.include?(prefixed_key)
|
120
120
|
|
121
|
-
if value.respond_to?
|
122
|
-
rows.concat
|
121
|
+
if value.respond_to?(:key)
|
122
|
+
rows.concat(self.collect_rows(options: value, hide_keys: hide_keys, mask_keys: mask_keys, prefix: "#{prefix}#{key}.", mask: mask))
|
123
123
|
else
|
124
124
|
rows << [prefixed_key, value]
|
125
125
|
end
|
@@ -16,7 +16,7 @@ module FastlaneCore
|
|
16
16
|
if config[:workspace].to_s.length == 0
|
17
17
|
workspace = Dir["./*.xcworkspace"]
|
18
18
|
if workspace.count > 1
|
19
|
-
puts
|
19
|
+
puts("Select Workspace: ")
|
20
20
|
config[:workspace] = choose(*workspace)
|
21
21
|
elsif !workspace.first.nil?
|
22
22
|
config[:workspace] = workspace.first
|
@@ -28,7 +28,7 @@ module FastlaneCore
|
|
28
28
|
if config[:workspace].to_s.length == 0 and config[:project].to_s.length == 0
|
29
29
|
project = Dir["./*.xcodeproj"]
|
30
30
|
if project.count > 1
|
31
|
-
puts
|
31
|
+
puts("Select Project: ")
|
32
32
|
config[:project] = choose(*project)
|
33
33
|
elsif !project.first.nil?
|
34
34
|
config[:project] = project.first
|
@@ -43,11 +43,11 @@ module FastlaneCore
|
|
43
43
|
def select_project(config)
|
44
44
|
loop do
|
45
45
|
path = UI.input("Couldn't automatically detect the project file, please provide a path: ")
|
46
|
-
if File.directory?
|
47
|
-
if path.end_with?
|
46
|
+
if File.directory?(path)
|
47
|
+
if path.end_with?(".xcworkspace")
|
48
48
|
config[:workspace] = path
|
49
49
|
break
|
50
|
-
elsif path.end_with?
|
50
|
+
elsif path.end_with?(".xcodeproj")
|
51
51
|
config[:project] = path
|
52
52
|
break
|
53
53
|
else
|
@@ -137,7 +137,7 @@ module FastlaneCore
|
|
137
137
|
show_scheme_shared_information
|
138
138
|
UI.user_error!("Multiple schemes found")
|
139
139
|
else
|
140
|
-
puts
|
140
|
+
puts("Select Scheme: ")
|
141
141
|
options[:scheme] = choose(*schemes)
|
142
142
|
end
|
143
143
|
else
|
@@ -349,7 +349,7 @@ module FastlaneCore
|
|
349
349
|
def build_xcodebuild_list_command
|
350
350
|
# Unfortunately since we pass the workspace we also get all the
|
351
351
|
# schemes generated by CocoaPods
|
352
|
-
options = xcodebuild_parameters.delete_if { |a| a.to_s.include?
|
352
|
+
options = xcodebuild_parameters.delete_if { |a| a.to_s.include?("scheme") }
|
353
353
|
command = "xcodebuild -list #{options.join(' ')}"
|
354
354
|
command += " 2> /dev/null" if xcodebuild_suppress_stderr
|
355
355
|
command
|