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
@@ -108,7 +108,7 @@ module Fastlane
|
|
108
108
|
env_name: "FL_GET_GITHUB_RELEASE_URL",
|
109
109
|
description: "The path to your repo, e.g. 'KrauseFx/fastlane'",
|
110
110
|
verify_block: proc do |value|
|
111
|
-
UI.user_error!("Please only pass the path, e.g. 'KrauseFx/fastlane'") if value.include?
|
111
|
+
UI.user_error!("Please only pass the path, e.g. 'KrauseFx/fastlane'") if value.include?("github.com")
|
112
112
|
UI.user_error!("Please only pass the path, e.g. 'KrauseFx/fastlane'") if value.split('/').count != 2
|
113
113
|
end),
|
114
114
|
FastlaneCore::ConfigItem.new(key: :server_url,
|
@@ -117,7 +117,7 @@ module Fastlane
|
|
117
117
|
default_value: "https://api.github.com",
|
118
118
|
optional: true,
|
119
119
|
verify_block: proc do |value|
|
120
|
-
UI.user_error!("Please include the protocol in the server url, e.g. https://your.github.server") unless value.include?
|
120
|
+
UI.user_error!("Please include the protocol in the server url, e.g. https://your.github.server") unless value.include?("//")
|
121
121
|
end),
|
122
122
|
FastlaneCore::ConfigItem.new(key: :version,
|
123
123
|
env_name: "FL_GET_GITHUB_RELEASE_VERSION",
|
@@ -39,7 +39,7 @@ module Fastlane
|
|
39
39
|
'"SampleProject.xcodeproj/../SampleProject_tests/Info.plist"=1.0'
|
40
40
|
]
|
41
41
|
else
|
42
|
-
results =
|
42
|
+
results = Actions.sh(command).split("\n")
|
43
43
|
end
|
44
44
|
|
45
45
|
if target.empty? && scheme.empty?
|
@@ -48,7 +48,7 @@ module Fastlane
|
|
48
48
|
# emulating the actual behavior or the -terse1 flag correctly
|
49
49
|
project_string = ".xcodeproj"
|
50
50
|
results.any? do |result|
|
51
|
-
if result.include?
|
51
|
+
if result.include?(project_string)
|
52
52
|
line = result
|
53
53
|
break
|
54
54
|
end
|
@@ -61,15 +61,15 @@ module Fastlane
|
|
61
61
|
plist_target_string = "/#{target}-"
|
62
62
|
results.any? do |result|
|
63
63
|
if !target.empty?
|
64
|
-
if result.include?
|
64
|
+
if result.include?(target_string)
|
65
65
|
line = result
|
66
66
|
break
|
67
|
-
elsif result.include?
|
67
|
+
elsif result.include?(plist_target_string)
|
68
68
|
line = result
|
69
69
|
break
|
70
70
|
end
|
71
71
|
else
|
72
|
-
if result.include?
|
72
|
+
if result.include?(scheme_string)
|
73
73
|
line = result
|
74
74
|
break
|
75
75
|
end
|
@@ -112,7 +112,7 @@ module Fastlane
|
|
112
112
|
description: "optional, you must specify the path to your main Xcode project if it is not in the project root directory",
|
113
113
|
optional: true,
|
114
114
|
verify_block: proc do |value|
|
115
|
-
UI.user_error!("Please pass the path to the project, not the workspace") if value.end_with?
|
115
|
+
UI.user_error!("Please pass the path to the project, not the workspace") if value.end_with?(".xcworkspace")
|
116
116
|
UI.user_error!("Could not find Xcode project at path '#{File.expand_path(value)}'") if !File.exist?(value) and !Helper.is_test?
|
117
117
|
end),
|
118
118
|
FastlaneCore::ConfigItem.new(key: :scheme,
|
@@ -141,7 +141,7 @@ module Fastlane
|
|
141
141
|
end
|
142
142
|
|
143
143
|
def self.is_supported?(platform)
|
144
|
-
[:ios, :mac].include?
|
144
|
+
[:ios, :mac].include?(platform)
|
145
145
|
end
|
146
146
|
|
147
147
|
def self.example_code
|
@@ -82,7 +82,7 @@ module Fastlane
|
|
82
82
|
default_value: "https://api.github.com",
|
83
83
|
optional: true,
|
84
84
|
verify_block: proc do |value|
|
85
|
-
UI.user_error!("Please include the protocol in the server url, e.g. https://your.github.server/api/v3") unless value.include?
|
85
|
+
UI.user_error!("Please include the protocol in the server url, e.g. https://your.github.server/api/v3") unless value.include?("//")
|
86
86
|
end),
|
87
87
|
FastlaneCore::ConfigItem.new(key: :api_token,
|
88
88
|
env_name: "FL_GITHUB_API_TOKEN",
|
@@ -122,7 +122,7 @@ module Fastlane
|
|
122
122
|
description: "The complete full url - used instead of path. e.g. 'https://uploads.github.com/repos/fastlane...'",
|
123
123
|
optional: true,
|
124
124
|
verify_block: proc do |value|
|
125
|
-
UI.user_error!("Please include the protocol in the url, e.g. https://uploads.github.com") unless value.include?
|
125
|
+
UI.user_error!("Please include the protocol in the url, e.g. https://uploads.github.com") unless value.include?("//")
|
126
126
|
end),
|
127
127
|
FastlaneCore::ConfigItem.new(key: :error_handlers,
|
128
128
|
description: "Optional error handling hash based on status code, or pass '*' to handle all errors",
|
@@ -79,7 +79,7 @@ module Fastlane
|
|
79
79
|
# check if the files changed are the ones we expected to change (these should be only the files that have version info in them)
|
80
80
|
dirty_set = Set.new(hg_dirty_files.map(&:downcase))
|
81
81
|
expected_set = Set.new(expected_changed_files.map(&:downcase))
|
82
|
-
changed_files_as_expected = dirty_set.subset?
|
82
|
+
changed_files_as_expected = dirty_set.subset?(expected_set)
|
83
83
|
unless changed_files_as_expected
|
84
84
|
unless params[:force]
|
85
85
|
str = ["Found unexpected uncommitted changes in the working directory. Expected these files to have changed:",
|
@@ -120,7 +120,7 @@ module Fastlane
|
|
120
120
|
description: "The path to your project file (Not the workspace). If you have only one, this is optional",
|
121
121
|
optional: true,
|
122
122
|
verify_block: proc do |value|
|
123
|
-
UI.user_error!("Please pass the path to the project, not the workspace") if value.end_with?
|
123
|
+
UI.user_error!("Please pass the path to the project, not the workspace") if value.end_with?(".xcworkspace")
|
124
124
|
UI.user_error!("Could not find Xcode project") unless File.exist?(value)
|
125
125
|
end),
|
126
126
|
FastlaneCore::ConfigItem.new(key: :force,
|
@@ -15,11 +15,11 @@ module Fastlane
|
|
15
15
|
url: base_url
|
16
16
|
}
|
17
17
|
Faraday.new(foptions) do |builder|
|
18
|
-
builder.request
|
19
|
-
builder.request
|
20
|
-
builder.response
|
21
|
-
builder.use
|
22
|
-
builder.adapter
|
18
|
+
builder.request(:multipart)
|
19
|
+
builder.request(:url_encoded)
|
20
|
+
builder.response(:json, content_type: /\bjson$/)
|
21
|
+
builder.use(FaradayMiddleware::FollowRedirects)
|
22
|
+
builder.adapter(:net_http)
|
23
23
|
end
|
24
24
|
end
|
25
25
|
|
@@ -19,8 +19,8 @@ module Fastlane
|
|
19
19
|
|
20
20
|
response = https.request(req)
|
21
21
|
|
22
|
-
UI.user_error!
|
23
|
-
UI.success
|
22
|
+
UI.user_error!("Failed to make a request to IFTTT. #{response.message}.") unless response.code == "200"
|
23
|
+
UI.success("Successfully made a request to IFTTT.")
|
24
24
|
end
|
25
25
|
|
26
26
|
#####################################################
|
@@ -42,13 +42,13 @@ module Fastlane
|
|
42
42
|
sensitive: true,
|
43
43
|
description: "API key",
|
44
44
|
verify_block: proc do |value|
|
45
|
-
raise UI.error
|
45
|
+
raise UI.error("No API key given, pass using `api_key: 'key'`") if value.to_s.empty?
|
46
46
|
end),
|
47
47
|
FastlaneCore::ConfigItem.new(key: :event_name,
|
48
48
|
env_name: "IFTTT_EVENT_NAME",
|
49
49
|
description: "The name of the event that will be triggered",
|
50
50
|
verify_block: proc do |value|
|
51
|
-
raise UI.error
|
51
|
+
raise UI.error("No event name given, pass using `event_name: 'name'`") if value.to_s.empty?
|
52
52
|
end),
|
53
53
|
FastlaneCore::ConfigItem.new(key: :value1,
|
54
54
|
env_name: "IFTTT_VALUE1",
|
@@ -8,7 +8,7 @@ module Fastlane
|
|
8
8
|
require 'shellwords'
|
9
9
|
|
10
10
|
def self.is_supported?(platform)
|
11
|
-
[:ios, :mac].include?
|
11
|
+
[:ios, :mac].include?(platform)
|
12
12
|
end
|
13
13
|
|
14
14
|
def self.run(params)
|
@@ -46,7 +46,7 @@ module Fastlane
|
|
46
46
|
if Helper.test?
|
47
47
|
return Actions.lane_context[SharedValues::BUILD_NUMBER] = command
|
48
48
|
else
|
49
|
-
Actions.sh
|
49
|
+
Actions.sh(command)
|
50
50
|
|
51
51
|
# Store the new number in the shared hash
|
52
52
|
build_number = `#{command_prefix} agvtool what-version`.split("\n").last.strip
|
@@ -73,7 +73,7 @@ module Fastlane
|
|
73
73
|
description: "optional, you must specify the path to your main Xcode project if it is not in the project root directory",
|
74
74
|
optional: true,
|
75
75
|
verify_block: proc do |value|
|
76
|
-
UI.user_error!("Please pass the path to the project, not the workspace") if value.end_with?
|
76
|
+
UI.user_error!("Please pass the path to the project, not the workspace") if value.end_with?(".xcworkspace")
|
77
77
|
UI.user_error!("Could not find Xcode project") if !File.exist?(value) and !Helper.is_test?
|
78
78
|
end)
|
79
79
|
]
|
@@ -8,7 +8,7 @@ module Fastlane
|
|
8
8
|
require 'shellwords'
|
9
9
|
|
10
10
|
def self.is_supported?(platform)
|
11
|
-
[:ios, :mac].include?
|
11
|
+
[:ios, :mac].include?(platform)
|
12
12
|
end
|
13
13
|
|
14
14
|
def self.run(params)
|
@@ -64,7 +64,7 @@ module Fastlane
|
|
64
64
|
if Helper.test?
|
65
65
|
Actions.lane_context[SharedValues::VERSION_NUMBER] = command
|
66
66
|
else
|
67
|
-
Actions.sh
|
67
|
+
Actions.sh(command)
|
68
68
|
Actions.lane_context[SharedValues::VERSION_NUMBER] = next_version_number
|
69
69
|
end
|
70
70
|
|
@@ -93,7 +93,7 @@ module Fastlane
|
|
93
93
|
description: "The type of this version bump. Available: patch, minor, major",
|
94
94
|
default_value: "patch",
|
95
95
|
verify_block: proc do |value|
|
96
|
-
UI.user_error!("Available values are 'patch', 'minor' and 'major'") unless ['patch', 'minor', 'major'].include?
|
96
|
+
UI.user_error!("Available values are 'patch', 'minor' and 'major'") unless ['patch', 'minor', 'major'].include?(value)
|
97
97
|
end),
|
98
98
|
FastlaneCore::ConfigItem.new(key: :version_number,
|
99
99
|
env_name: "FL_VERSION_NUMBER_VERSION_NUMBER",
|
@@ -103,7 +103,7 @@ module Fastlane
|
|
103
103
|
env_name: "FL_VERSION_NUMBER_PROJECT",
|
104
104
|
description: "optional, you must specify the path to your main Xcode project if it is not in the project root directory",
|
105
105
|
verify_block: proc do |value|
|
106
|
-
UI.user_error!("Please pass the path to the project, not the workspace") if value.end_with?
|
106
|
+
UI.user_error!("Please pass the path to the project, not the workspace") if value.end_with?(".xcworkspace")
|
107
107
|
UI.user_error!("Could not find Xcode project") unless File.exist?(value)
|
108
108
|
end,
|
109
109
|
optional: true)
|
@@ -58,8 +58,8 @@ module Fastlane
|
|
58
58
|
default_value: Actions.lane_context[SharedValues::IPA_OUTPUT_PATH] || Dir["*.ipa"].first,
|
59
59
|
verify_block: proc do |value|
|
60
60
|
unless Helper.test?
|
61
|
-
UI.user_error!("Could not find ipa file at path '#{value}'") unless File.exist?
|
62
|
-
UI.user_error!("'#{value}' doesn't seem to be an ipa file") unless value.end_with?
|
61
|
+
UI.user_error!("Could not find ipa file at path '#{value}'") unless File.exist?(value)
|
62
|
+
UI.user_error!("'#{value}' doesn't seem to be an ipa file") unless value.end_with?(".ipa")
|
63
63
|
end
|
64
64
|
end)
|
65
65
|
]
|
@@ -25,10 +25,10 @@ module Fastlane
|
|
25
25
|
end
|
26
26
|
|
27
27
|
zip_path = File.join(Dir.tmpdir, 'plugin.zip')
|
28
|
-
sh
|
28
|
+
sh("curl -Lso #{zip_path} #{params[:url]}")
|
29
29
|
plugins_path = "#{ENV['HOME']}/Library/Application Support/Developer/Shared/Xcode/Plug-ins"
|
30
30
|
FileUtils.mkdir_p(plugins_path)
|
31
|
-
Action.sh
|
31
|
+
Action.sh("unzip -qo '#{zip_path}' -d '#{plugins_path}'")
|
32
32
|
|
33
33
|
UI.success("Plugin #{File.basename(params[:url], '.zip')} installed successfully")
|
34
34
|
UI.message("Please restart Xcode to use the newly installed plugin")
|
@@ -27,11 +27,11 @@ module Fastlane
|
|
27
27
|
|
28
28
|
url = INSTALLR_API
|
29
29
|
connection = Faraday.new(url) do |builder|
|
30
|
-
builder.request
|
31
|
-
builder.request
|
32
|
-
builder.response
|
33
|
-
builder.use
|
34
|
-
builder.adapter
|
30
|
+
builder.request(:multipart)
|
31
|
+
builder.request(:url_encoded)
|
32
|
+
builder.response(:json, content_type: /\bjson$/)
|
33
|
+
builder.use(FaradayMiddleware::FollowRedirects)
|
34
|
+
builder.adapter(:net_http)
|
35
35
|
end
|
36
36
|
|
37
37
|
options = {}
|
@@ -55,7 +55,7 @@ module Fastlane
|
|
55
55
|
end
|
56
56
|
|
57
57
|
post_request.on_complete do |env|
|
58
|
-
yield
|
58
|
+
yield(env[:status], env[:body]) if block_given?
|
59
59
|
end
|
60
60
|
end
|
61
61
|
|
@@ -62,7 +62,7 @@ module Fastlane
|
|
62
62
|
is_string: true,
|
63
63
|
default_value: "ios",
|
64
64
|
verify_block: proc do |value|
|
65
|
-
UI.user_error!("The platform can only be ios, or appletvos") unless %('ios', 'appletvos').include?
|
65
|
+
UI.user_error!("The platform can only be ios, or appletvos") unless %('ios', 'appletvos').include?(value)
|
66
66
|
end),
|
67
67
|
FastlaneCore::ConfigItem.new(key: :initial_build_number,
|
68
68
|
env_name: "INITIAL_BUILD_NUMBER",
|
@@ -102,10 +102,10 @@ module Fastlane
|
|
102
102
|
|
103
103
|
def self.handle_params_transition(options)
|
104
104
|
options[:postmaster] = options[:mailgun_sandbox_postmaster] if options[:mailgun_sandbox_postmaster]
|
105
|
-
puts
|
105
|
+
puts("\nUsing :mailgun_sandbox_postmaster is deprecated, please change to :postmaster".yellow) if options[:mailgun_sandbox_postmaster]
|
106
106
|
|
107
107
|
options[:apikey] = options[:mailgun_apikey] if options[:mailgun_apikey]
|
108
|
-
puts
|
108
|
+
puts("\nUsing :mailgun_apikey is deprecated, please change to :apikey".yellow) if options[:mailgun_apikey]
|
109
109
|
end
|
110
110
|
|
111
111
|
def self.mailgunit(options)
|
@@ -126,7 +126,7 @@ module Fastlane
|
|
126
126
|
params.store(:attachment, attachments)
|
127
127
|
end
|
128
128
|
|
129
|
-
RestClient.post
|
129
|
+
RestClient.post("https://api:#{options[:apikey]}@api.mailgun.net/v3/#{sandbox_domain}/messages", params)
|
130
130
|
mail_template(options)
|
131
131
|
end
|
132
132
|
|
@@ -110,7 +110,7 @@ module Fastlane
|
|
110
110
|
allowed_keys = Produce::DeveloperCenter::ALLOWED_SERVICES.keys
|
111
111
|
UI.user_error!("enable_services has to be of type Hash") unless value.kind_of?(Hash)
|
112
112
|
value.each do |key, v|
|
113
|
-
UI.user_error!("The key: '#{key}' is not supported in `enable_services' - following keys are available: [#{allowed_keys.join(',')}]") unless allowed_keys.include?
|
113
|
+
UI.user_error!("The key: '#{key}' is not supported in `enable_services' - following keys are available: [#{allowed_keys.join(',')}]") unless allowed_keys.include?(key.to_sym)
|
114
114
|
end
|
115
115
|
end),
|
116
116
|
FastlaneCore::ConfigItem.new(key: :team_id,
|
@@ -6,7 +6,7 @@ module Fastlane
|
|
6
6
|
|
7
7
|
options = params.values
|
8
8
|
# :message is non-optional
|
9
|
-
message = options.delete
|
9
|
+
message = options.delete(:message)
|
10
10
|
# remove nil keys, since `notify` below does not ignore them and instead translates them into empty strings in output, which looks ugly
|
11
11
|
options = options.select { |_, v| v }
|
12
12
|
option_map = {
|
@@ -49,7 +49,7 @@ module Fastlane
|
|
49
49
|
def self.check_response_code(response)
|
50
50
|
case response.code.to_i
|
51
51
|
when 200, 204
|
52
|
-
puts
|
52
|
+
puts("Successfully created new OneSignal app".green)
|
53
53
|
else
|
54
54
|
UI.user_error!("Unexpected #{response.code} with response: #{response.body}")
|
55
55
|
end
|
@@ -129,11 +129,11 @@ module Fastlane
|
|
129
129
|
end
|
130
130
|
|
131
131
|
def self.authenticate(client_id, client_secret, app_id, app_token)
|
132
|
-
auth_response = RestClient.post
|
132
|
+
auth_response = RestClient.post(AUTH_URL, grant_type: 'app',
|
133
133
|
app_id: app_id,
|
134
134
|
app_token: app_token,
|
135
135
|
client_id: client_id,
|
136
|
-
client_secret: client_secret
|
136
|
+
client_secret: client_secret)
|
137
137
|
UI.user_error!("Failed to authenticate with Podio API") if auth_response.code != 200
|
138
138
|
|
139
139
|
auth_response_dictionary = JSON.parse(auth_response.body)
|
@@ -154,7 +154,7 @@ module Fastlane
|
|
154
154
|
|
155
155
|
def self.get_existing_item(auth_config, identifying_value, app_id)
|
156
156
|
filter_request_body = { query: identifying_value, limit: 1, ref_type: 'item' }.to_json
|
157
|
-
filter_response = RestClient.post
|
157
|
+
filter_response = RestClient.post("#{BASE_URL}/search/app/#{app_id}/", filter_request_body, auth_config)
|
158
158
|
UI.user_error!("Failed to search for already existing item #{identifying_value}") if filter_response.code != 200
|
159
159
|
|
160
160
|
existing_items = JSON.parse(filter_response.body)
|
@@ -173,7 +173,7 @@ module Fastlane
|
|
173
173
|
|
174
174
|
def self.create_item(auth_config, identifying_field, identifying_value, app_id)
|
175
175
|
item_request_body = { fields: { identifying_field => identifying_value } }.to_json
|
176
|
-
item_response = RestClient.post
|
176
|
+
item_response = RestClient.post("#{BASE_URL}/item/app/#{app_id}", item_request_body, auth_config)
|
177
177
|
UI.user_error!("Failed to create item \"#{identifying_value}\"") if item_response.code != 200
|
178
178
|
|
179
179
|
item_response_dictionary = JSON.parse(item_response.body)
|
@@ -183,14 +183,14 @@ module Fastlane
|
|
183
183
|
def self.update_item(auth_config, item_id, fields)
|
184
184
|
if fields.length > 0
|
185
185
|
item_request_body = { fields: fields }.to_json
|
186
|
-
item_response = RestClient.put
|
186
|
+
item_response = RestClient.put("#{BASE_URL}/item/#{item_id}", item_request_body, auth_config)
|
187
187
|
UI.user_error!("Failed to update item values \"#{fields}\"") unless item_response.code != 200 || item_response.code != 204
|
188
188
|
end
|
189
189
|
end
|
190
190
|
|
191
191
|
def self.get_embed_id(auth_config, url)
|
192
192
|
embed_request_body = { url: url }.to_json
|
193
|
-
embed_response = RestClient.post
|
193
|
+
embed_response = RestClient.post("#{BASE_URL}/embed/", embed_request_body, auth_config)
|
194
194
|
UI.user_error!("Failed to create embed for link #{link}") if embed_response.code != 200
|
195
195
|
|
196
196
|
embed_response_dictionary = JSON.parse(embed_response.body)
|