fastlane 2.173.0 → 2.194.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/README.md +105 -85
- data/cert/lib/cert/commands_generator.rb +2 -1
- data/cert/lib/cert/options.rb +4 -3
- data/cert/lib/cert/runner.rb +7 -7
- data/deliver/lib/assets/summary.html.erb +10 -10
- data/deliver/lib/deliver/app_screenshot.rb +8 -3
- data/deliver/lib/deliver/app_screenshot_iterator.rb +2 -2
- data/deliver/lib/deliver/commands_generator.rb +3 -2
- data/deliver/lib/deliver/detect_values.rb +5 -3
- data/deliver/lib/deliver/download_screenshots.rb +2 -3
- data/deliver/lib/deliver/html_generator.rb +2 -2
- data/deliver/lib/deliver/languages.rb +1 -1
- data/deliver/lib/deliver/loader.rb +1 -1
- data/deliver/lib/deliver/module.rb +6 -0
- data/deliver/lib/deliver/options.rb +48 -56
- data/deliver/lib/deliver/runner.rb +28 -15
- data/deliver/lib/deliver/screenshot_comparable.rb +62 -0
- data/deliver/lib/deliver/setup.rb +1 -2
- data/deliver/lib/deliver/submit_for_review.rb +4 -4
- data/deliver/lib/deliver/sync_screenshots.rb +200 -0
- data/deliver/lib/deliver/upload_metadata.rb +26 -11
- data/deliver/lib/deliver/upload_price_tier.rb +1 -1
- data/deliver/lib/deliver/upload_screenshots.rb +13 -12
- data/fastlane/lib/assets/completions/completion.bash +4 -1
- data/fastlane/lib/assets/completions/completion.zsh +6 -5
- data/{spaceship/lib/spaceship/connect_api/models/.app_store_version_submission.rb.swp → fastlane/lib/fastlane/actions/.notarize.rb.swp} +0 -0
- data/fastlane/lib/fastlane/actions/actions_helper.rb +2 -2
- data/fastlane/lib/fastlane/actions/adb.rb +2 -5
- data/fastlane/lib/fastlane/actions/adb_devices.rb +0 -1
- data/fastlane/lib/fastlane/actions/add_git_tag.rb +4 -4
- data/fastlane/lib/fastlane/actions/app_store_build_number.rb +18 -18
- data/fastlane/lib/fastlane/actions/app_store_connect_api_key.rb +21 -7
- data/fastlane/lib/fastlane/actions/appaloosa.rb +7 -2
- data/fastlane/lib/fastlane/actions/appetize.rb +13 -8
- data/fastlane/lib/fastlane/actions/appetize_viewing_url_generator.rb +0 -11
- data/fastlane/lib/fastlane/actions/appium.rb +40 -65
- data/fastlane/lib/fastlane/actions/appledoc.rb +45 -45
- data/fastlane/lib/fastlane/actions/apteligent.rb +3 -2
- data/fastlane/lib/fastlane/actions/artifactory.rb +5 -6
- data/fastlane/lib/fastlane/actions/automatic_code_signing.rb +7 -13
- data/fastlane/lib/fastlane/actions/backup_file.rb +1 -1
- data/fastlane/lib/fastlane/actions/backup_xcarchive.rb +3 -3
- data/fastlane/lib/fastlane/actions/badge.rb +9 -13
- data/fastlane/lib/fastlane/actions/build_and_upload_to_appetize.rb +11 -5
- data/fastlane/lib/fastlane/actions/build_app.rb +4 -0
- data/fastlane/lib/fastlane/actions/bundle_install.rb +21 -11
- data/fastlane/lib/fastlane/actions/carthage.rb +22 -14
- data/fastlane/lib/fastlane/actions/changelog_from_git_commits.rb +8 -17
- data/fastlane/lib/fastlane/actions/chatwork.rb +3 -2
- data/fastlane/lib/fastlane/actions/check_app_store_metadata.rb +9 -1
- data/fastlane/lib/fastlane/actions/clean_build_artifacts.rb +0 -1
- data/fastlane/lib/fastlane/actions/clean_cocoapods_cache.rb +25 -2
- data/fastlane/lib/fastlane/actions/clipboard.rb +3 -6
- data/fastlane/lib/fastlane/actions/cloc.rb +9 -13
- data/fastlane/lib/fastlane/actions/cocoapods.rb +23 -15
- data/fastlane/lib/fastlane/actions/commit_github_file.rb +12 -4
- data/fastlane/lib/fastlane/actions/commit_version_bump.rb +6 -7
- data/fastlane/lib/fastlane/actions/copy_artifacts.rb +3 -4
- data/fastlane/lib/fastlane/actions/crashlytics.rb +7 -11
- data/fastlane/lib/fastlane/actions/create_app_on_managed_play_store.rb +70 -76
- data/fastlane/lib/fastlane/actions/create_keychain.rb +13 -11
- data/fastlane/lib/fastlane/actions/create_pull_request.rb +0 -9
- data/fastlane/lib/fastlane/actions/create_xcframework.rb +102 -17
- data/fastlane/lib/fastlane/actions/danger.rb +13 -12
- data/fastlane/lib/fastlane/actions/deploygate.rb +1 -2
- data/fastlane/lib/fastlane/actions/docs/build_app.md +1 -1
- data/fastlane/lib/fastlane/actions/docs/capture_android_screenshots.md +29 -30
- data/fastlane/lib/fastlane/actions/docs/capture_ios_screenshots.md +3 -3
- data/fastlane/lib/fastlane/actions/docs/create_app_online.md +171 -67
- data/fastlane/lib/fastlane/actions/docs/frame_screenshots.md +19 -2
- data/fastlane/lib/fastlane/actions/docs/sync_code_signing.md +8 -2
- data/fastlane/lib/fastlane/actions/docs/upload_to_app_store.md.erb +37 -18
- data/fastlane/lib/fastlane/actions/docs/upload_to_play_store.md +2 -1
- data/fastlane/lib/fastlane/actions/docs/upload_to_testflight.md +10 -4
- data/fastlane/lib/fastlane/actions/download_app_privacy_details_from_app_store.rb +1 -1
- data/fastlane/lib/fastlane/actions/download_dsyms.rb +8 -19
- data/fastlane/lib/fastlane/actions/dsym_zip.rb +1 -1
- data/fastlane/lib/fastlane/actions/ensure_env_vars.rb +2 -6
- data/fastlane/lib/fastlane/actions/ensure_git_branch.rb +0 -1
- data/fastlane/lib/fastlane/actions/ensure_git_status_clean.rb +3 -4
- data/fastlane/lib/fastlane/actions/ensure_no_debug_code.rb +3 -5
- data/fastlane/lib/fastlane/actions/ensure_xcode_version.rb +1 -2
- data/fastlane/lib/fastlane/actions/environment_variable.rb +13 -21
- data/fastlane/lib/fastlane/actions/erb.rb +2 -5
- data/fastlane/lib/fastlane/actions/get_build_number_repository.rb +1 -1
- data/fastlane/lib/fastlane/actions/get_certificates.rb +5 -1
- data/fastlane/lib/fastlane/actions/get_github_release.rb +11 -1
- data/fastlane/lib/fastlane/actions/get_ipa_info_plist_value.rb +0 -1
- data/fastlane/lib/fastlane/actions/get_managed_play_store_publishing_rights.rb +32 -35
- data/fastlane/lib/fastlane/actions/get_provisioning_profile.rb +10 -2
- data/fastlane/lib/fastlane/actions/get_push_certificate.rb +1 -1
- data/fastlane/lib/fastlane/actions/get_version_number.rb +17 -10
- data/fastlane/lib/fastlane/actions/git_add.rb +5 -10
- data/fastlane/lib/fastlane/actions/git_branch.rb +4 -10
- data/fastlane/lib/fastlane/actions/git_commit.rb +6 -8
- data/fastlane/lib/fastlane/actions/git_pull.rb +4 -10
- data/fastlane/lib/fastlane/actions/git_remote_branch.rb +57 -0
- data/fastlane/lib/fastlane/actions/git_submodule_update.rb +16 -8
- data/fastlane/lib/fastlane/actions/git_tag_exists.rb +4 -0
- data/fastlane/lib/fastlane/actions/github_api.rb +4 -6
- data/fastlane/lib/fastlane/actions/gradle.rb +13 -21
- data/fastlane/lib/fastlane/actions/hg_commit_version_bump.rb +1 -1
- data/fastlane/lib/fastlane/actions/hg_push.rb +1 -1
- data/fastlane/lib/fastlane/actions/hipchat.rb +6 -6
- data/fastlane/lib/fastlane/actions/hockey.rb +5 -12
- data/fastlane/lib/fastlane/actions/ifttt.rb +3 -6
- data/fastlane/lib/fastlane/actions/import_from_git.rb +7 -9
- data/fastlane/lib/fastlane/actions/increment_build_number.rb +8 -2
- data/fastlane/lib/fastlane/actions/install_on_device.rb +3 -6
- data/fastlane/lib/fastlane/actions/install_provisioning_profile.rb +4 -0
- data/fastlane/lib/fastlane/actions/installr.rb +22 -25
- data/fastlane/lib/fastlane/actions/ipa.rb +2 -2
- data/fastlane/lib/fastlane/actions/jazzy.rb +11 -8
- data/fastlane/lib/fastlane/actions/jira.rb +61 -14
- data/fastlane/lib/fastlane/actions/latest_testflight_build_number.rb +7 -7
- data/fastlane/lib/fastlane/actions/lcov.rb +0 -4
- data/fastlane/lib/fastlane/actions/mailgun.rb +21 -27
- data/fastlane/lib/fastlane/actions/make_changelog_from_jenkins.rb +1 -1
- data/fastlane/lib/fastlane/actions/match_nuke.rb +59 -0
- data/fastlane/lib/fastlane/actions/modify_services.rb +59 -24
- data/fastlane/lib/fastlane/actions/nexus_upload.rb +2 -2
- data/fastlane/lib/fastlane/actions/notarize.rb +181 -52
- 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/oclint.rb +15 -14
- data/fastlane/lib/fastlane/actions/pod_push.rb +0 -2
- data/fastlane/lib/fastlane/actions/podio_item.rb +0 -7
- data/fastlane/lib/fastlane/actions/prompt.rb +3 -4
- data/fastlane/lib/fastlane/actions/push_git_tags.rb +2 -2
- data/fastlane/lib/fastlane/actions/push_to_git_remote.rb +6 -3
- data/fastlane/lib/fastlane/actions/puts.rb +1 -2
- data/fastlane/lib/fastlane/actions/register_device.rb +10 -13
- data/fastlane/lib/fastlane/actions/register_devices.rb +10 -14
- data/fastlane/lib/fastlane/actions/reset_git_repo.rb +5 -8
- data/fastlane/lib/fastlane/actions/reset_simulator_contents.rb +0 -2
- data/fastlane/lib/fastlane/actions/resign.rb +2 -9
- data/fastlane/lib/fastlane/actions/restore_file.rb +1 -1
- data/fastlane/lib/fastlane/actions/rsync.rb +3 -6
- data/fastlane/lib/fastlane/actions/run_tests.rb +1 -1
- data/fastlane/lib/fastlane/actions/s3.rb +1 -1
- data/fastlane/lib/fastlane/actions/say.rb +2 -3
- data/fastlane/lib/fastlane/actions/scp.rb +4 -10
- data/fastlane/lib/fastlane/actions/set_build_number_repository.rb +1 -1
- data/fastlane/lib/fastlane/actions/set_changelog.rb +11 -14
- data/fastlane/lib/fastlane/actions/set_github_release.rb +2 -8
- data/fastlane/lib/fastlane/actions/set_info_plist_value.rb +1 -1
- data/fastlane/lib/fastlane/actions/set_pod_key.rb +3 -4
- data/fastlane/lib/fastlane/actions/setup_ci.rb +1 -2
- data/fastlane/lib/fastlane/actions/setup_circle_ci.rb +1 -1
- data/fastlane/lib/fastlane/actions/setup_jenkins.rb +7 -12
- data/fastlane/lib/fastlane/actions/setup_travis.rb +1 -1
- data/fastlane/lib/fastlane/actions/sh.rb +2 -4
- data/fastlane/lib/fastlane/actions/slack.rb +161 -141
- data/fastlane/lib/fastlane/actions/slather.rb +9 -19
- data/fastlane/lib/fastlane/actions/sonar.rb +12 -19
- data/fastlane/lib/fastlane/actions/sourcedocs.rb +128 -0
- data/fastlane/lib/fastlane/actions/spaceship_logs.rb +1 -1
- data/fastlane/lib/fastlane/actions/splunkmint.rb +2 -2
- data/fastlane/lib/fastlane/actions/spm.rb +3 -3
- data/fastlane/lib/fastlane/actions/ssh.rb +5 -10
- data/fastlane/lib/fastlane/actions/swiftlint.rb +18 -16
- data/fastlane/lib/fastlane/actions/sync_code_signing.rb +7 -2
- data/fastlane/lib/fastlane/actions/testfairy.rb +0 -1
- data/fastlane/lib/fastlane/actions/tryouts.rb +2 -3
- data/fastlane/lib/fastlane/actions/twitter.rb +0 -5
- data/fastlane/lib/fastlane/actions/unlock_keychain.rb +3 -3
- data/fastlane/lib/fastlane/actions/update_app_group_identifiers.rb +1 -4
- data/fastlane/lib/fastlane/actions/update_code_signing_settings.rb +8 -15
- data/fastlane/lib/fastlane/actions/update_fastlane.rb +2 -2
- data/fastlane/lib/fastlane/actions/update_icloud_container_identifiers.rb +1 -4
- data/fastlane/lib/fastlane/actions/update_info_plist.rb +1 -1
- data/fastlane/lib/fastlane/actions/update_keychain_access_groups.rb +1 -4
- data/fastlane/lib/fastlane/actions/update_plist.rb +1 -1
- data/fastlane/lib/fastlane/actions/update_project_provisioning.rb +3 -4
- data/fastlane/lib/fastlane/actions/update_urban_airship_configuration.rb +0 -1
- data/fastlane/lib/fastlane/actions/update_url_schemes.rb +15 -26
- data/fastlane/lib/fastlane/actions/upload_app_privacy_details_to_app_store.rb +1 -2
- data/fastlane/lib/fastlane/actions/upload_symbols_to_crashlytics.rb +8 -7
- data/fastlane/lib/fastlane/actions/upload_symbols_to_sentry.rb +3 -10
- data/fastlane/lib/fastlane/actions/upload_to_app_store.rb +5 -1
- data/fastlane/lib/fastlane/actions/upload_to_testflight.rb +10 -3
- data/fastlane/lib/fastlane/actions/validate_play_store_json_key.rb +40 -44
- data/fastlane/lib/fastlane/actions/version_get_podspec.rb +1 -2
- data/fastlane/lib/fastlane/actions/xcode_server_get_assets.rb +3 -3
- data/fastlane/lib/fastlane/actions/xcodebuild.rb +5 -5
- data/fastlane/lib/fastlane/actions/zip.rb +86 -21
- data/fastlane/lib/fastlane/cli_tools_distributor.rb +1 -1
- data/fastlane/lib/fastlane/commands_generator.rb +2 -1
- data/fastlane/lib/fastlane/documentation/actions_list.rb +2 -2
- data/fastlane/lib/fastlane/documentation/docs_generator.rb +1 -1
- data/fastlane/lib/fastlane/documentation/markdown_docs_generator.rb +12 -6
- data/fastlane/lib/fastlane/environment_printer.rb +1 -0
- data/fastlane/lib/fastlane/erb_template_helper.rb +7 -1
- data/fastlane/lib/fastlane/fast_file.rb +19 -7
- data/fastlane/lib/fastlane/fastlane_require.rb +7 -1
- data/fastlane/lib/fastlane/features.rb +3 -0
- data/fastlane/lib/fastlane/helper/adb_helper.rb +1 -1
- data/fastlane/lib/fastlane/helper/crashlytics_helper.rb +4 -4
- data/fastlane/lib/fastlane/helper/gem_helper.rb +2 -2
- data/fastlane/lib/fastlane/helper/git_helper.rb +34 -5
- data/fastlane/lib/fastlane/lane_manager.rb +3 -2
- data/fastlane/lib/fastlane/notification/slack.rb +56 -0
- data/fastlane/lib/fastlane/plugins/plugin_fetcher.rb +1 -2
- data/fastlane/lib/fastlane/plugins/plugin_info.rb +2 -2
- data/fastlane/lib/fastlane/plugins/plugin_info_collector.rb +1 -2
- data/fastlane/lib/fastlane/plugins/plugin_manager.rb +2 -3
- data/fastlane/lib/fastlane/plugins/template/%gem_name%.gemspec.erb +7 -6
- data/fastlane/lib/fastlane/plugins/template/.circleci/config.yml +1 -1
- data/fastlane/lib/fastlane/plugins/template/.github/workflows/test.yml +1 -1
- data/fastlane/lib/fastlane/plugins/template/.rubocop.yml +30 -35
- data/fastlane/lib/fastlane/plugins/template/spec/spec_helper.rb.erb +1 -1
- data/fastlane/lib/fastlane/setup/setup.rb +23 -10
- data/fastlane/lib/fastlane/setup/setup_ios.rb +3 -3
- data/fastlane/lib/fastlane/swift_fastlane_function.rb +43 -15
- data/fastlane/lib/fastlane/swift_runner_upgrader.rb +2 -0
- data/fastlane/lib/fastlane/version.rb +2 -2
- data/fastlane/swift/Actions.swift +1 -1
- data/fastlane/swift/Appfile.swift +1 -1
- data/fastlane/swift/ArgumentProcessor.swift +1 -1
- data/fastlane/swift/ControlCommand.swift +1 -1
- data/fastlane/swift/Deliverfile.swift +1 -1
- data/fastlane/swift/DeliverfileProtocol.swift +27 -23
- data/fastlane/swift/Fastlane.swift +7993 -4352
- data/fastlane/swift/FastlaneSwiftRunner/FastlaneSwiftRunner.xcodeproj/project.pbxproj +4 -0
- data/fastlane/swift/Gymfile.swift +1 -1
- data/fastlane/swift/GymfileProtocol.swift +1 -1
- data/fastlane/swift/LaneFileProtocol.swift +10 -4
- data/fastlane/swift/MainProcess.swift +1 -1
- data/fastlane/swift/Matchfile.swift +1 -1
- data/fastlane/swift/MatchfileProtocol.swift +3 -3
- data/fastlane/swift/OptionalConfigValue.swift +101 -0
- data/fastlane/swift/Plugins.swift +1 -1
- data/fastlane/swift/Precheckfile.swift +1 -1
- data/fastlane/swift/PrecheckfileProtocol.swift +4 -4
- data/fastlane/swift/RubyCommand.swift +2 -2
- data/fastlane/swift/RubyCommandable.swift +1 -1
- data/fastlane/swift/Runner.swift +2 -2
- data/fastlane/swift/RunnerArgument.swift +1 -1
- data/fastlane/swift/Scanfile.swift +1 -1
- data/fastlane/swift/ScanfileProtocol.swift +17 -1
- data/fastlane/swift/Screengrabfile.swift +1 -1
- data/fastlane/swift/ScreengrabfileProtocol.swift +4 -4
- data/fastlane/swift/Snapshotfile.swift +1 -1
- data/fastlane/swift/SnapshotfileProtocol.swift +5 -1
- data/fastlane/swift/SocketClient.swift +3 -2
- data/fastlane/swift/SocketClientDelegateProtocol.swift +1 -1
- data/fastlane/swift/SocketResponse.swift +5 -3
- data/fastlane/swift/formatting/Brewfile.lock.json +37 -21
- data/fastlane/swift/main.swift +1 -1
- data/fastlane/swift/upgrade_manifest.json +1 -1
- data/fastlane_core/lib/fastlane_core/build_watcher.rb +113 -17
- data/fastlane_core/lib/fastlane_core/clipboard.rb +20 -0
- data/fastlane_core/lib/fastlane_core/command_executor.rb +3 -9
- data/fastlane_core/lib/fastlane_core/configuration/commander_generator.rb +6 -1
- data/fastlane_core/lib/fastlane_core/configuration/config_item.rb +41 -3
- data/fastlane_core/lib/fastlane_core/configuration/configuration.rb +14 -8
- data/fastlane_core/lib/fastlane_core/device_manager.rb +1 -1
- data/fastlane_core/lib/fastlane_core/helper.rb +66 -10
- data/fastlane_core/lib/fastlane_core/ipa_upload_package_builder.rb +3 -2
- data/fastlane_core/lib/fastlane_core/itunes_transporter.rb +14 -8
- data/fastlane_core/lib/fastlane_core/keychain_importer.rb +12 -5
- data/fastlane_core/lib/fastlane_core/languages.rb +2 -2
- data/fastlane_core/lib/fastlane_core/pkg_file_analyser.rb +5 -0
- data/fastlane_core/lib/fastlane_core/pkg_upload_package_builder.rb +3 -2
- data/fastlane_core/lib/fastlane_core/print_table.rb +5 -3
- data/fastlane_core/lib/fastlane_core/project.rb +30 -23
- data/{deliver/lib/deliver → fastlane_core/lib/fastlane_core}/queue_worker.rb +4 -4
- data/fastlane_core/lib/fastlane_core/swag.rb +1 -1
- data/fastlane_core/lib/fastlane_core/ui/disable_colors.rb +1 -0
- data/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb +41 -0
- data/fastlane_core/lib/fastlane_core/ui/help.erb +35 -0
- data/fastlane_core/lib/fastlane_core/ui/help_formatter.rb +16 -0
- data/fastlane_core/lib/fastlane_core/ui/implementations/shell.rb +16 -2
- data/fastlane_core/lib/fastlane_core/ui/interface.rb +1 -1
- data/fastlane_core/lib/fastlane_core/update_checker/update_checker.rb +2 -2
- data/fastlane_core/lib/fastlane_core.rb +22 -20
- data/frameit/lib/frameit/commands_generator.rb +2 -1
- data/frameit/lib/frameit/config_parser.rb +2 -2
- data/frameit/lib/frameit/frame_downloader.rb +2 -1
- data/gym/lib/gym/code_signing_mapping.rb +2 -2
- data/gym/lib/gym/commands_generator.rb +2 -1
- data/gym/lib/gym/generators/package_command_generator.rb +4 -0
- data/gym/lib/gym/generators/package_command_generator_xcode7.rb +19 -13
- data/gym/lib/gym/runner.rb +15 -4
- data/match/lib/match/change_password.rb +3 -3
- data/match/lib/match/commands_generator.rb +2 -1
- data/match/lib/match/encryption/interface.rb +1 -1
- data/match/lib/match/encryption/openssl.rb +2 -2
- data/match/lib/match/importer.rb +9 -10
- data/match/lib/match/migrate.rb +2 -3
- data/match/lib/match/module.rb +1 -0
- data/match/lib/match/nuke.rb +10 -10
- data/match/lib/match/options.rb +5 -4
- data/match/lib/match/runner.rb +12 -12
- data/match/lib/match/spaceship_ensure.rb +3 -0
- data/match/lib/match/storage/google_cloud_storage.rb +2 -2
- data/match/lib/match/storage/s3_storage.rb +2 -2
- data/pem/lib/pem/commands_generator.rb +2 -1
- data/pilot/lib/pilot/build_manager.rb +45 -15
- data/pilot/lib/pilot/commands_generator.rb +2 -1
- data/pilot/lib/pilot/manager.rb +14 -9
- data/pilot/lib/pilot/options.rb +39 -11
- data/pilot/lib/pilot/tester_exporter.rb +0 -1
- data/pilot/lib/pilot/tester_manager.rb +0 -1
- data/pilot/lib/pilot.rb +0 -1
- data/precheck/lib/precheck/commands_generator.rb +2 -1
- data/precheck/lib/precheck/module.rb +2 -0
- data/precheck/lib/precheck/options.rb +7 -6
- data/precheck/lib/precheck/runner.rb +13 -8
- data/produce/lib/produce/commands_generator.rb +129 -28
- data/produce/lib/produce/developer_center.rb +42 -4
- data/produce/lib/produce/options.rb +1 -1
- data/produce/lib/produce/service.rb +285 -179
- data/scan/lib/scan/commands_generator.rb +2 -1
- data/scan/lib/scan/detect_values.rb +26 -14
- data/scan/lib/scan/module.rb +1 -0
- data/scan/lib/scan/options.rb +32 -6
- data/scan/lib/scan/runner.rb +81 -1
- data/scan/lib/scan/test_command_generator.rb +37 -12
- data/scan/lib/scan/xcpretty_reporter_options_generator.rb +1 -1
- data/screengrab/lib/screengrab/android_environment.rb +5 -53
- data/screengrab/lib/screengrab/commands_generator.rb +2 -1
- data/screengrab/lib/screengrab/dependency_checker.rb +0 -20
- data/screengrab/lib/screengrab/options.rb +5 -2
- data/screengrab/lib/screengrab/runner.rb +110 -109
- data/sigh/lib/assets/resign.sh +81 -61
- data/sigh/lib/sigh/commands_generator.rb +2 -1
- data/sigh/lib/sigh/download_all.rb +4 -8
- data/sigh/lib/sigh/options.rb +6 -4
- data/sigh/lib/sigh/runner.rb +8 -8
- data/snapshot/lib/assets/SnapfileTemplate +3 -2
- data/snapshot/lib/assets/SnapfileTemplate.swift +2 -1
- data/snapshot/lib/assets/SnapshotHelper.swift +14 -10
- data/snapshot/lib/snapshot/commands_generator.rb +3 -1
- data/snapshot/lib/snapshot/options.rb +5 -0
- data/snapshot/lib/snapshot/reports_generator.rb +7 -1
- data/snapshot/lib/snapshot/simulator_launchers/launcher_configuration.rb +2 -0
- data/snapshot/lib/snapshot/simulator_launchers/simulator_launcher.rb +1 -1
- data/snapshot/lib/snapshot/simulator_launchers/simulator_launcher_base.rb +12 -6
- data/snapshot/lib/snapshot/test_command_generator.rb +17 -3
- data/spaceship/README.md +4 -14
- data/spaceship/lib/spaceship/base.rb +2 -2
- data/spaceship/lib/spaceship/client.rb +37 -20
- data/spaceship/lib/spaceship/commands_generator.rb +4 -2
- data/spaceship/lib/spaceship/connect_api/api_client.rb +80 -8
- data/spaceship/lib/spaceship/connect_api/model.rb +1 -1
- data/spaceship/lib/spaceship/connect_api/models/age_rating_declaration.rb +36 -4
- data/spaceship/lib/spaceship/connect_api/models/app.rb +10 -2
- data/spaceship/lib/spaceship/connect_api/models/app_info.rb +10 -0
- data/spaceship/lib/spaceship/connect_api/models/app_preview_set.rb +5 -0
- data/spaceship/lib/spaceship/connect_api/models/app_screenshot.rb +1 -1
- data/spaceship/lib/spaceship/connect_api/models/app_screenshot_set.rb +5 -0
- data/spaceship/lib/spaceship/connect_api/models/app_store_version.rb +2 -3
- data/spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb +6 -0
- data/spaceship/lib/spaceship/connect_api/models/beta_group.rb +8 -1
- data/spaceship/lib/spaceship/connect_api/models/beta_tester.rb +3 -1
- data/spaceship/lib/spaceship/connect_api/models/build.rb +14 -1
- data/spaceship/lib/spaceship/connect_api/models/build_beta_detail.rb +8 -0
- data/spaceship/lib/spaceship/connect_api/models/bundle_id.rb +32 -0
- data/spaceship/lib/spaceship/connect_api/models/bundle_id_capability.rb +84 -21
- data/spaceship/lib/spaceship/connect_api/models/capabilities.rb +27 -0
- data/spaceship/lib/spaceship/connect_api/models/profile.rb +6 -0
- data/spaceship/lib/spaceship/connect_api/models/user.rb +17 -3
- data/spaceship/lib/spaceship/connect_api/models/user_invitation.rb +37 -3
- data/spaceship/lib/spaceship/connect_api/provisioning/provisioning.rb +104 -2
- data/spaceship/lib/spaceship/connect_api/testflight/client.rb +3 -0
- data/spaceship/lib/spaceship/connect_api/testflight/testflight.rb +72 -5
- data/spaceship/lib/spaceship/connect_api/token.rb +19 -4
- data/spaceship/lib/spaceship/connect_api/tunes/client.rb +3 -0
- data/spaceship/lib/spaceship/connect_api/tunes/tunes.rb +19 -2
- data/spaceship/lib/spaceship/connect_api/users/client.rb +3 -0
- data/spaceship/lib/spaceship/connect_api/users/users.rb +58 -3
- data/spaceship/lib/spaceship/connect_api.rb +1 -0
- data/spaceship/lib/spaceship/playground.rb +2 -2
- data/spaceship/lib/spaceship/spaceauth_runner.rb +38 -15
- data/spaceship/lib/spaceship/tunes/members.rb +1 -1
- data/spaceship/lib/spaceship/tunes/tunes_client.rb +5 -2
- data/spaceship/lib/spaceship/two_step_or_factor_client.rb +42 -29
- data/spaceship/lib/spaceship/ui.rb +2 -2
- data/supply/lib/supply/client.rb +45 -4
- data/supply/lib/supply/commands_generator.rb +2 -1
- data/supply/lib/supply/options.rb +14 -2
- data/supply/lib/supply/uploader.rb +13 -9
- metadata +119 -98
- data/fastlane/lib/fastlane/.erb_template_helper.rb.swp +0 -0
- data/fastlane/lib/fastlane/actions/.git_commit.rb.swp +0 -0
- data/pilot/lib/pilot/features.rb +0 -0
- data/pilot/lib/pilot/tester_util.rb +0 -0
- data/spaceship/lib/spaceship/.DS_Store +0 -0
@@ -7,14 +7,17 @@ module FastlaneCore
|
|
7
7
|
def self.import_file(path, keychain_path, keychain_password: nil, certificate_password: "", skip_set_partition_list: false, output: FastlaneCore::Globals.verbose?)
|
8
8
|
UI.user_error!("Could not find file '#{path}'") unless File.exist?(path)
|
9
9
|
|
10
|
+
password_part = " -P #{certificate_password.shellescape}"
|
11
|
+
|
10
12
|
command = "security import #{path.shellescape} -k '#{keychain_path.shellescape}'"
|
11
|
-
command <<
|
13
|
+
command << password_part
|
12
14
|
command << " -T /usr/bin/codesign" # to not be asked for permission when running a tool like `gym` (before Sierra)
|
13
15
|
command << " -T /usr/bin/security"
|
14
16
|
command << " -T /usr/bin/productbuild" # to not be asked for permission when using an installer cert for macOS
|
15
17
|
command << " 1> /dev/null" unless output
|
16
18
|
|
17
|
-
|
19
|
+
sensitive_command = command.gsub(password_part, " -P ********")
|
20
|
+
UI.command(sensitive_command) if output
|
18
21
|
Open3.popen3(command) do |stdin, stdout, stderr, thrd|
|
19
22
|
UI.command_output(stdout.read.to_s) if output
|
20
23
|
|
@@ -38,17 +41,21 @@ module FastlaneCore
|
|
38
41
|
# When security supports partition lists, also add the partition IDs
|
39
42
|
# See https://openradar.appspot.com/28524119
|
40
43
|
if Helper.backticks('security -h | grep set-key-partition-list', print: false).length > 0
|
44
|
+
password_part = " -k #{keychain_password.to_s.shellescape}"
|
45
|
+
|
41
46
|
command = "security set-key-partition-list"
|
42
47
|
command << " -S apple-tool:,apple:,codesign:"
|
43
48
|
command << " -s" # This is a needed in Catalina to prevent "security: SecKeychainItemCopyAccess: A missing value was detected."
|
44
|
-
command <<
|
49
|
+
command << password_part
|
45
50
|
command << " #{keychain_path.shellescape}"
|
46
51
|
command << " 1> /dev/null" # always disable stdout. This can be very verbose, and leak potentially sensitive info
|
47
52
|
|
48
53
|
# Showing loading indicator as this can take some time if a lot of keys installed
|
49
54
|
Helper.show_loading_indicator("Setting key partition list... (this can take a minute if there are a lot of keys installed)")
|
50
55
|
|
51
|
-
|
56
|
+
# Strip keychain password from command output
|
57
|
+
sensitive_command = command.gsub(password_part, " -k ********")
|
58
|
+
UI.command(sensitive_command) if output
|
52
59
|
Open3.popen3(command) do |stdin, stdout, stderr, thrd|
|
53
60
|
unless thrd.value.success?
|
54
61
|
err = stderr.read.to_s.strip
|
@@ -99,7 +106,7 @@ module FastlaneCore
|
|
99
106
|
UI.important("Enter the password for #{keychain_path}")
|
100
107
|
UI.important("This passphrase will be stored in your local keychain with the name #{server} and used in future runs")
|
101
108
|
UI.important("This prompt can be avoided by specifying the 'keychain_password' option or 'MATCH_KEYCHAIN_PASSWORD' environment variable")
|
102
|
-
keychain_password = FastlaneCore::Helper.ask_password(message: "Password for #{keychain_name} keychain: ", confirm: true)
|
109
|
+
keychain_password = FastlaneCore::Helper.ask_password(message: "Password for #{keychain_name} keychain: ", confirm: true, confirmation_message: "Type password for #{keychain_name} keychain again: ")
|
103
110
|
Security::InternetPassword.add(server, "", keychain_password)
|
104
111
|
else
|
105
112
|
UI.important("Keychain password for #{keychain_path} was not specified and not found in your keychain. Specify the 'keychain_password' option to prevent the UI permission popup when code signing")
|
@@ -3,7 +3,7 @@ module FastlaneCore
|
|
3
3
|
# These are all the languages which are available to use to upload app metadata and screenshots
|
4
4
|
|
5
5
|
# The old format which was used until August 2015 (good old times)
|
6
|
-
ALL_LANGUAGES_LEGACY = [
|
6
|
+
ALL_LANGUAGES_LEGACY = %w[da-DK de-DE el-GR en-AU en-CA en-GB en-US es-ES es-MX fi-FI fr-CA fr-FR id-ID it-IT ja-JP ko-KR ms-MY nl-NL no-NO pt-BR pt-PT ru-RU sv-SE th-TH tr-TR vi-VI cmn-Hans cmn-Hant]
|
7
7
|
|
8
8
|
# The new format used from September 2015 on
|
9
9
|
# This was generated from `Spaceship::Tunes.client.available_languages.sort`
|
@@ -11,6 +11,6 @@ module FastlaneCore
|
|
11
11
|
# - produce/lib/produce/available_default_languages.rb
|
12
12
|
# - spaceship/lib/assets/languageMapping.json
|
13
13
|
# See pull request for example: https://github.com/fastlane/fastlane/pull/14110
|
14
|
-
ALL_LANGUAGES = [
|
14
|
+
ALL_LANGUAGES = %w[ar-SA ca cs da de-DE el en-AU en-CA en-GB en-US es-ES es-MX fi fr-CA fr-FR he hi hr hu id it ja ko ms nl-NL no pl pt-BR pt-PT ro ru sk sv th tr uk vi zh-Hans zh-Hant]
|
15
15
|
end
|
16
16
|
end
|
@@ -10,6 +10,11 @@ module FastlaneCore
|
|
10
10
|
return nil
|
11
11
|
end
|
12
12
|
|
13
|
+
# Fetches the app platform from the given pkg file.
|
14
|
+
def self.fetch_app_platform(path)
|
15
|
+
return "osx"
|
16
|
+
end
|
17
|
+
|
13
18
|
# Fetches the app version from the given pkg file.
|
14
19
|
def self.fetch_app_version(path)
|
15
20
|
xml = self.fetch_distribution_xml_file(path)
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'digest/md5'
|
2
|
+
require 'securerandom'
|
2
3
|
|
3
4
|
require_relative 'globals'
|
4
5
|
require_relative 'ui/ui'
|
@@ -12,7 +13,7 @@ module FastlaneCore
|
|
12
13
|
attr_accessor :package_path
|
13
14
|
|
14
15
|
def generate(app_id: nil, pkg_path: nil, package_path: nil, platform: "osx")
|
15
|
-
self.package_path = File.join(package_path, "#{app_id}.itmsp")
|
16
|
+
self.package_path = File.join(package_path, "#{app_id}-#{SecureRandom.uuid}.itmsp")
|
16
17
|
FileUtils.rm_rf(self.package_path) if File.directory?(self.package_path)
|
17
18
|
FileUtils.mkdir_p(self.package_path)
|
18
19
|
|
@@ -32,7 +33,7 @@ module FastlaneCore
|
|
32
33
|
File.write(File.join(self.package_path, METADATA_FILE_NAME), xml)
|
33
34
|
UI.success("Wrote XML data to '#{self.package_path}'") if FastlaneCore::Globals.verbose?
|
34
35
|
|
35
|
-
package_path
|
36
|
+
return self.package_path
|
36
37
|
end
|
37
38
|
|
38
39
|
private
|
@@ -36,9 +36,11 @@ module FastlaneCore
|
|
36
36
|
|
37
37
|
params[:title] = title.green if title
|
38
38
|
|
39
|
-
|
40
|
-
|
41
|
-
|
39
|
+
unless FastlaneCore::Env.truthy?("FASTLANE_SKIP_ALL_LANE_SUMMARIES")
|
40
|
+
puts("")
|
41
|
+
puts(Terminal::Table.new(params))
|
42
|
+
puts("")
|
43
|
+
end
|
42
44
|
|
43
45
|
return params
|
44
46
|
end
|
@@ -1,5 +1,6 @@
|
|
1
1
|
require_relative 'helper'
|
2
2
|
require 'xcodeproj'
|
3
|
+
require_relative './configuration/configuration'
|
3
4
|
require 'fastlane_core/command_executor'
|
4
5
|
|
5
6
|
module FastlaneCore
|
@@ -67,28 +68,32 @@ module FastlaneCore
|
|
67
68
|
# Is this project a workspace?
|
68
69
|
attr_accessor :is_workspace
|
69
70
|
|
70
|
-
#
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
# Gets rid of annoying plugin info warnings.
|
78
|
-
attr_accessor :xcodebuild_suppress_stderr
|
79
|
-
|
80
|
-
def initialize(options, xcodebuild_list_silent: false, xcodebuild_suppress_stderr: false)
|
81
|
-
self.options = options
|
82
|
-
self.path = File.expand_path(options[:workspace] || options[:project])
|
83
|
-
self.is_workspace = (options[:workspace].to_s.length > 0)
|
84
|
-
self.xcodebuild_list_silent = xcodebuild_list_silent
|
85
|
-
self.xcodebuild_suppress_stderr = xcodebuild_suppress_stderr
|
71
|
+
# @param options [FastlaneCore::Configuration|Hash] a set of configuration to run xcodebuild to work out build settings
|
72
|
+
# @param xcodebuild_list_silent [Boolean] a flag to silent xcodebuild command's output
|
73
|
+
# @param xcodebuild_suppress_stderr [Boolean] a flag to supress output to stderr from xcodebuild
|
74
|
+
def initialize(options)
|
75
|
+
@options = options
|
76
|
+
@path = File.expand_path(self.options[:workspace] || self.options[:project])
|
77
|
+
@is_workspace = (self.options[:workspace].to_s.length > 0)
|
86
78
|
|
87
79
|
if !path || !File.directory?(path)
|
88
80
|
UI.user_error!("Could not find project at path '#{path}'")
|
89
81
|
end
|
90
82
|
end
|
91
83
|
|
84
|
+
# @return [Hash] a hash object containing project, workspace, scheme, any configuration related to xcodebuild, or etc...
|
85
|
+
def options
|
86
|
+
# To keep compatibility with actions using this class from outside of `fastlane` gem; i.e. `xcov`,
|
87
|
+
# converts `options` to a plain Hash. Otherwise, it might crash when a new option's key is added
|
88
|
+
# due to `FastlaneCore::Configuration` to validate valid keys defined.
|
89
|
+
@options.kind_of?(FastlaneCore::Configuration) ? @options.values : @options
|
90
|
+
end
|
91
|
+
|
92
|
+
def options=(new_value)
|
93
|
+
UI.deprecated('Update `options` is not worth doing since it can change behavior of this object entirely. Consider re-creating FastlaneCore::Project.')
|
94
|
+
@options = new_value
|
95
|
+
end
|
96
|
+
|
92
97
|
def workspace?
|
93
98
|
self.is_workspace
|
94
99
|
end
|
@@ -118,9 +123,13 @@ module FastlaneCore
|
|
118
123
|
# Get all available schemes in an array
|
119
124
|
def schemes
|
120
125
|
@schemes ||= if workspace?
|
121
|
-
|
122
|
-
|
123
|
-
|
126
|
+
if FastlaneCore::Env.truthy?("FASTLANE_INCLUDE_PODS_PROJECT_SCHEMES")
|
127
|
+
workspace.schemes.keys
|
128
|
+
else
|
129
|
+
workspace.schemes.reject do |k, v|
|
130
|
+
v.include?("Pods/Pods.xcodeproj")
|
131
|
+
end.keys
|
132
|
+
end
|
124
133
|
else
|
125
134
|
Xcodeproj::Project.schemes(path)
|
126
135
|
end
|
@@ -351,14 +360,12 @@ module FastlaneCore
|
|
351
360
|
else
|
352
361
|
command = "xcodebuild clean -showBuildSettings #{xcodebuild_parameters.join(' ')}"
|
353
362
|
end
|
354
|
-
command += " 2> /dev/null" if xcodebuild_suppress_stderr
|
355
363
|
command
|
356
364
|
end
|
357
365
|
|
358
366
|
def build_xcodebuild_resolvepackagedependencies_command
|
359
367
|
return nil if options[:skip_package_dependencies_resolution]
|
360
368
|
command = "xcodebuild -resolvePackageDependencies #{xcodebuild_parameters.join(' ')}"
|
361
|
-
command += " 2> /dev/null" if xcodebuild_suppress_stderr
|
362
369
|
command
|
363
370
|
end
|
364
371
|
|
@@ -381,7 +388,7 @@ module FastlaneCore
|
|
381
388
|
FastlaneCore::CommandExecutor.execute(
|
382
389
|
command: command,
|
383
390
|
print_all: true,
|
384
|
-
print_command:
|
391
|
+
print_command: true
|
385
392
|
)
|
386
393
|
else
|
387
394
|
UI.important("Skipped Swift Package Manager dependencies resolution.")
|
@@ -394,7 +401,7 @@ module FastlaneCore
|
|
394
401
|
begin
|
395
402
|
timeout = FastlaneCore::Project.xcode_build_settings_timeout
|
396
403
|
retries = FastlaneCore::Project.xcode_build_settings_retries
|
397
|
-
@build_settings = FastlaneCore::Project.run_command(command, timeout: timeout, retries: retries, print:
|
404
|
+
@build_settings = FastlaneCore::Project.run_command(command, timeout: timeout, retries: retries, print: true)
|
398
405
|
if @build_settings.empty?
|
399
406
|
UI.error("Could not read build settings. Make sure that the scheme \"#{options[:scheme]}\" is configured for running by going to Product → Scheme → Edit Scheme…, selecting the \"Build\" section, checking the \"Run\" checkbox and closing the scheme window.")
|
400
407
|
end
|
@@ -1,12 +1,12 @@
|
|
1
1
|
require 'thread'
|
2
2
|
|
3
|
-
module
|
3
|
+
module FastlaneCore
|
4
4
|
# This dispatches jobs to worker threads and make it work in parallel.
|
5
5
|
# It's suitable for I/O bounds works and not for CPU bounds works.
|
6
6
|
# Use this when you have all the items that you'll process in advance.
|
7
7
|
# Simply enqueue them to this and call `QueueWorker#start`.
|
8
8
|
class QueueWorker
|
9
|
-
NUMBER_OF_THREADS = Helper.test? ? 1 : [ENV.fetch("
|
9
|
+
NUMBER_OF_THREADS = FastlaneCore::Helper.test? ? 1 : [(ENV["DELIVER_NUMBER_OF_THREADS"] || ENV.fetch("FL_NUMBER_OF_THREADS", 10)).to_i, 10].min
|
10
10
|
|
11
11
|
# @param concurrency (Numeric) - A number of threads to be created
|
12
12
|
# @param block (Proc) - A task you want to execute with enqueued items
|
@@ -16,12 +16,12 @@ module Deliver
|
|
16
16
|
@queue = Queue.new
|
17
17
|
end
|
18
18
|
|
19
|
-
# @param job (Object) - An
|
19
|
+
# @param job (Object) - An arbitrary object that keeps parameters
|
20
20
|
def enqueue(job)
|
21
21
|
@queue.push(job)
|
22
22
|
end
|
23
23
|
|
24
|
-
# @param jobs (Array<Object>) - An array of
|
24
|
+
# @param jobs (Array<Object>) - An array of arbitrary object that keeps parameters
|
25
25
|
def batch_enqueue(jobs)
|
26
26
|
raise(ArgumentError, "Enqueue Array instead of #{jobs.class}") unless jobs.kind_of?(Array)
|
27
27
|
jobs.each { |job| enqueue(job) }
|
@@ -4,7 +4,7 @@ require_relative 'helper'
|
|
4
4
|
|
5
5
|
module FastlaneCore
|
6
6
|
class Swag
|
7
|
-
# rubocop:disable LineLength
|
7
|
+
# rubocop:disable Layout/LineLength
|
8
8
|
require 'zlib'
|
9
9
|
FRAMES = ["x\x9C\xED[\xD9u\xDB0\x10\xFCO\v\xFEq\t<C\xE0\xB9\x14\xD7\xE0\x1ERE\nt%\x91D\x12<0\xB3\aH\xC9\x8A\x9F\xF3\xF2\x13\x02\xC4\xB13;{Pyyo\xE3[\x17?^O\xFF\xF3\xF2\xDE\xDDV\xFE\xF5\xF2\xB3\xC5\xCF\x16_\xB2\xC5\xFC\xC28?\xBC\xF5oM\xFD\xFB\x03>\xAE\xE0\xE3\xEA\xBA\x87}z\xBE\xB8\xCF\f\xBE\v\xEA\a\x98\x9E\xCD\x97i>>\xFF\xFE\xD9\x0FWQ\x1En6\xC3\xE2\x8C\xA0\xCE\xA0k\xC8\x87\xE0W\xE0\x808,\xEF1;\xDA{\xF0\e\xBD1\x0E\aq\xF8\xB23\xB2Vu\xFDWf\xA7\xF1Z\xE8\xA0\xFB\xC9\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x03\xBDc\xAD\x13(\xBC\xA6\x99M`\xF2P\x9BK\x95P1\xA1\x98\xE3\xCD-\f5s\x93\xA4p\xCC\x18\x1E\x8A\x19\x9D\x94\x9AtE\xB1\xF8EN\xA2\e0uk\xECi\xB8\xC7\xD3\x9BYk\x12\xA2\xA3\xBB\x9D\xF7\xA7\xA5\xCD\r`\x18\vtG'K\x15v\xFE&G\xA3\xA8\xB1\xDF\xBB\xD2\xAF\xC0\b\xE0]f.\x01\x0E\xAE\xD3\xB4\x81\xBC\xE8D\x93t\xCF\xB3$\xE8b_;\xDDid%\xA4\x9F\x89\x8B\n`\xD4F \x1D\e=\xFE\xB7\xB8[%\x01\xC3I\x0F\xFE\xEF\xCF\xFD\x9C\xC3y\xCEj\xDF\xD48\xC7\xE9\x9E&\xBF\x99\xF8\xAE\x98\xAC\xAA\xC7Y\x9B\xD9\x9Eol\xDF\xE7\xB5\xC4\x7F\xB9\xC4_\x06\x16#\x10",
|
@@ -34,6 +34,46 @@ module Commander
|
|
34
34
|
|
35
35
|
attr_accessor :collector
|
36
36
|
|
37
|
+
# Temporary work around for issues mentioned in https://github.com/fastlane/fastlane/pull/18760
|
38
|
+
# Code taken from https://github.com/commander-rb/commander/blob/40d06bfbc54906d0de7c72ac73f4e9188c9ca294/lib/commander/runner.rb#L372-L385
|
39
|
+
#
|
40
|
+
# Problem:
|
41
|
+
# `optparse` is guessing that command option `-e` is referring to global option `--env` (because it starts with an e).
|
42
|
+
# This is raising OptionParser::MissingArgument error because `--env` takes a string argument.
|
43
|
+
# A command of `-e --verbose` works because `--verbose` is seen as the argument.
|
44
|
+
# A command of `--verbose -e` doesn't work because no argument after `-e` so MissingArgument is raised again.
|
45
|
+
# This broke somewhere between Ruby 2.5 and Ruby 2.6
|
46
|
+
#
|
47
|
+
# Solution:
|
48
|
+
# Proper solution is to set `parser.require_exact = true` but this only available on `optparse` version 0.1.1
|
49
|
+
# which is not used by Commander.
|
50
|
+
# `require_exact` will prevent OptionParser from assuming `-e` is the same as `--env STRING`
|
51
|
+
# Even if it was on RubyGems, it would require Commander to allow this option to be set on OptionParser
|
52
|
+
#
|
53
|
+
# This work around was made on 2021-08-13
|
54
|
+
#
|
55
|
+
# When fixed:
|
56
|
+
# This method implementation overrides one provided by Commander::Runner already. Just delete this method
|
57
|
+
# so the existing one can be used
|
58
|
+
def parse_global_options
|
59
|
+
parser = options.inject(OptionParser.new) do |options, option|
|
60
|
+
options.on(*option[:args], &global_option_proc(option[:switches], &option[:proc]))
|
61
|
+
end
|
62
|
+
|
63
|
+
# This is the actual solution but is only in version 0.1.1 of optparse and its not in Commander
|
64
|
+
# This is the only change from Commanders implementation of parse_global_options
|
65
|
+
parser.require_exact = true
|
66
|
+
|
67
|
+
options = @args.dup
|
68
|
+
begin
|
69
|
+
parser.parse!(options)
|
70
|
+
rescue OptionParser::InvalidOption => e
|
71
|
+
# Remove the offending args and retry.
|
72
|
+
options = options.reject { |o| e.args.include?(o) }
|
73
|
+
retry
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
37
77
|
def run!
|
38
78
|
require_program(:version, :description)
|
39
79
|
trap('INT') { abort(program(:int_message)) } if program(:int_message)
|
@@ -47,6 +87,7 @@ module Commander
|
|
47
87
|
say(version)
|
48
88
|
return
|
49
89
|
end
|
90
|
+
|
50
91
|
parse_global_options
|
51
92
|
remove_global_options(options, @args)
|
52
93
|
|
@@ -0,0 +1,35 @@
|
|
1
|
+
<%= program :name %>
|
2
|
+
|
3
|
+
<%= program :description %>
|
4
|
+
|
5
|
+
<%= "Commands:#{@default_command ? ' (* default)' : '' }" %>
|
6
|
+
<% for name, command in @commands.sort -%>
|
7
|
+
<% unless alias? name -%>
|
8
|
+
<%= "%-#{max_command_length}s #{@default_command.nil? ? '' : (command.name == @default_command.to_s ? '* ' : ' ') }%s" % [command.name, command.summary || command.description] %>
|
9
|
+
<% end -%>
|
10
|
+
<% end -%>
|
11
|
+
<% unless @aliases.empty? %>
|
12
|
+
Aliases:
|
13
|
+
<% for alias_name, args in @aliases.sort -%>
|
14
|
+
<%= "%-#{max_aliases_length}s %s %s" % [alias_name, command(alias_name).name, args.join(' ')] %>
|
15
|
+
<% end -%>
|
16
|
+
<% end %>
|
17
|
+
<% unless @options.empty? -%>
|
18
|
+
Global Options:
|
19
|
+
<% for option in @options -%>
|
20
|
+
<%= "%-20s %s" % [option[:switches].join(', '), option[:description]] %>
|
21
|
+
<% end -%>
|
22
|
+
<% end -%>
|
23
|
+
<% default_command_options = @commands.values.find {|c| c.name == @default_command.to_s }&.options || [] %>
|
24
|
+
<% unless default_command_options.empty? %>
|
25
|
+
<%= "Options for #{@default_command}:" %>
|
26
|
+
<% for option in default_command_options -%>
|
27
|
+
<%= "%-20s %s" % [option[:switches].join(', '), option[:description]] %>
|
28
|
+
<% end -%>
|
29
|
+
<% end -%>
|
30
|
+
<% if program :help -%>
|
31
|
+
<% for title, body in program(:help) %>
|
32
|
+
<%= title %>:
|
33
|
+
<%= body %>
|
34
|
+
<% end %>
|
35
|
+
<% end -%>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'commander'
|
2
|
+
|
3
|
+
module FastlaneCore
|
4
|
+
class HelpFormatter < ::Commander::HelpFormatter::TerminalCompact
|
5
|
+
def template(name)
|
6
|
+
# fastlane only customizes the global command help
|
7
|
+
return super unless name == :help
|
8
|
+
|
9
|
+
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.6')
|
10
|
+
ERB.new(File.read(File.join(File.dirname(__FILE__), "help.erb")), nil, '-')
|
11
|
+
else
|
12
|
+
ERB.new(File.read(File.join(File.dirname(__FILE__), "help.erb")), trim_mode: '-')
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -69,7 +69,7 @@ module FastlaneCore
|
|
69
69
|
end
|
70
70
|
|
71
71
|
def command_output(message)
|
72
|
-
actual = (message.split("\r").last || "") # as clearing the line will remove the `>` and the time stamp
|
72
|
+
actual = (encode_as_utf_8_if_possible(message).split("\r").last || "") # as clearing the line will remove the `>` and the time stamp
|
73
73
|
actual.split("\n").each do |msg|
|
74
74
|
if FastlaneCore::Env.truthy?("FASTLANE_DISABLE_OUTPUT_FORMAT")
|
75
75
|
log.info(msg)
|
@@ -145,11 +145,25 @@ module FastlaneCore
|
|
145
145
|
def password(message)
|
146
146
|
verify_interactive!(message)
|
147
147
|
|
148
|
-
ask("#{format_string}#{message.to_s.yellow}")
|
148
|
+
ask("#{format_string}#{message.to_s.yellow}") do |q|
|
149
|
+
q.whitespace = :chomp
|
150
|
+
q.echo = "*"
|
151
|
+
end
|
149
152
|
end
|
150
153
|
|
151
154
|
private
|
152
155
|
|
156
|
+
def encode_as_utf_8_if_possible(message)
|
157
|
+
return message if message.valid_encoding?
|
158
|
+
|
159
|
+
# genstrings outputs UTF-16, so we should try to use this encoding if it turns out to be valid
|
160
|
+
test_message = message.dup
|
161
|
+
return message.encode(Encoding::UTF_8, Encoding::UTF_16) if test_message.force_encoding(Encoding::UTF_16).valid_encoding?
|
162
|
+
|
163
|
+
# replace any invalid with empty string
|
164
|
+
message.encode(Encoding::UTF_8, invalid: :replace)
|
165
|
+
end
|
166
|
+
|
153
167
|
def verify_interactive!(message)
|
154
168
|
return if interactive?
|
155
169
|
important(message)
|
@@ -138,7 +138,7 @@ module FastlaneCore
|
|
138
138
|
# Basically this should be used when you actively catch the error
|
139
139
|
# and want to show a nice error message to the user
|
140
140
|
def user_error!(error_message, options = {})
|
141
|
-
raise FastlaneError.new(options), error_message.to_s
|
141
|
+
raise FastlaneError.new(show_github_issues: options[:show_github_issues], error_info: options[:error_info]), error_message.to_s
|
142
142
|
end
|
143
143
|
|
144
144
|
# Use this method to exit the program because of a shell command
|
@@ -63,7 +63,7 @@ module FastlaneCore
|
|
63
63
|
if !Helper.bundler? && !Helper.contained_fastlane? && Random.rand(5) == 1
|
64
64
|
# We want to show this message from time to time, if the user doesn't use bundler, nor bundled fastlane
|
65
65
|
puts('#######################################################################')
|
66
|
-
puts("# Run `
|
66
|
+
puts("# Run `gem cleanup` from time to time to speed up fastlane")
|
67
67
|
end
|
68
68
|
puts('#######################################################################')
|
69
69
|
Changelog.show_changes(gem_name, current_version, update_gem_command: UpdateChecker.update_command(gem_name: gem_name)) unless FastlaneCore::Env.truthy?("FASTLANE_HIDE_CHANGELOG")
|
@@ -80,7 +80,7 @@ module FastlaneCore
|
|
80
80
|
elsif Helper.mac_app?
|
81
81
|
"the Fabric app. Launch the app and navigate to the fastlane tab to get the most recent version."
|
82
82
|
else
|
83
|
-
"
|
83
|
+
"gem install #{gem_name.downcase}"
|
84
84
|
end
|
85
85
|
end
|
86
86
|
|
@@ -3,38 +3,40 @@ require_relative 'fastlane_core/globals'
|
|
3
3
|
require_relative 'fastlane_core/core_ext/string'
|
4
4
|
require_relative 'fastlane_core/core_ext/shellwords'
|
5
5
|
|
6
|
+
require_relative 'fastlane_core/analytics/action_completion_context'
|
7
|
+
require_relative 'fastlane_core/analytics/action_launch_context'
|
8
|
+
require_relative 'fastlane_core/analytics/analytics_event_builder'
|
9
|
+
require_relative 'fastlane_core/analytics/analytics_ingester_client'
|
10
|
+
require_relative 'fastlane_core/analytics/analytics_session'
|
11
|
+
require_relative 'fastlane_core/build_watcher'
|
12
|
+
require_relative 'fastlane_core/cert_checker'
|
13
|
+
require_relative 'fastlane_core/clipboard'
|
14
|
+
require_relative 'fastlane_core/command_executor'
|
15
|
+
require_relative 'fastlane_core/configuration/configuration'
|
16
|
+
require_relative 'fastlane_core/device_manager'
|
6
17
|
require_relative 'fastlane_core/env'
|
18
|
+
require_relative 'fastlane_core/fastlane_folder'
|
19
|
+
require_relative 'fastlane_core/fastlane_pty'
|
7
20
|
require_relative 'fastlane_core/feature/feature'
|
8
21
|
require_relative 'fastlane_core/features'
|
9
22
|
require_relative 'fastlane_core/helper'
|
10
|
-
require_relative 'fastlane_core/configuration/configuration'
|
11
|
-
require_relative 'fastlane_core/update_checker/update_checker'
|
12
|
-
require_relative 'fastlane_core/languages'
|
13
|
-
require_relative 'fastlane_core/cert_checker'
|
14
23
|
require_relative 'fastlane_core/ipa_file_analyser'
|
24
|
+
require_relative 'fastlane_core/ipa_upload_package_builder'
|
15
25
|
require_relative 'fastlane_core/itunes_transporter'
|
16
|
-
require_relative 'fastlane_core/
|
26
|
+
require_relative 'fastlane_core/keychain_importer'
|
27
|
+
require_relative 'fastlane_core/languages'
|
17
28
|
require_relative 'fastlane_core/pkg_file_analyser'
|
18
29
|
require_relative 'fastlane_core/pkg_upload_package_builder'
|
19
|
-
require_relative 'fastlane_core/command_executor'
|
20
|
-
require_relative 'fastlane_core/ipa_upload_package_builder'
|
21
30
|
require_relative 'fastlane_core/print_table'
|
22
31
|
require_relative 'fastlane_core/project'
|
23
|
-
require_relative 'fastlane_core/
|
24
|
-
require_relative 'fastlane_core/
|
25
|
-
require_relative 'fastlane_core/fastlane_folder'
|
26
|
-
require_relative 'fastlane_core/keychain_importer'
|
32
|
+
require_relative 'fastlane_core/provisioning_profile'
|
33
|
+
require_relative 'fastlane_core/queue_worker'
|
27
34
|
require_relative 'fastlane_core/swag'
|
28
|
-
require_relative 'fastlane_core/build_watcher'
|
29
|
-
require_relative 'fastlane_core/ui/errors'
|
30
|
-
require_relative 'fastlane_core/test_parser'
|
31
|
-
require_relative 'fastlane_core/analytics/action_completion_context'
|
32
|
-
require_relative 'fastlane_core/analytics/action_launch_context'
|
33
|
-
require_relative 'fastlane_core/analytics/analytics_event_builder'
|
34
|
-
require_relative 'fastlane_core/analytics/analytics_ingester_client'
|
35
|
-
require_relative 'fastlane_core/analytics/analytics_session'
|
36
35
|
require_relative 'fastlane_core/tag_version'
|
37
|
-
require_relative 'fastlane_core/
|
36
|
+
require_relative 'fastlane_core/test_parser'
|
37
|
+
require_relative 'fastlane_core/ui/errors'
|
38
|
+
require_relative 'fastlane_core/ui/ui'
|
39
|
+
require_relative 'fastlane_core/update_checker/update_checker'
|
38
40
|
|
39
41
|
# Third Party code
|
40
42
|
require 'colored'
|
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'commander'
|
2
2
|
require 'fastlane/version'
|
3
|
+
require 'fastlane_core/ui/help_formatter'
|
3
4
|
require 'fastlane_core/globals'
|
4
5
|
require 'fastlane_core/configuration/configuration'
|
5
6
|
|
@@ -27,7 +28,7 @@ module Frameit
|
|
27
28
|
program :help, 'Author', 'Felix Krause <frameit@krausefx.com>'
|
28
29
|
program :help, 'Website', 'https://fastlane.tools'
|
29
30
|
program :help, 'Documentation', 'https://docs.fastlane.tools/actions/frameit/'
|
30
|
-
program :help_formatter,
|
31
|
+
program :help_formatter, FastlaneCore::HelpFormatter
|
31
32
|
|
32
33
|
global_option('--verbose') { FastlaneCore::Globals.verbose = true }
|
33
34
|
global_option('--env STRING[,STRING2]', String, 'Add environment(s) to use with `dotenv`')
|
@@ -121,12 +121,12 @@ module Frameit
|
|
121
121
|
|
122
122
|
def self.supported_color?(value)
|
123
123
|
return false if value.nil?
|
124
|
-
Color.all_colors.any?
|
124
|
+
Color.all_colors.any?(value)
|
125
125
|
end
|
126
126
|
|
127
127
|
def self.supported_platform?(value)
|
128
128
|
return false if value.nil?
|
129
|
-
Platform.all_platforms.any?
|
129
|
+
Platform.all_platforms.any?(value)
|
130
130
|
end
|
131
131
|
|
132
132
|
def self.supported_device?(value)
|
@@ -71,8 +71,9 @@ module Frameit
|
|
71
71
|
def download_file(path, txt: "file")
|
72
72
|
require 'uri'
|
73
73
|
require 'excon'
|
74
|
+
require 'addressable/uri'
|
74
75
|
|
75
|
-
url = File.join(HOST_URL, Frameit.frames_version, URI.
|
76
|
+
url = File.join(HOST_URL, Frameit.frames_version, Addressable::URI.encode(path))
|
76
77
|
UI.message("Downloading #{txt} from '#{url}' ...")
|
77
78
|
body = Excon.get(url).body
|
78
79
|
raise body if body.include?("<Error>")
|
@@ -17,8 +17,8 @@ module Gym
|
|
17
17
|
final_mapping = (primary_mapping || {}).dup # for verbose output at the end of the method
|
18
18
|
secondary_mapping ||= self.detect_project_profile_mapping # default to Xcode project
|
19
19
|
|
20
|
-
final_mapping =
|
21
|
-
secondary_mapping =
|
20
|
+
final_mapping = final_mapping.transform_keys(&:to_sym)
|
21
|
+
secondary_mapping = secondary_mapping.transform_keys(&:to_sym)
|
22
22
|
|
23
23
|
# Now it's time to merge the (potentially) existing mapping
|
24
24
|
# (e.g. coming from `provisioningProfiles` of the `export_options` or from previous match calls)
|
@@ -1,6 +1,7 @@
|
|
1
1
|
require 'commander'
|
2
2
|
|
3
3
|
require 'fastlane_core/configuration/configuration'
|
4
|
+
require 'fastlane_core/ui/help_formatter'
|
4
5
|
require_relative 'module'
|
5
6
|
require_relative 'manager'
|
6
7
|
require_relative 'options'
|
@@ -28,7 +29,7 @@ module Gym
|
|
28
29
|
program :help, "Author", "Felix Krause <gym@krausefx.com>"
|
29
30
|
program :help, "Website", "https://fastlane.tools"
|
30
31
|
program :help, "Documentation", "https://docs.fastlane.tools/actions/gym/"
|
31
|
-
program :help_formatter,
|
32
|
+
program :help_formatter, FastlaneCore::HelpFormatter
|
32
33
|
|
33
34
|
global_option("--verbose") { FastlaneCore::Globals.verbose = true }
|
34
35
|
|