fastlane_hotfix 2.165.0 → 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 +44 -16
- 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 +124 -92
- data/pilot/lib/pilot/features.rb +0 -0
- data/pilot/lib/pilot/tester_util.rb +0 -0
data/match/lib/match/importer.rb
CHANGED
@@ -22,6 +22,9 @@ module Match
|
|
22
22
|
git_branch: params[:git_branch],
|
23
23
|
git_full_name: params[:git_full_name],
|
24
24
|
git_user_email: params[:git_user_email],
|
25
|
+
git_private_key: params[:git_private_key],
|
26
|
+
git_basic_authorization: params[:git_basic_authorization],
|
27
|
+
git_bearer_authorization: params[:git_bearer_authorization],
|
25
28
|
clone_branch_directly: params[:clone_branch_directly],
|
26
29
|
type: params[:type].to_s,
|
27
30
|
platform: params[:platform].to_s,
|
@@ -93,15 +96,17 @@ module Match
|
|
93
96
|
dest_cert_path = File.join(output_dir_certs, "#{cert_name}.cer")
|
94
97
|
dest_p12_path = File.join(output_dir_certs, "#{p12_name}.p12")
|
95
98
|
else
|
96
|
-
|
97
|
-
token = api_token(params)
|
98
|
-
if token
|
99
|
+
if (api_token = Spaceship::ConnectAPI::Token.from(hash: params[:api_key], filepath: params[:api_key_path]))
|
99
100
|
UI.message("Creating authorization token for App Store Connect API")
|
100
|
-
Spaceship::ConnectAPI.token =
|
101
|
+
Spaceship::ConnectAPI.token = api_token
|
102
|
+
elsif !Spaceship::ConnectAPI.token.nil?
|
103
|
+
UI.message("Using existing authorization token for App Store Connect API")
|
101
104
|
else
|
102
105
|
UI.message("Login to App Store Connect (#{params[:username]})")
|
103
106
|
Spaceship::ConnectAPI.login(params[:username], use_portal: true, use_tunes: false, portal_team_id: params[:team_id], team_name: params[:team_name])
|
104
107
|
end
|
108
|
+
|
109
|
+
# Need to get the cert id by comparing base64 encoded cert content with certificate content from the API responses
|
105
110
|
certs = Spaceship::ConnectAPI::Certificate.all(filter: { certificateType: certificate_type })
|
106
111
|
|
107
112
|
# Base64 encode contents to find match from API to find a cert ID
|
@@ -147,11 +152,5 @@ module Match
|
|
147
152
|
UI.user_error!("#{file_description} does not exist at path: #{file_path}") unless !file_path.nil? || optional
|
148
153
|
file_path
|
149
154
|
end
|
150
|
-
|
151
|
-
def api_token(params)
|
152
|
-
@api_token ||= Spaceship::ConnectAPI::Token.create(params[:api_key]) if params[:api_key]
|
153
|
-
@api_token ||= Spaceship::ConnectAPI::Token.from_json_file(params[:api_key_path]) if params[:api_key_path]
|
154
|
-
return @api_token
|
155
|
-
end
|
156
155
|
end
|
157
156
|
end
|
data/match/lib/match/migrate.rb
CHANGED
@@ -91,9 +91,8 @@ module Match
|
|
91
91
|
end
|
92
92
|
|
93
93
|
def api_token(params)
|
94
|
-
|
95
|
-
|
96
|
-
return @api_token
|
94
|
+
api_token = Spaceship::ConnectAPI::Token.from(hash: params[:api_key], filepath: params[:api_key_path])
|
95
|
+
return api_token
|
97
96
|
end
|
98
97
|
|
99
98
|
def ensure_parameters_are_valid(params)
|
data/match/lib/match/module.rb
CHANGED
@@ -9,7 +9,7 @@ module Match
|
|
9
9
|
DESCRIPTION = "Easily sync your certificates and profiles across your team"
|
10
10
|
|
11
11
|
def self.environments
|
12
|
-
return %w(appstore adhoc development enterprise developer_id)
|
12
|
+
return %w(appstore adhoc development enterprise developer_id mac_installer_distribution)
|
13
13
|
end
|
14
14
|
|
15
15
|
def self.storage_modes
|
@@ -21,6 +21,7 @@ module Match
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def self.cert_type_sym(type)
|
24
|
+
type = type.to_s
|
24
25
|
return :mac_installer_distribution if type == "mac_installer_distribution"
|
25
26
|
return :developer_id_installer if type == "developer_id_installer"
|
26
27
|
return :developer_id_application if type == "developer_id"
|
data/match/lib/match/nuke.rb
CHANGED
@@ -36,6 +36,11 @@ module Match
|
|
36
36
|
git_branch: params[:git_branch],
|
37
37
|
git_full_name: params[:git_full_name],
|
38
38
|
git_user_email: params[:git_user_email],
|
39
|
+
|
40
|
+
git_private_key: params[:git_private_key],
|
41
|
+
git_basic_authorization: params[:git_basic_authorization],
|
42
|
+
git_bearer_authorization: params[:git_bearer_authorization],
|
43
|
+
|
39
44
|
clone_branch_directly: params[:clone_branch_directly],
|
40
45
|
google_cloud_bucket_name: params[:google_cloud_bucket_name].to_s,
|
41
46
|
google_cloud_keys_file: params[:google_cloud_keys_file].to_s,
|
@@ -97,9 +102,11 @@ module Match
|
|
97
102
|
end
|
98
103
|
|
99
104
|
def spaceship_login
|
100
|
-
if api_token
|
105
|
+
if (api_token = Spaceship::ConnectAPI::Token.from(hash: params[:api_key], filepath: params[:api_key_path]))
|
101
106
|
UI.message("Creating authorization token for App Store Connect API")
|
102
107
|
Spaceship::ConnectAPI.token = api_token
|
108
|
+
elsif !Spaceship::ConnectAPI.token.nil?
|
109
|
+
UI.message("Using existing authorization token for App Store Connect API")
|
103
110
|
else
|
104
111
|
Spaceship::ConnectAPI.login(params[:username], use_portal: true, use_tunes: false, portal_team_id: params[:team_id], team_name: params[:team_name])
|
105
112
|
end
|
@@ -115,12 +122,6 @@ module Match
|
|
115
122
|
end
|
116
123
|
end
|
117
124
|
|
118
|
-
def api_token
|
119
|
-
@api_token ||= Spaceship::ConnectAPI::Token.create(params[:api_key]) if params[:api_key]
|
120
|
-
@api_token ||= Spaceship::ConnectAPI::Token.from_json_file(params[:api_key_path]) if params[:api_key_path]
|
121
|
-
return @api_token
|
122
|
-
end
|
123
|
-
|
124
125
|
# Collect all the certs/profiles
|
125
126
|
def prepare_list
|
126
127
|
UI.message("Fetching certificates and profiles...")
|
@@ -246,17 +247,20 @@ module Match
|
|
246
247
|
UI.success("Successfully deleted certificate")
|
247
248
|
end
|
248
249
|
|
249
|
-
if self.files.count > 0
|
250
|
-
|
251
|
-
end
|
250
|
+
files_to_delete = delete_files! if self.files.count > 0
|
251
|
+
files_to_delete ||= []
|
252
252
|
|
253
253
|
self.encryption.encrypt_files if self.encryption
|
254
254
|
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
255
|
+
if files_to_delete.count > 0
|
256
|
+
# Now we need to save all this to the storage too, if needed
|
257
|
+
message = ["[fastlane]", "Nuked", "files", "for", type.to_s].join(" ")
|
258
|
+
self.storage.save_changes!(files_to_commit: [],
|
259
|
+
files_to_delete: files_to_delete,
|
260
|
+
custom_message: message)
|
261
|
+
else
|
262
|
+
UI.message("Your storage had no files to be deleted. This happens when you run `nuke` with an empty storage. Nothing to be worried about!")
|
263
|
+
end
|
260
264
|
end
|
261
265
|
|
262
266
|
private
|
data/match/lib/match/options.rb
CHANGED
@@ -74,7 +74,7 @@ module Match
|
|
74
74
|
|
75
75
|
# App Store Connect API
|
76
76
|
FastlaneCore::ConfigItem.new(key: :api_key_path,
|
77
|
-
|
77
|
+
env_names: ["SIGH_API_KEY_PATH", "APP_STORE_CONNECT_API_KEY_PATH"],
|
78
78
|
description: "Path to your App Store Connect API Key JSON file (https://docs.fastlane.tools/app-store-connect-api/#using-fastlane-api-key-json-file)",
|
79
79
|
optional: true,
|
80
80
|
conflicting_options: [:api_key],
|
@@ -82,7 +82,7 @@ module Match
|
|
82
82
|
UI.user_error!("Couldn't find API key JSON file at path '#{value}'") unless File.exist?(value)
|
83
83
|
end),
|
84
84
|
FastlaneCore::ConfigItem.new(key: :api_key,
|
85
|
-
|
85
|
+
env_names: ["SIGH_API_KEY", "APP_STORE_CONNECT_API_KEY"],
|
86
86
|
description: "Your App Store Connect API Key information (https://docs.fastlane.tools/app-store-connect-api/#use-return-value-and-pass-in-as-an-option)",
|
87
87
|
type: Hash,
|
88
88
|
optional: true,
|
@@ -207,6 +207,7 @@ module Match
|
|
207
207
|
FastlaneCore::ConfigItem.new(key: :s3_secret_access_key,
|
208
208
|
env_name: "MATCH_S3_SECRET_ACCESS_KEY",
|
209
209
|
description: "S3 secret access key",
|
210
|
+
sensitive: true,
|
210
211
|
optional: true),
|
211
212
|
FastlaneCore::ConfigItem.new(key: :s3_bucket,
|
212
213
|
env_name: "MATCH_S3_BUCKET",
|
@@ -227,7 +228,7 @@ module Match
|
|
227
228
|
short_option: "-p",
|
228
229
|
env_name: "MATCH_KEYCHAIN_PASSWORD",
|
229
230
|
sensitive: true,
|
230
|
-
description: "This might be required the first time you access certificates on a new mac. For the login/default keychain this is your account password",
|
231
|
+
description: "This might be required the first time you access certificates on a new mac. For the login/default keychain this is your macOS account password",
|
231
232
|
optional: true),
|
232
233
|
|
233
234
|
# settings
|
data/match/lib/match/runner.rb
CHANGED
@@ -139,9 +139,8 @@ module Match
|
|
139
139
|
# rubocop:enable Metrics/PerceivedComplexity
|
140
140
|
|
141
141
|
def api_token(params)
|
142
|
-
|
143
|
-
|
144
|
-
return @api_token
|
142
|
+
api_token = Spaceship::ConnectAPI::Token.from(hash: params[:api_key], filepath: params[:api_key_path])
|
143
|
+
return api_token
|
145
144
|
end
|
146
145
|
|
147
146
|
# Used when creating a new certificate or profile
|
@@ -355,7 +354,7 @@ module Match
|
|
355
354
|
devices = Spaceship::ConnectAPI::Device.all
|
356
355
|
unless device_classes.empty?
|
357
356
|
devices = devices.select do |device|
|
358
|
-
device_classes.include?(device.device_class)
|
357
|
+
device_classes.include?(device.device_class) && device.enabled?
|
359
358
|
end
|
360
359
|
end
|
361
360
|
|
@@ -13,6 +13,9 @@ module Match
|
|
13
13
|
UI.message("Creating authorization token for App Store Connect API")
|
14
14
|
Spaceship::ConnectAPI.token = api_token
|
15
15
|
self.team_id = team_id
|
16
|
+
elsif !Spaceship::ConnectAPI.token.nil?
|
17
|
+
UI.message("Using existing authorization token for App Store Connect API")
|
18
|
+
self.team_id = team_id
|
16
19
|
else
|
17
20
|
# We'll try to manually fetch the password
|
18
21
|
# to tell the user that a password is optional
|
@@ -89,15 +89,7 @@ module Match
|
|
89
89
|
command += " -b #{self.branch.shellescape} --single-branch"
|
90
90
|
end
|
91
91
|
|
92
|
-
unless self.git_private_key.nil?
|
93
|
-
if File.file?(self.git_private_key)
|
94
|
-
ssh_add = File.expand_path(self.git_private_key).shellescape.to_s
|
95
|
-
else
|
96
|
-
UI.message("Private key file does not exist, will continue by using it as a raw key.")
|
97
|
-
ssh_add = "- <<< \"#{self.git_private_key}\""
|
98
|
-
end
|
99
|
-
command = "ssh-agent bash -c 'ssh-add #{ssh_add}; #{command}'"
|
100
|
-
end
|
92
|
+
command = command_from_private_key(command) unless self.git_private_key.nil?
|
101
93
|
|
102
94
|
UI.message("Cloning remote git repo...")
|
103
95
|
if self.branch && !self.clone_branch_directly
|
@@ -170,6 +162,16 @@ module Match
|
|
170
162
|
Dir[File.join(working_directory, "**", file_name, "*.#{file_ext}")]
|
171
163
|
end
|
172
164
|
|
165
|
+
def command_from_private_key(command)
|
166
|
+
if File.file?(self.git_private_key)
|
167
|
+
ssh_add = File.expand_path(self.git_private_key).shellescape.to_s
|
168
|
+
else
|
169
|
+
UI.message("Private key file does not exist, will continue by using it as a raw key.")
|
170
|
+
ssh_add = "- <<< \"#{self.git_private_key}\""
|
171
|
+
end
|
172
|
+
return "ssh-agent bash -c 'ssh-add #{ssh_add}; #{command}'"
|
173
|
+
end
|
174
|
+
|
173
175
|
private
|
174
176
|
|
175
177
|
# Create and checkout an specific branch in the git repo
|
@@ -231,7 +233,9 @@ module Match
|
|
231
233
|
def git_push(commands: [], commit_message: nil)
|
232
234
|
commit_message ||= generate_commit_message
|
233
235
|
commands << "git commit -m #{commit_message.shellescape}"
|
234
|
-
|
236
|
+
git_push_command = "git push origin #{self.branch.shellescape}"
|
237
|
+
git_push_command = command_from_private_key(git_push_command) unless self.git_private_key.nil?
|
238
|
+
commands << git_push_command
|
235
239
|
|
236
240
|
UI.message("Pushing changes to remote git repo...")
|
237
241
|
Helper.with_env_values('GIT_TERMINAL_PROMPT' => '0') do
|
@@ -123,8 +123,8 @@ module Match
|
|
123
123
|
end
|
124
124
|
|
125
125
|
def api_token
|
126
|
-
api_token
|
127
|
-
api_token ||= Spaceship::ConnectAPI
|
126
|
+
api_token = Spaceship::ConnectAPI::Token.from(hash: self.api_key, filepath: self.api_key_path)
|
127
|
+
api_token ||= Spaceship::ConnectAPI.token
|
128
128
|
return api_token
|
129
129
|
end
|
130
130
|
|
@@ -196,8 +196,8 @@ module Match
|
|
196
196
|
end
|
197
197
|
|
198
198
|
def api_token
|
199
|
-
api_token
|
200
|
-
api_token ||= Spaceship::ConnectAPI
|
199
|
+
api_token = Spaceship::ConnectAPI::Token.from(hash: self.api_key, filepath: self.api_key_path)
|
200
|
+
api_token ||= Spaceship::ConnectAPI.token
|
201
201
|
return api_token
|
202
202
|
end
|
203
203
|
end
|
@@ -2,6 +2,7 @@ require 'commander'
|
|
2
2
|
|
3
3
|
require 'fastlane/version'
|
4
4
|
require 'fastlane_core/configuration/configuration'
|
5
|
+
require 'fastlane_core/ui/help_formatter'
|
5
6
|
require_relative 'options'
|
6
7
|
require_relative 'manager'
|
7
8
|
|
@@ -22,7 +23,7 @@ module PEM
|
|
22
23
|
program :help, 'Author', 'Felix Krause <pem@krausefx.com>'
|
23
24
|
program :help, 'Website', 'https://fastlane.tools'
|
24
25
|
program :help, 'Documentation', 'https://docs.fastlane.tools/actions/pem/'
|
25
|
-
program :help_formatter,
|
26
|
+
program :help_formatter, FastlaneCore::HelpFormatter
|
26
27
|
|
27
28
|
global_option('--verbose') { FastlaneCore::Globals.verbose = true }
|
28
29
|
global_option('--env STRING[,STRING2]', String, 'Add environment(s) to use with `dotenv`')
|
data/pilot/lib/pilot.rb
CHANGED
@@ -31,10 +31,11 @@ module Pilot
|
|
31
31
|
platform: platform)
|
32
32
|
|
33
33
|
transporter = transporter_for_selected_team(options)
|
34
|
-
result = transporter.upload(
|
34
|
+
result = transporter.upload(package_path: package_path)
|
35
35
|
|
36
36
|
unless result
|
37
|
-
|
37
|
+
transporter_errors = transporter.displayable_errors
|
38
|
+
UI.user_error!("Error uploading ipa file: \n #{transporter_errors}")
|
38
39
|
end
|
39
40
|
|
40
41
|
UI.success("Successfully uploaded the new binary to App Store Connect")
|
@@ -90,8 +91,13 @@ module Pilot
|
|
90
91
|
|
91
92
|
def wait_for_build_processing_to_be_complete(return_when_build_appears = false)
|
92
93
|
platform = fetch_app_platform
|
93
|
-
|
94
|
-
|
94
|
+
if config[:ipa]
|
95
|
+
app_version = FastlaneCore::IpaFileAnalyser.fetch_app_version(config[:ipa])
|
96
|
+
app_build = FastlaneCore::IpaFileAnalyser.fetch_app_build(config[:ipa])
|
97
|
+
else
|
98
|
+
app_version = config[:app_version]
|
99
|
+
app_build = config[:build_number]
|
100
|
+
end
|
95
101
|
|
96
102
|
latest_build = FastlaneCore::BuildWatcher.wait_for_build_processing_to_be_complete(
|
97
103
|
app_id: app.id,
|
@@ -99,8 +105,10 @@ module Pilot
|
|
99
105
|
app_version: app_version,
|
100
106
|
build_version: app_build,
|
101
107
|
poll_interval: config[:wait_processing_interval],
|
108
|
+
timeout_duration: config[:wait_processing_timeout_duration],
|
102
109
|
return_when_build_appears: return_when_build_appears,
|
103
|
-
return_spaceship_testflight_build: false
|
110
|
+
return_spaceship_testflight_build: false,
|
111
|
+
select_latest: config[:distribute_only]
|
104
112
|
)
|
105
113
|
|
106
114
|
unless latest_build.app_version == app_version && latest_build.version == app_build
|
@@ -192,7 +200,7 @@ module Pilot
|
|
192
200
|
[
|
193
201
|
build.app_version,
|
194
202
|
build.version,
|
195
|
-
(build.beta_build_metrics || []).map(&:install_count).reduce(:+)
|
203
|
+
(build.beta_build_metrics || []).map(&:install_count).compact.reduce(:+)
|
196
204
|
]
|
197
205
|
end
|
198
206
|
|
@@ -248,9 +256,13 @@ module Pilot
|
|
248
256
|
end
|
249
257
|
end
|
250
258
|
|
251
|
-
|
252
|
-
|
253
|
-
|
259
|
+
if options[:notify_external_testers].nil?
|
260
|
+
UI.important("Using App Store Connect's default for notifying external testers (which is true) - set `notify_external_testers` for full control")
|
261
|
+
else
|
262
|
+
update_build_beta_details(build, {
|
263
|
+
auto_notify_enabled: options[:notify_external_testers]
|
264
|
+
})
|
265
|
+
end
|
254
266
|
end
|
255
267
|
|
256
268
|
def self.truncate_changelog(changelog)
|
@@ -273,9 +285,15 @@ module Pilot
|
|
273
285
|
changelog
|
274
286
|
end
|
275
287
|
|
288
|
+
def self.emoji_regex
|
289
|
+
# EmojiRegex::RGIEmoji is now preferred over EmojiRegex::Regex which is deprecated as of 3.2.0
|
290
|
+
# https://github.com/ticky/ruby-emoji-regex/releases/tag/v3.2.0
|
291
|
+
return defined?(EmojiRegex::RGIEmoji) ? EmojiRegex::RGIEmoji : EmojiRegex::Regex
|
292
|
+
end
|
293
|
+
|
276
294
|
def self.strip_emoji(changelog)
|
277
|
-
if changelog && changelog =~
|
278
|
-
changelog.gsub!(
|
295
|
+
if changelog && changelog =~ emoji_regex
|
296
|
+
changelog.gsub!(emoji_regex, "")
|
279
297
|
UI.important("Emoji symbols have been removed from the changelog, since they're not allowed by Apple.")
|
280
298
|
end
|
281
299
|
changelog
|
@@ -349,6 +367,7 @@ module Pilot
|
|
349
367
|
# If there are fewer than two teams, don't infer the provider.
|
350
368
|
def transporter_for_selected_team(options)
|
351
369
|
# Use JWT auth
|
370
|
+
api_token = Spaceship::ConnectAPI.token
|
352
371
|
unless api_token.nil?
|
353
372
|
api_token.refresh! if api_token.expired?
|
354
373
|
return FastlaneCore::ItunesTransporter.new(nil, nil, false, nil, api_token.text)
|
@@ -417,14 +436,21 @@ module Pilot
|
|
417
436
|
|
418
437
|
UI.important("Export compliance has been set to '#{uses_non_exempt_encryption}'. Need to wait for build to finishing processing again...")
|
419
438
|
UI.important("Set 'ITSAppUsesNonExemptEncryption' in the 'Info.plist' to skip this step and speed up the submission")
|
420
|
-
|
439
|
+
|
440
|
+
loop do
|
441
|
+
build = Spaceship::ConnectAPI::Build.get(build_id: uploaded_build.id)
|
442
|
+
return build unless build.missing_export_compliance?
|
443
|
+
|
444
|
+
UI.message("Waiting for build #{uploaded_build.id} to process export compliance")
|
445
|
+
sleep(5)
|
446
|
+
end
|
421
447
|
else
|
422
448
|
return uploaded_build
|
423
449
|
end
|
424
450
|
end
|
425
451
|
|
426
452
|
def update_review_detail(build, info)
|
427
|
-
info = info.
|
453
|
+
info = info.transform_keys(&:to_sym)
|
428
454
|
|
429
455
|
attributes = {}
|
430
456
|
attributes[:contactEmail] = info[:contact_email] if info.key?(:contact_email)
|
@@ -440,7 +466,7 @@ module Pilot
|
|
440
466
|
end
|
441
467
|
|
442
468
|
def update_localized_app_review(build, info_by_lang, default_info: nil)
|
443
|
-
info_by_lang = info_by_lang.
|
469
|
+
info_by_lang = info_by_lang.transform_keys(&:to_sym)
|
444
470
|
|
445
471
|
if default_info
|
446
472
|
info_by_lang.delete(:default)
|
@@ -486,7 +512,7 @@ module Pilot
|
|
486
512
|
end
|
487
513
|
|
488
514
|
def update_localized_build_review(build, info_by_lang, default_info: nil)
|
489
|
-
info_by_lang = info_by_lang.
|
515
|
+
info_by_lang = info_by_lang.transform_keys(&:to_sym)
|
490
516
|
|
491
517
|
if default_info
|
492
518
|
info_by_lang.delete(:default)
|
@@ -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 'tester_importer'
|
6
7
|
require_relative 'tester_exporter'
|
@@ -51,7 +52,7 @@ module Pilot
|
|
51
52
|
program :help, "Author", "Felix Krause <pilot@krausefx.com>"
|
52
53
|
program :help, "Website", "https://fastlane.tools"
|
53
54
|
program :help, "Documentation", "https://docs.fastlane.tools/actions/pilot/"
|
54
|
-
program :help_formatter,
|
55
|
+
program :help_formatter, FastlaneCore::HelpFormatter
|
55
56
|
|
56
57
|
global_option("--verbose") { FastlaneCore::Globals.verbose = true }
|
57
58
|
|