fastlane_hotfix 2.165.1 → 2.187.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 +106 -86
- data/cert/lib/cert/commands_generator.rb +2 -1
- data/cert/lib/cert/options.rb +6 -5
- data/cert/lib/cert/runner.rb +8 -8
- data/deliver/lib/assets/summary.html.erb +10 -10
- data/deliver/lib/deliver/app_screenshot.rb +17 -11
- data/deliver/lib/deliver/app_screenshot_validator.rb +108 -0
- data/deliver/lib/deliver/commands_generator.rb +4 -3
- 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 +123 -21
- data/deliver/lib/deliver/module.rb +6 -0
- data/deliver/lib/deliver/options.rb +41 -55
- data/deliver/lib/deliver/runner.rb +19 -14
- data/deliver/lib/deliver/setup.rb +9 -5
- data/deliver/lib/deliver/submit_for_review.rb +4 -4
- data/deliver/lib/deliver/upload_metadata.rb +32 -21
- data/deliver/lib/deliver/upload_price_tier.rb +1 -1
- data/deliver/lib/deliver/upload_screenshots.rb +14 -76
- data/fastlane/lib/fastlane/actions/actions_helper.rb +3 -3
- 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 +22 -6
- data/fastlane/lib/fastlane/actions/app_store_build_number.rb +17 -17
- 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 +46 -46
- data/fastlane/lib/fastlane/actions/apteligent.rb +3 -2
- data/fastlane/lib/fastlane/actions/artifactory.rb +41 -9
- 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 +7 -1
- data/fastlane/lib/fastlane/actions/bundle_install.rb +8 -10
- 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 +0 -1
- 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 +15 -9
- data/fastlane/lib/fastlane/actions/create_xcframework.rb +123 -0
- 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 +27 -28
- data/fastlane/lib/fastlane/actions/docs/capture_ios_screenshots.md +7 -3
- data/fastlane/lib/fastlane/actions/docs/create_app_online.md +171 -67
- data/fastlane/lib/fastlane/actions/docs/frame_screenshots.md +20 -3
- data/fastlane/lib/fastlane/actions/docs/sync_code_signing.md +9 -3
- data/fastlane/lib/fastlane/actions/docs/upload_to_app_store.md.erb +39 -16
- data/fastlane/lib/fastlane/actions/docs/upload_to_play_store.md +2 -1
- data/fastlane/lib/fastlane/actions/docs/upload_to_testflight.md +15 -5
- data/fastlane/lib/fastlane/actions/download_app_privacy_details_from_app_store.rb +142 -0
- data/fastlane/lib/fastlane/actions/download_dsyms.rb +8 -20
- 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 +9 -1
- 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 +12 -10
- 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 +17 -8
- data/fastlane/lib/fastlane/actions/gradle.rb +12 -20
- 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 +6 -6
- 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 +3 -2
- data/fastlane/lib/fastlane/actions/notarize.rb +98 -54
- 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/onesignal.rb +13 -3
- data/fastlane/lib/fastlane/actions/pod_push.rb +9 -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 +1 -1
- data/fastlane/lib/fastlane/actions/push_to_git_remote.rb +14 -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 +11 -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 +10 -13
- data/fastlane/lib/fastlane/actions/set_github_release.rb +23 -16
- 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 +164 -145
- data/fastlane/lib/fastlane/actions/slather.rb +5 -21
- 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 +8 -2
- data/fastlane/lib/fastlane/actions/ssh.rb +5 -10
- data/fastlane/lib/fastlane/actions/swiftlint.rb +21 -19
- data/fastlane/lib/fastlane/actions/sync_code_signing.rb +6 -1
- 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 +31 -10
- 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 +290 -0
- 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 +8 -4
- data/fastlane/lib/fastlane/actions/upload_to_testflight.rb +7 -2
- 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_install.rb +8 -5
- 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/cli_tools_distributor.rb +6 -3
- 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 +1 -1
- 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 +1 -1
- 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 +31 -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_api_generator.rb +3 -0
- data/fastlane/lib/fastlane/swift_fastlane_function.rb +44 -16
- 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 +2 -2
- data/fastlane/swift/DeliverfileProtocol.swift +23 -23
- data/fastlane/swift/Fastfile.swift +1 -1
- data/fastlane/swift/Fastlane.swift +7965 -4213
- data/fastlane/swift/FastlaneSwiftRunner/FastlaneSwiftRunner.xcodeproj/project.pbxproj +4 -0
- data/fastlane/swift/Gymfile.swift +2 -2
- data/fastlane/swift/GymfileProtocol.swift +15 -3
- data/fastlane/swift/LaneFileProtocol.swift +12 -6
- data/fastlane/swift/MainProcess.swift +3 -1
- data/fastlane/swift/Matchfile.swift +2 -2
- data/fastlane/swift/MatchfileProtocol.swift +4 -4
- data/fastlane/swift/OptionalConfigValue.swift +101 -0
- data/fastlane/swift/Plugins.swift +1 -1
- data/fastlane/swift/Precheckfile.swift +2 -2
- data/fastlane/swift/PrecheckfileProtocol.swift +8 -4
- data/fastlane/swift/RubyCommand.swift +2 -2
- data/fastlane/swift/RubyCommandable.swift +1 -1
- data/fastlane/swift/Runner.swift +3 -3
- data/fastlane/swift/RunnerArgument.swift +1 -1
- data/fastlane/swift/Scanfile.swift +2 -2
- data/fastlane/swift/ScanfileProtocol.swift +34 -2
- data/fastlane/swift/Screengrabfile.swift +2 -2
- data/fastlane/swift/ScreengrabfileProtocol.swift +5 -5
- data/fastlane/swift/Snapshotfile.swift +2 -2
- data/fastlane/swift/SnapshotfileProtocol.swift +19 -3
- data/fastlane/swift/SocketClient.swift +4 -3
- data/fastlane/swift/SocketClientDelegateProtocol.swift +1 -1
- data/fastlane/swift/SocketResponse.swift +5 -3
- data/fastlane/swift/formatting/Brewfile.lock.json +24 -16
- data/fastlane/swift/main.swift +1 -1
- data/fastlane/swift/upgrade_manifest.json +1 -1
- data/fastlane_core/lib/fastlane_core.rb +22 -20
- data/fastlane_core/lib/fastlane_core/build_watcher.rb +89 -12
- data/fastlane_core/lib/fastlane_core/cert_checker.rb +12 -7
- 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 +78 -14
- data/fastlane_core/lib/fastlane_core/ipa_file_analyser.rb +41 -16
- data/fastlane_core/lib/fastlane_core/ipa_upload_package_builder.rb +3 -2
- data/fastlane_core/lib/fastlane_core/itunes_transporter.rb +20 -15
- data/fastlane_core/lib/fastlane_core/keychain_importer.rb +1 -1
- data/fastlane_core/lib/fastlane_core/languages.rb +2 -2
- 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 +48 -28
- data/fastlane_core/lib/fastlane_core/provisioning_profile.rb +3 -1
- 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 +8 -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/frameit/lib/frameit/commands_generator.rb +2 -1
- data/frameit/lib/frameit/config_parser.rb +2 -2
- data/frameit/lib/frameit/device_types.rb +7 -1
- data/frameit/lib/frameit/frame_downloader.rb +2 -1
- data/gym/lib/gym/code_signing_mapping.rb +3 -3
- data/gym/lib/gym/commands_generator.rb +2 -1
- data/gym/lib/gym/error_handler.rb +8 -0
- data/gym/lib/gym/generators/build_command_generator.rb +3 -0
- data/gym/lib/gym/generators/package_command_generator.rb +4 -0
- data/gym/lib/gym/generators/package_command_generator_xcode7.rb +21 -15
- data/gym/lib/gym/options.rb +19 -3
- 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 +5 -3
- data/match/lib/match/importer.rb +9 -10
- data/match/lib/match/migrate.rb +2 -3
- data/match/lib/match/module.rb +2 -1
- data/match/lib/match/nuke.rb +19 -15
- data/match/lib/match/options.rb +4 -3
- data/match/lib/match/runner.rb +3 -4
- data/match/lib/match/spaceship_ensure.rb +3 -0
- data/match/lib/match/storage/git_storage.rb +14 -10
- 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.rb +0 -1
- data/pilot/lib/pilot/build_manager.rb +41 -15
- data/pilot/lib/pilot/commands_generator.rb +2 -1
- data/pilot/lib/pilot/manager.rb +11 -8
- data/pilot/lib/pilot/options.rb +18 -9
- data/pilot/lib/pilot/tester_exporter.rb +0 -1
- data/pilot/lib/pilot/tester_manager.rb +0 -1
- data/precheck/lib/precheck/commands_generator.rb +2 -1
- data/precheck/lib/precheck/options.rb +9 -3
- data/precheck/lib/precheck/rule_processor.rb +1 -1
- data/precheck/lib/precheck/runner.rb +14 -9
- data/produce/lib/produce/commands_generator.rb +101 -28
- data/produce/lib/produce/developer_center.rb +42 -4
- data/produce/lib/produce/options.rb +1 -1
- data/produce/lib/produce/service.rb +270 -179
- data/scan/lib/scan/commands_generator.rb +2 -1
- data/scan/lib/scan/detect_values.rb +7 -2
- data/scan/lib/scan/module.rb +4 -0
- data/scan/lib/scan/options.rb +46 -1
- data/scan/lib/scan/runner.rb +88 -3
- data/scan/lib/scan/slack_poster.rb +4 -1
- data/scan/lib/scan/test_command_generator.rb +13 -8
- 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 +111 -108
- 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 +3 -2
- data/sigh/lib/sigh/runner.rb +9 -9
- data/snapshot/lib/assets/SnapfileTemplate +3 -2
- data/snapshot/lib/assets/SnapfileTemplate.swift +2 -1
- data/snapshot/lib/assets/SnapshotHelper.swift +20 -12
- data/snapshot/lib/snapshot/commands_generator.rb +3 -1
- data/snapshot/lib/snapshot/options.rb +22 -2
- 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 +10 -5
- data/snapshot/lib/snapshot/test_command_generator.rb +18 -4
- data/snapshot/lib/snapshot/test_command_generator_base.rb +3 -1
- data/snapshot/lib/snapshot/test_command_generator_xcode_8.rb +1 -1
- data/snapshot/lib/snapshot/update.rb +1 -1
- data/spaceship/README.md +4 -14
- data/spaceship/lib/spaceship/base.rb +2 -2
- data/spaceship/lib/spaceship/client.rb +47 -29
- data/spaceship/lib/spaceship/commands_generator.rb +4 -2
- data/spaceship/lib/spaceship/connect_api.rb +6 -0
- data/spaceship/lib/spaceship/connect_api/api_client.rb +67 -9
- data/spaceship/lib/spaceship/connect_api/model.rb +1 -1
- data/spaceship/lib/spaceship/connect_api/models/age_rating_declaration.rb +39 -6
- data/spaceship/lib/spaceship/connect_api/models/app.rb +95 -55
- data/spaceship/lib/spaceship/connect_api/models/app_data_usage.rb +59 -0
- data/spaceship/lib/spaceship/connect_api/models/app_data_usage_category.rb +65 -0
- data/spaceship/lib/spaceship/connect_api/models/app_data_usage_data_protection.rb +27 -0
- data/spaceship/lib/spaceship/connect_api/models/app_data_usage_grouping.rb +18 -0
- data/spaceship/lib/spaceship/connect_api/models/app_data_usage_purposes.rb +37 -0
- data/spaceship/lib/spaceship/connect_api/models/app_data_usages_publish_state.rb +36 -0
- data/spaceship/lib/spaceship/connect_api/models/app_info.rb +26 -10
- data/spaceship/lib/spaceship/connect_api/models/app_info_localization.rb +8 -4
- data/spaceship/lib/spaceship/connect_api/models/app_preview.rb +15 -11
- data/spaceship/lib/spaceship/connect_api/models/app_preview_set.rb +18 -9
- data/spaceship/lib/spaceship/connect_api/models/app_screenshot.rb +10 -8
- data/spaceship/lib/spaceship/connect_api/models/app_screenshot_set.rb +20 -11
- data/spaceship/lib/spaceship/connect_api/models/app_store_review_attachment.rb +7 -5
- data/spaceship/lib/spaceship/connect_api/models/app_store_review_detail.rb +6 -4
- data/spaceship/lib/spaceship/connect_api/models/app_store_version.rb +62 -38
- data/spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb +27 -14
- data/spaceship/lib/spaceship/connect_api/models/app_store_version_submission.rb +3 -2
- data/spaceship/lib/spaceship/connect_api/models/beta_app_review_submission.rb +3 -2
- data/spaceship/lib/spaceship/connect_api/models/beta_feedback.rb +6 -4
- data/spaceship/lib/spaceship/connect_api/models/beta_group.rb +29 -3
- data/spaceship/lib/spaceship/connect_api/models/beta_tester.rb +15 -9
- data/spaceship/lib/spaceship/connect_api/models/build.rb +34 -17
- data/spaceship/lib/spaceship/connect_api/models/build_beta_detail.rb +4 -0
- data/spaceship/lib/spaceship/connect_api/models/build_delivery.rb +3 -2
- data/spaceship/lib/spaceship/connect_api/models/bundle_id.rb +41 -6
- data/spaceship/lib/spaceship/connect_api/models/bundle_id_capability.rb +86 -21
- data/spaceship/lib/spaceship/connect_api/models/certificate.rb +12 -8
- data/spaceship/lib/spaceship/connect_api/models/device.rb +36 -4
- data/spaceship/lib/spaceship/connect_api/models/idfa_declaration.rb +6 -4
- data/spaceship/lib/spaceship/connect_api/models/profile.rb +18 -8
- data/spaceship/lib/spaceship/connect_api/models/reset_ratings_request.rb +3 -2
- data/spaceship/lib/spaceship/connect_api/models/sandbox_tester.rb +9 -6
- data/spaceship/lib/spaceship/connect_api/models/territory.rb +3 -2
- data/spaceship/lib/spaceship/connect_api/models/user.rb +6 -4
- data/spaceship/lib/spaceship/connect_api/models/user_invitation.rb +22 -6
- data/spaceship/lib/spaceship/connect_api/provisioning/provisioning.rb +99 -2
- data/spaceship/lib/spaceship/connect_api/response.rb +3 -1
- data/spaceship/lib/spaceship/connect_api/testflight/testflight.rb +50 -0
- data/spaceship/lib/spaceship/connect_api/token.rb +15 -3
- data/spaceship/lib/spaceship/connect_api/tunes/tunes.rb +122 -2
- data/spaceship/lib/spaceship/errors.rb +19 -0
- data/spaceship/lib/spaceship/playground.rb +2 -2
- data/spaceship/lib/spaceship/spaceauth_runner.rb +38 -15
- data/spaceship/lib/spaceship/tunes/iap_detail.rb +1 -1
- data/spaceship/lib/spaceship/tunes/members.rb +1 -1
- data/spaceship/lib/spaceship/tunes/tunes_client.rb +4 -4
- data/spaceship/lib/spaceship/two_step_or_factor_client.rb +59 -33
- data/spaceship/lib/spaceship/ui.rb +2 -2
- data/spaceship/lib/spaceship/upgrade_2fa_later_client.rb +91 -0
- data/supply/lib/supply.rb +1 -1
- data/supply/lib/supply/client.rb +5 -3
- data/supply/lib/supply/commands_generator.rb +2 -1
- data/supply/lib/supply/options.rb +3 -3
- data/supply/lib/supply/uploader.rb +6 -4
- metadata +125 -93
- data/pilot/lib/pilot/features.rb +0 -0
- data/pilot/lib/pilot/tester_util.rb +0 -0
@@ -1,5 +1,3 @@
|
|
1
|
-
require 'thread'
|
2
|
-
|
3
1
|
module Fastlane
|
4
2
|
module Actions
|
5
3
|
class UploadSymbolsToCrashlyticsAction < Action
|
@@ -7,8 +5,10 @@ module Fastlane
|
|
7
5
|
require 'tmpdir'
|
8
6
|
|
9
7
|
find_binary_path(params)
|
10
|
-
|
11
|
-
|
8
|
+
unless params[:app_id]
|
9
|
+
find_gsp_path(params)
|
10
|
+
find_api_token(params)
|
11
|
+
end
|
12
12
|
|
13
13
|
if !params[:app_id] && !params[:gsp_path] && !params[:api_token]
|
14
14
|
UI.user_error!('Either Firebase Crashlytics App ID, path to GoogleService-Info.plist or legacy Fabric API key must be given.')
|
@@ -35,10 +35,11 @@ module Fastlane
|
|
35
35
|
UI.message("Using #{max_worker_threads} threads for Crashlytics dSYM upload 🏎")
|
36
36
|
end
|
37
37
|
|
38
|
-
|
39
|
-
handle_dsym(params,
|
38
|
+
worker = FastlaneCore::QueueWorker.new(max_worker_threads) do |dsym_path|
|
39
|
+
handle_dsym(params, dsym_path, max_worker_threads)
|
40
40
|
end
|
41
|
-
|
41
|
+
worker.batch_enqueue(dsym_paths)
|
42
|
+
worker.start
|
42
43
|
UI.success("Successfully uploaded dSYM files to Crashlytics 💯")
|
43
44
|
end
|
44
45
|
|
@@ -79,7 +79,6 @@ module Fastlane
|
|
79
79
|
FastlaneCore::ConfigItem.new(key: :api_host,
|
80
80
|
env_name: "SENTRY_HOST",
|
81
81
|
description: "API host url for Sentry",
|
82
|
-
is_string: true,
|
83
82
|
default_value: "https://app.getsentry.com/api/0",
|
84
83
|
optional: true),
|
85
84
|
FastlaneCore::ConfigItem.new(key: :api_key,
|
@@ -109,20 +108,14 @@ module Fastlane
|
|
109
108
|
description: "Path to your symbols file. For iOS and Mac provide path to app.dSYM.zip",
|
110
109
|
default_value: Actions.lane_context[SharedValues::DSYM_OUTPUT_PATH],
|
111
110
|
default_value_dynamic: true,
|
112
|
-
optional: true,
|
113
|
-
verify_block: proc do |value|
|
114
|
-
# validation is done in the action
|
115
|
-
end),
|
111
|
+
optional: true),
|
116
112
|
FastlaneCore::ConfigItem.new(key: :dsym_paths,
|
117
113
|
env_name: "SENTRY_DSYM_PATHS",
|
118
114
|
description: "Path to an array of your symbols file. For iOS and Mac provide path to app.dSYM.zip",
|
119
115
|
default_value: Actions.lane_context[SharedValues::DSYM_PATHS],
|
120
116
|
default_value_dynamic: true,
|
121
|
-
|
122
|
-
optional: true
|
123
|
-
verify_block: proc do |value|
|
124
|
-
# validation is done in the action
|
125
|
-
end)
|
117
|
+
type: Array,
|
118
|
+
optional: true)
|
126
119
|
]
|
127
120
|
end
|
128
121
|
|
@@ -9,10 +9,14 @@ module Fastlane
|
|
9
9
|
|
10
10
|
begin
|
11
11
|
config.load_configuration_file("Deliverfile")
|
12
|
-
config[:screenshots_path]
|
13
|
-
config[:ipa]
|
14
|
-
config[:pkg]
|
15
|
-
|
12
|
+
config[:screenshots_path] ||= Actions.lane_context[SharedValues::SNAPSHOT_SCREENSHOTS_PATH] if Actions.lane_context[SharedValues::SNAPSHOT_SCREENSHOTS_PATH]
|
13
|
+
config[:ipa] ||= Actions.lane_context[SharedValues::IPA_OUTPUT_PATH] if Actions.lane_context[SharedValues::IPA_OUTPUT_PATH]
|
14
|
+
config[:pkg] ||= Actions.lane_context[SharedValues::PKG_OUTPUT_PATH] if Actions.lane_context[SharedValues::PKG_OUTPUT_PATH]
|
15
|
+
|
16
|
+
# Only set :api_key from SharedValues if :api_key_path isn't set (conflicting options)
|
17
|
+
unless config[:api_key_path]
|
18
|
+
config[:api_key] ||= Actions.lane_context[SharedValues::APP_STORE_CONNECT_API_KEY]
|
19
|
+
end
|
16
20
|
|
17
21
|
return config if Helper.test?
|
18
22
|
Deliver::Runner.new(config).run
|
@@ -15,14 +15,19 @@ module Fastlane
|
|
15
15
|
values[:ipa] = File.expand_path(values[:ipa]) if values[:ipa]
|
16
16
|
end
|
17
17
|
|
18
|
-
if
|
18
|
+
# Only set :api_key from SharedValues if :api_key_path isn't set (conflicting options)
|
19
|
+
unless values[:api_key_path]
|
19
20
|
values[:api_key] ||= Actions.lane_context[SharedValues::APP_STORE_CONNECT_API_KEY]
|
20
21
|
end
|
21
22
|
|
22
23
|
return values if Helper.test?
|
23
24
|
|
24
25
|
if distribute_only
|
25
|
-
Pilot::BuildManager.new
|
26
|
+
build_manager = Pilot::BuildManager.new
|
27
|
+
build_manager.start(values, should_login: true)
|
28
|
+
|
29
|
+
build_manager.wait_for_build_processing_to_be_complete(false) unless values[:skip_waiting_for_build_processing]
|
30
|
+
build_manager.distribute(values) # we already have the finished config
|
26
31
|
else
|
27
32
|
Pilot::BuildManager.new.upload(values) # we already have the finished config
|
28
33
|
end
|
@@ -42,53 +42,49 @@ module Fastlane
|
|
42
42
|
|
43
43
|
def self.available_options
|
44
44
|
[
|
45
|
-
FastlaneCore::ConfigItem.new(
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
UI.user_error!("Could not parse service account json: JSON::ParseError")
|
75
|
-
end
|
76
|
-
end
|
77
|
-
),
|
45
|
+
FastlaneCore::ConfigItem.new(key: :json_key,
|
46
|
+
env_name: "SUPPLY_JSON_KEY",
|
47
|
+
short_option: "-j",
|
48
|
+
conflicting_options: [:json_key_data],
|
49
|
+
optional: true,
|
50
|
+
description: "The path to a file containing service account JSON, used to authenticate with Google",
|
51
|
+
code_gen_sensitive: true,
|
52
|
+
default_value: CredentialsManager::AppfileConfig.try_fetch_value(:json_key_file),
|
53
|
+
default_value_dynamic: true,
|
54
|
+
verify_block: proc do |value|
|
55
|
+
UI.user_error!("Could not find service account json file at path '#{File.expand_path(value)}'") unless File.exist?(File.expand_path(value))
|
56
|
+
UI.user_error!("'#{value}' doesn't seem to be a JSON file") unless FastlaneCore::Helper.json_file?(File.expand_path(value))
|
57
|
+
end),
|
58
|
+
FastlaneCore::ConfigItem.new(key: :json_key_data,
|
59
|
+
env_name: "SUPPLY_JSON_KEY_DATA",
|
60
|
+
short_option: "-c",
|
61
|
+
conflicting_options: [:json_key],
|
62
|
+
optional: true,
|
63
|
+
description: "The raw service account JSON data used to authenticate with Google",
|
64
|
+
code_gen_sensitive: true,
|
65
|
+
default_value: CredentialsManager::AppfileConfig.try_fetch_value(:json_key_data_raw),
|
66
|
+
default_value_dynamic: true,
|
67
|
+
verify_block: proc do |value|
|
68
|
+
begin
|
69
|
+
JSON.parse(value)
|
70
|
+
rescue JSON::ParserError
|
71
|
+
UI.user_error!("Could not parse service account json: JSON::ParseError")
|
72
|
+
end
|
73
|
+
end),
|
78
74
|
# stuff
|
79
75
|
FastlaneCore::ConfigItem.new(key: :root_url,
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
76
|
+
env_name: "SUPPLY_ROOT_URL",
|
77
|
+
description: "Root URL for the Google Play API. The provided URL will be used for API calls in place of https://www.googleapis.com/",
|
78
|
+
optional: true,
|
79
|
+
verify_block: proc do |value|
|
80
|
+
UI.user_error!("Could not parse URL '#{value}'") unless value =~ URI.regexp
|
81
|
+
end),
|
86
82
|
FastlaneCore::ConfigItem.new(key: :timeout,
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
83
|
+
env_name: "SUPPLY_TIMEOUT",
|
84
|
+
optional: true,
|
85
|
+
description: "Timeout for read, open, and send (in seconds)",
|
86
|
+
type: Integer,
|
87
|
+
default_value: 300)
|
92
88
|
]
|
93
89
|
end
|
94
90
|
|
@@ -28,7 +28,6 @@ module Fastlane
|
|
28
28
|
FastlaneCore::ConfigItem.new(key: :path,
|
29
29
|
env_name: "FL_VERSION_PODSPEC_PATH",
|
30
30
|
description: "You must specify the path to the podspec file",
|
31
|
-
is_string: true,
|
32
31
|
code_gen_sensitive: true,
|
33
32
|
default_value: Dir["*.podspec"].last,
|
34
33
|
default_value_dynamic: true,
|
@@ -38,7 +37,7 @@ module Fastlane
|
|
38
37
|
FastlaneCore::ConfigItem.new(key: :require_variable_prefix,
|
39
38
|
env_name: "FL_VERSION_BUMP_PODSPEC_VERSION_REQUIRE_VARIABLE_PREFIX",
|
40
39
|
description: "true by default, this is used for non CocoaPods version bumps only",
|
41
|
-
|
40
|
+
type: Boolean,
|
42
41
|
default_value: true)
|
43
42
|
]
|
44
43
|
end
|
@@ -17,7 +17,7 @@ module Fastlane
|
|
17
17
|
if installer.installed?(params[:version])
|
18
18
|
UI.success("Xcode #{params[:version]} is already installed ✨")
|
19
19
|
else
|
20
|
-
installer.install_version(params[:version], true, true, true, true)
|
20
|
+
installer.install_version(params[:version], true, true, true, true, nil, true, nil, params[:download_retry_attempts])
|
21
21
|
end
|
22
22
|
|
23
23
|
xcode = installer.installed_versions.find { |x| x.version == params[:version] }
|
@@ -49,9 +49,7 @@ module Fastlane
|
|
49
49
|
[
|
50
50
|
FastlaneCore::ConfigItem.new(key: :version,
|
51
51
|
env_name: "FL_XCODE_VERSION",
|
52
|
-
description: "The version number of the version of Xcode to install",
|
53
|
-
verify_block: proc do |value|
|
54
|
-
end),
|
52
|
+
description: "The version number of the version of Xcode to install"),
|
55
53
|
FastlaneCore::ConfigItem.new(key: :username,
|
56
54
|
short_option: "-u",
|
57
55
|
env_name: "XCODE_INSTALL_USER",
|
@@ -65,7 +63,12 @@ module Fastlane
|
|
65
63
|
optional: true,
|
66
64
|
code_gen_sensitive: true,
|
67
65
|
default_value: CredentialsManager::AppfileConfig.try_fetch_value(:team_id),
|
68
|
-
default_value_dynamic: true)
|
66
|
+
default_value_dynamic: true),
|
67
|
+
FastlaneCore::ConfigItem.new(key: :download_retry_attempts,
|
68
|
+
env_name: "XCODE_INSTALL_DOWNLOAD_RETRY_ATTEMPTS",
|
69
|
+
description: "Number of times the download will be retried in case of failure",
|
70
|
+
type: Integer,
|
71
|
+
default_value: 3)
|
69
72
|
]
|
70
73
|
end
|
71
74
|
|
@@ -243,7 +243,7 @@ module Fastlane
|
|
243
243
|
FastlaneCore::ConfigItem.new(key: :integration_number,
|
244
244
|
env_name: "FL_XCODE_SERVER_GET_ASSETS_INTEGRATION_NUMBER",
|
245
245
|
description: "Optionally you can override which integration's assets should be downloaded. If not provided, the latest integration is used",
|
246
|
-
|
246
|
+
type: Integer,
|
247
247
|
optional: true),
|
248
248
|
FastlaneCore::ConfigItem.new(key: :username,
|
249
249
|
env_name: "FL_XCODE_SERVER_GET_ASSETS_USERNAME",
|
@@ -265,13 +265,13 @@ module Fastlane
|
|
265
265
|
env_name: "FL_XCODE_SERVER_GET_ASSETS_KEEP_ALL_ASSETS",
|
266
266
|
description: "Whether to keep all assets or let the script delete everything except for the .xcarchive",
|
267
267
|
optional: true,
|
268
|
-
|
268
|
+
type: Boolean,
|
269
269
|
default_value: false),
|
270
270
|
FastlaneCore::ConfigItem.new(key: :trust_self_signed_certs,
|
271
271
|
env_name: "FL_XCODE_SERVER_GET_ASSETS_TRUST_SELF_SIGNED_CERTS",
|
272
272
|
description: "Whether to trust self-signed certs on your Xcode Server",
|
273
273
|
optional: true,
|
274
|
-
|
274
|
+
type: Boolean,
|
275
275
|
default_value: true)
|
276
276
|
]
|
277
277
|
end
|
@@ -305,12 +305,12 @@ module Fastlane
|
|
305
305
|
|
306
306
|
# Normalize some values
|
307
307
|
export_options[:teamID] = CredentialsManager::AppfileConfig.try_fetch_value(:team_id) if !export_options[:teamID] && CredentialsManager::AppfileConfig.try_fetch_value(:team_id)
|
308
|
-
export_options[:onDemandResourcesAssetPacksBaseURL] = URI.
|
308
|
+
export_options[:onDemandResourcesAssetPacksBaseURL] = Addressable::URI.encode(export_options[:onDemandResourcesAssetPacksBaseURL]) if export_options[:onDemandResourcesAssetPacksBaseURL]
|
309
309
|
if export_options[:manifest]
|
310
|
-
export_options[:manifest][:appURL] = URI.
|
311
|
-
export_options[:manifest][:displayImageURL] = URI.
|
312
|
-
export_options[:manifest][:fullSizeImageURL] = URI.
|
313
|
-
export_options[:manifest][:assetPackManifestURL] = URI.
|
310
|
+
export_options[:manifest][:appURL] = Addressable::URI.encode(export_options[:manifest][:appURL]) if export_options[:manifest][:appURL]
|
311
|
+
export_options[:manifest][:displayImageURL] = Addressable::URI.encode(export_options[:manifest][:displayImageURL]) if export_options[:manifest][:displayImageURL]
|
312
|
+
export_options[:manifest][:fullSizeImageURL] = Addressable::URI.encode(export_options[:manifest][:fullSizeImageURL]) if export_options[:manifest][:fullSizeImageURL]
|
313
|
+
export_options[:manifest][:assetPackManifestURL] = Addressable::URI.encode(export_options[:manifest][:assetPackManifestURL]) if export_options[:manifest][:assetPackManifestURL]
|
314
314
|
end
|
315
315
|
|
316
316
|
# Saves options to plist
|
@@ -23,7 +23,7 @@ module Fastlane
|
|
23
23
|
def take_off
|
24
24
|
before_import_time = Time.now
|
25
25
|
|
26
|
-
if
|
26
|
+
if ENV["FASTLANE_DISABLE_ANIMATION"].nil?
|
27
27
|
# Usually in the fastlane code base we use
|
28
28
|
#
|
29
29
|
# Helper.show_loading_indicator
|
@@ -71,6 +71,9 @@ module Fastlane
|
|
71
71
|
# Disabling colors if environment variable set
|
72
72
|
require 'fastlane_core/ui/disable_colors' if FastlaneCore::Helper.colors_disabled?
|
73
73
|
|
74
|
+
# Set interactive environment variable for spaceship (which can't require fastlane_core)
|
75
|
+
ENV["FASTLANE_IS_INTERACTIVE"] = FastlaneCore::UI.interactive?.to_s
|
76
|
+
|
74
77
|
ARGV.unshift("spaceship") if ARGV.first == "spaceauth"
|
75
78
|
tool_name = ARGV.first ? ARGV.first.downcase : nil
|
76
79
|
|
@@ -123,9 +126,9 @@ module Fastlane
|
|
123
126
|
end
|
124
127
|
|
125
128
|
# Since loading dotenv should respect additional environments passed using
|
126
|
-
# --env, we must
|
129
|
+
# --env, we must extract the arguments out of ARGV and process them before
|
127
130
|
# calling into commander. This is required since the ENV must be configured
|
128
|
-
# before running any other commands in order to
|
131
|
+
# before running any other commands in order to correctly respect variables
|
129
132
|
# like FASTLANE_HIDE_CHANGELOG and FASTLANE_DISABLE_COLORS
|
130
133
|
def load_dot_env
|
131
134
|
env_cl_param = lambda do
|
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'commander'
|
2
2
|
require 'fastlane/new_action'
|
3
|
+
require 'fastlane_core/ui/help_formatter'
|
3
4
|
|
4
5
|
HighLine.track_eof = false
|
5
6
|
|
@@ -85,7 +86,7 @@ module Fastlane
|
|
85
86
|
program :help, 'Author', 'Felix Krause <fastlane@krausefx.com>'
|
86
87
|
program :help, 'Website', 'https://fastlane.tools'
|
87
88
|
program :help, 'GitHub', 'https://github.com/fastlane/fastlane'
|
88
|
-
program :help_formatter,
|
89
|
+
program :help_formatter, FastlaneCore::HelpFormatter
|
89
90
|
|
90
91
|
global_option('--verbose') { FastlaneCore::Globals.verbose = true }
|
91
92
|
global_option('--capture_output', 'Captures the output of the current run, and generates a markdown issue template') do
|
@@ -135,7 +135,7 @@ module Fastlane
|
|
135
135
|
if options
|
136
136
|
puts(Terminal::Table.new(
|
137
137
|
title: "#{name} Options".green,
|
138
|
-
headings: ['Key', 'Description', 'Env Var', 'Default'],
|
138
|
+
headings: ['Key', 'Description', 'Env Var(s)', 'Default'],
|
139
139
|
rows: FastlaneCore::PrintTable.transform_output(options)
|
140
140
|
))
|
141
141
|
else
|
@@ -197,7 +197,7 @@ module Fastlane
|
|
197
197
|
if options.kind_of?(Array)
|
198
198
|
options.each do |current|
|
199
199
|
if current.kind_of?(FastlaneCore::ConfigItem)
|
200
|
-
rows << [current.key.to_s.yellow, current.deprecated ? current.description.red : current.description, current.
|
200
|
+
rows << [current.key.to_s.yellow, current.deprecated ? current.description.red : current.description, current.env_names.join(", "), current.help_default_value]
|
201
201
|
elsif current.kind_of?(Array)
|
202
202
|
# Legacy actions that don't use the new config manager
|
203
203
|
UI.user_error!("Invalid number of elements in this row: #{current}. Must be 2 or 3") unless [2, 3].include?(current.count)
|
@@ -44,7 +44,7 @@ module Fastlane
|
|
44
44
|
output << ""
|
45
45
|
end
|
46
46
|
|
47
|
-
output << "This README.md is auto-generated and will be re-generated every time [
|
47
|
+
output << "This README.md is auto-generated and will be re-generated every time [_fastlane_](https://fastlane.tools) is run."
|
48
48
|
output << "More information about fastlane can be found on [fastlane.tools](https://fastlane.tools)."
|
49
49
|
output << "The documentation of fastlane can be found on [docs.fastlane.tools](https://docs.fastlane.tools)."
|
50
50
|
output << ""
|
@@ -175,7 +175,7 @@ module Fastlane
|
|
175
175
|
mkdocs_yml_path = File.join(target_path, "mkdocs.yml")
|
176
176
|
raise "Could not find mkdocs.yml in #{target_path}, make sure to point to the fastlane/docs repo" unless File.exist?(mkdocs_yml_path)
|
177
177
|
mkdocs_yml = YAML.load_file(mkdocs_yml_path)
|
178
|
-
hidden_actions_array = mkdocs_yml["
|
178
|
+
hidden_actions_array = mkdocs_yml["nav"].find { |p| !p["_Actions"].nil? }
|
179
179
|
hidden_actions_array["_Actions"] = all_actions_ref_yml
|
180
180
|
File.write(mkdocs_yml_path, mkdocs_yml.to_yaml)
|
181
181
|
|
@@ -24,7 +24,13 @@ module Fastlane
|
|
24
24
|
end
|
25
25
|
|
26
26
|
def render(template)
|
27
|
-
ERB.new
|
27
|
+
# From Ruby 2.6, ERB.new takes keyword arguments and positional ones are deprecated
|
28
|
+
# https://bugs.ruby-lang.org/issues/14256
|
29
|
+
if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("2.6.0")
|
30
|
+
ERB.new(template, trim_mode: @trim_mode).result(binding)
|
31
|
+
else
|
32
|
+
ERB.new(template, nil, @trim_mode).result(binding)
|
33
|
+
end
|
28
34
|
end
|
29
35
|
end
|
30
36
|
end
|
@@ -201,13 +201,17 @@ module Fastlane
|
|
201
201
|
# First accepts hash (or named keywords) like other actions
|
202
202
|
# Otherwise uses sh method that doesn't have an interface like an action
|
203
203
|
if args.count == 1 && args.first.kind_of?(Hash)
|
204
|
-
|
205
|
-
command =
|
204
|
+
options = args.first
|
205
|
+
command = options.delete(:command)
|
206
206
|
|
207
207
|
raise ArgumentError, "sh requires :command keyword in argument" if command.nil?
|
208
|
-
|
209
|
-
|
210
|
-
|
208
|
+
log = options[:log].nil? ? true : options[:log]
|
209
|
+
FastFile.sh(*command, step_name: options[:step_name], log: log, error_callback: options[:error_callback], &b)
|
210
|
+
elsif args.count != 1 && args.last.kind_of?(Hash)
|
211
|
+
new_args = args.dup
|
212
|
+
options = new_args.pop
|
213
|
+
log = options[:log].nil? ? true : options[:log]
|
214
|
+
FastFile.sh(*new_args, step_name: options[:step_name], log: log, error_callback: options[:error_callback], &b)
|
211
215
|
else
|
212
216
|
FastFile.sh(*args, &b)
|
213
217
|
end
|
@@ -280,7 +284,7 @@ module Fastlane
|
|
280
284
|
|
281
285
|
action_launched('import_from_git')
|
282
286
|
|
283
|
-
is_eligible_for_caching = !
|
287
|
+
is_eligible_for_caching = !cache_path.nil?
|
284
288
|
|
285
289
|
UI.message("Eligible for caching") if is_eligible_for_caching
|
286
290
|
|
@@ -334,7 +338,15 @@ module Fastlane
|
|
334
338
|
UI.user_error!("No tag found matching #{version.inspect}") if checkout_param.nil?
|
335
339
|
end
|
336
340
|
|
337
|
-
|
341
|
+
if is_eligible_for_caching && version.nil?
|
342
|
+
# Update the repo if it's eligible for caching but the version isn't specified
|
343
|
+
UI.message("Fetching remote git branches and updating git repo...")
|
344
|
+
Helper.with_env_values('GIT_TERMINAL_PROMPT' => '0') do
|
345
|
+
Actions.sh("cd #{clone_folder.shellescape} && git fetch --all --quiet && git checkout #{checkout_param.shellescape} #{checkout_path} && git reset --hard && git rebase")
|
346
|
+
end
|
347
|
+
else
|
348
|
+
Actions.sh("cd #{clone_folder.shellescape} && git checkout #{checkout_param.shellescape} #{checkout_path}")
|
349
|
+
end
|
338
350
|
|
339
351
|
# Knowing that we check out all the files and directories when the
|
340
352
|
# current call is eligible for caching, we don't need to also
|