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
@@ -13,7 +13,7 @@ module Deliver
|
|
13
13
|
|
14
14
|
[
|
15
15
|
FastlaneCore::ConfigItem.new(key: :api_key_path,
|
16
|
-
|
16
|
+
env_names: ["DELIVER_API_KEY_PATH", "APP_STORE_CONNECT_API_KEY_PATH"],
|
17
17
|
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)",
|
18
18
|
optional: true,
|
19
19
|
conflicting_options: [:api_key],
|
@@ -21,8 +21,8 @@ module Deliver
|
|
21
21
|
UI.user_error!("Couldn't find API key JSON file at path '#{value}'") unless File.exist?(value)
|
22
22
|
end),
|
23
23
|
FastlaneCore::ConfigItem.new(key: :api_key,
|
24
|
-
|
25
|
-
description: "Your App Store Connect API Key information (https://docs.fastlane.tools/app-store-connect-api/#
|
24
|
+
env_names: ["DELIVER_API_KEY", "APP_STORE_CONNECT_API_KEY"],
|
25
|
+
description: "Your App Store Connect API Key information (https://docs.fastlane.tools/app-store-connect-api/#using-fastlane-api-key-hash-option)",
|
26
26
|
type: Hash,
|
27
27
|
optional: true,
|
28
28
|
sensitive: true,
|
@@ -32,6 +32,7 @@ module Deliver
|
|
32
32
|
short_option: "-u",
|
33
33
|
env_name: "DELIVER_USERNAME",
|
34
34
|
description: "Your Apple ID Username",
|
35
|
+
optional: true,
|
35
36
|
default_value: user,
|
36
37
|
default_value_dynamic: true),
|
37
38
|
FastlaneCore::ConfigItem.new(key: :app_identifier,
|
@@ -108,11 +109,11 @@ module Deliver
|
|
108
109
|
default_value: false,
|
109
110
|
env_name: "DELIVER_EDIT_LIVE",
|
110
111
|
description: "Modify live metadata, this option disables ipa upload and screenshot upload",
|
111
|
-
|
112
|
+
type: Boolean),
|
112
113
|
FastlaneCore::ConfigItem.new(key: :use_live_version,
|
113
114
|
env_name: "DELIVER_USE_LIVE_VERSION",
|
114
115
|
description: "Force usage of live version rather than edit version",
|
115
|
-
|
116
|
+
type: Boolean,
|
116
117
|
default_value: false),
|
117
118
|
|
118
119
|
# paths
|
@@ -131,22 +132,22 @@ module Deliver
|
|
131
132
|
FastlaneCore::ConfigItem.new(key: :skip_binary_upload,
|
132
133
|
env_name: "DELIVER_SKIP_BINARY_UPLOAD",
|
133
134
|
description: "Skip uploading an ipa or pkg to App Store Connect",
|
134
|
-
|
135
|
+
type: Boolean,
|
135
136
|
default_value: false),
|
136
137
|
FastlaneCore::ConfigItem.new(key: :skip_screenshots,
|
137
138
|
env_name: "DELIVER_SKIP_SCREENSHOTS",
|
138
139
|
description: "Don't upload the screenshots",
|
139
|
-
|
140
|
+
type: Boolean,
|
140
141
|
default_value: false),
|
141
142
|
FastlaneCore::ConfigItem.new(key: :skip_metadata,
|
142
143
|
env_name: "DELIVER_SKIP_METADATA",
|
143
144
|
description: "Don't upload the metadata (e.g. title, description). This will still upload screenshots",
|
144
|
-
|
145
|
+
type: Boolean,
|
145
146
|
default_value: false),
|
146
147
|
FastlaneCore::ConfigItem.new(key: :skip_app_version_update,
|
147
148
|
env_name: "DELIVER_SKIP_APP_VERSION_UPDATE",
|
148
149
|
description: "Don’t create or update the app version that is being prepared for submission",
|
149
|
-
|
150
|
+
type: Boolean,
|
150
151
|
default_value: false),
|
151
152
|
|
152
153
|
# how to operate
|
@@ -154,22 +155,28 @@ module Deliver
|
|
154
155
|
short_option: "-f",
|
155
156
|
env_name: "DELIVER_FORCE",
|
156
157
|
description: "Skip verification of HTML preview file",
|
157
|
-
|
158
|
+
type: Boolean,
|
158
159
|
default_value: false),
|
159
160
|
FastlaneCore::ConfigItem.new(key: :overwrite_screenshots,
|
160
161
|
env_name: "DELIVER_OVERWRITE_SCREENSHOTS",
|
161
162
|
description: "Clear all previously uploaded screenshots before uploading the new ones",
|
162
|
-
|
163
|
+
type: Boolean,
|
164
|
+
default_value: false),
|
165
|
+
FastlaneCore::ConfigItem.new(key: :sync_screenshots,
|
166
|
+
env_name: "DELIVER_SYNC_SCREENSHOTS",
|
167
|
+
description: "Sync screenshots with local ones. This is currently beta option" \
|
168
|
+
"so set true to 'FASTLANE_ENABLE_BETA_DELIVER_SYNC_SCREENSHOTS' environment variable as well",
|
169
|
+
type: Boolean,
|
163
170
|
default_value: false),
|
164
171
|
FastlaneCore::ConfigItem.new(key: :submit_for_review,
|
165
172
|
env_name: "DELIVER_SUBMIT_FOR_REVIEW",
|
166
173
|
description: "Submit the new version for Review after uploading everything",
|
167
|
-
|
174
|
+
type: Boolean,
|
168
175
|
default_value: false),
|
169
176
|
FastlaneCore::ConfigItem.new(key: :reject_if_possible,
|
170
177
|
env_name: "DELIVER_REJECT_IF_POSSIBLE",
|
171
178
|
description: "Rejects the previously submitted build if it's in a state where it's possible",
|
172
|
-
|
179
|
+
type: Boolean,
|
173
180
|
default_value: false),
|
174
181
|
|
175
182
|
# release
|
@@ -197,13 +204,13 @@ module Deliver
|
|
197
204
|
env_name: "DELIVER_PHASED_RELEASE",
|
198
205
|
description: "Enable the phased release feature of iTC",
|
199
206
|
optional: true,
|
200
|
-
|
207
|
+
type: Boolean,
|
201
208
|
default_value: false),
|
202
209
|
FastlaneCore::ConfigItem.new(key: :reset_ratings,
|
203
210
|
env_name: "DELIVER_RESET_RATINGS",
|
204
211
|
description: "Reset the summary rating when you release a new version of the application",
|
205
212
|
optional: true,
|
206
|
-
|
213
|
+
type: Boolean,
|
207
214
|
default_value: false),
|
208
215
|
|
209
216
|
# other app configuration
|
@@ -211,13 +218,12 @@ module Deliver
|
|
211
218
|
short_option: "-r",
|
212
219
|
env_name: "DELIVER_PRICE_TIER",
|
213
220
|
description: "The price tier of this application",
|
214
|
-
|
221
|
+
type: Integer,
|
215
222
|
optional: true),
|
216
223
|
FastlaneCore::ConfigItem.new(key: :app_rating_config_path,
|
217
224
|
short_option: "-g",
|
218
225
|
env_name: "DELIVER_APP_RATING_CONFIG_PATH",
|
219
226
|
description: "Path to the app rating's config",
|
220
|
-
is_string: true,
|
221
227
|
optional: true,
|
222
228
|
verify_block: proc do |value|
|
223
229
|
UI.user_error!("Could not find config file at path '#{File.expand_path(value)}'") unless File.exist?(value)
|
@@ -226,7 +232,6 @@ module Deliver
|
|
226
232
|
FastlaneCore::ConfigItem.new(key: :submission_information,
|
227
233
|
short_option: "-b",
|
228
234
|
description: "Extra information for the submission (e.g. compliance specifications, IDFA settings)",
|
229
|
-
is_string: false,
|
230
235
|
type: Hash,
|
231
236
|
optional: true),
|
232
237
|
|
@@ -236,7 +241,7 @@ module Deliver
|
|
236
241
|
env_name: "DELIVER_TEAM_ID",
|
237
242
|
description: "The ID of your App Store Connect team if you're in multiple teams",
|
238
243
|
optional: true,
|
239
|
-
|
244
|
+
skip_type_validation: true, # as we also allow integers, which we convert to strings anyway
|
240
245
|
code_gen_sensitive: true,
|
241
246
|
default_value: CredentialsManager::AppfileConfig.try_fetch_value(:itc_team_id),
|
242
247
|
default_value_dynamic: true,
|
@@ -259,7 +264,6 @@ module Deliver
|
|
259
264
|
env_name: "DELIVER_DEV_PORTAL_TEAM_ID",
|
260
265
|
description: "The short ID of your Developer Portal team, if you're in multiple teams. Different from your iTC team ID!",
|
261
266
|
optional: true,
|
262
|
-
is_string: true,
|
263
267
|
code_gen_sensitive: true,
|
264
268
|
default_value: CredentialsManager::AppfileConfig.try_fetch_value(:team_id),
|
265
269
|
default_value_dynamic: true,
|
@@ -277,7 +281,7 @@ module Deliver
|
|
277
281
|
verify_block: proc do |value|
|
278
282
|
ENV["FASTLANE_TEAM_NAME"] = value.to_s
|
279
283
|
end),
|
280
|
-
# rubocop:disable
|
284
|
+
# rubocop:disable Layout/LineLength
|
281
285
|
FastlaneCore::ConfigItem.new(key: :itc_provider,
|
282
286
|
env_name: "DELIVER_ITC_PROVIDER",
|
283
287
|
description: "The provider short name to be used with the iTMSTransporter to identify your team. This value will override the automatically detected provider short name. To get provider short name run `pathToXcode.app/Contents/Applications/Application\\ Loader.app/Contents/itms/bin/iTMSTransporter -m provider -u 'USERNAME' -p 'PASSWORD' -account_type itunes_connect -v off`. The short names of providers should be listed in the second column",
|
@@ -285,20 +289,20 @@ module Deliver
|
|
285
289
|
code_gen_sensitive: true,
|
286
290
|
default_value: CredentialsManager::AppfileConfig.try_fetch_value(:itc_provider),
|
287
291
|
default_value_dynamic: true),
|
288
|
-
# rubocop:enable
|
292
|
+
# rubocop:enable Layout/LineLength
|
289
293
|
|
290
294
|
# precheck
|
291
295
|
FastlaneCore::ConfigItem.new(key: :run_precheck_before_submit,
|
292
296
|
short_option: "-x",
|
293
297
|
env_name: "DELIVER_RUN_PRECHECK_BEFORE_SUBMIT",
|
294
298
|
description: "Run precheck before submitting to app review",
|
295
|
-
|
299
|
+
type: Boolean,
|
296
300
|
default_value: true),
|
297
301
|
FastlaneCore::ConfigItem.new(key: :precheck_default_rule_level,
|
298
302
|
short_option: "-d",
|
299
303
|
env_name: "DELIVER_PRECHECK_DEFAULT_RULE_LEVEL",
|
300
304
|
description: "The default precheck rule level unless otherwise configured",
|
301
|
-
|
305
|
+
type: Symbol,
|
302
306
|
default_value: :warn),
|
303
307
|
|
304
308
|
# App Metadata
|
@@ -306,7 +310,6 @@ module Deliver
|
|
306
310
|
env_name: "DELIVER_INDIVUDAL_METADATA_ITEMS",
|
307
311
|
description: "An array of localized metadata items to upload individually by language so that errors can be identified. E.g. ['name', 'keywords', 'description']. Note: slow",
|
308
312
|
deprecated: "Removed after the migration to the new App Store Connect API in June 2020",
|
309
|
-
is_string: false,
|
310
313
|
type: Array,
|
311
314
|
optional: true),
|
312
315
|
|
@@ -326,66 +329,56 @@ module Deliver
|
|
326
329
|
FastlaneCore::ConfigItem.new(key: :copyright,
|
327
330
|
env_name: "DELIVER_COPYRIGHT",
|
328
331
|
description: "Metadata: The copyright notice",
|
329
|
-
optional: true,
|
330
|
-
is_string: true),
|
332
|
+
optional: true),
|
331
333
|
FastlaneCore::ConfigItem.new(key: :primary_category,
|
332
334
|
env_name: "DELIVER_PRIMARY_CATEGORY",
|
333
335
|
description: "Metadata: The english name of the primary category (e.g. `Business`, `Books`)",
|
334
|
-
optional: true,
|
335
|
-
is_string: true),
|
336
|
+
optional: true),
|
336
337
|
FastlaneCore::ConfigItem.new(key: :secondary_category,
|
337
338
|
env_name: "DELIVER_SECONDARY_CATEGORY",
|
338
339
|
description: "Metadata: The english name of the secondary category (e.g. `Business`, `Books`)",
|
339
|
-
optional: true,
|
340
|
-
is_string: true),
|
340
|
+
optional: true),
|
341
341
|
FastlaneCore::ConfigItem.new(key: :primary_first_sub_category,
|
342
342
|
env_name: "DELIVER_PRIMARY_FIRST_SUB_CATEGORY",
|
343
343
|
description: "Metadata: The english name of the primary first sub category (e.g. `Educational`, `Puzzle`)",
|
344
|
-
optional: true,
|
345
|
-
is_string: true),
|
344
|
+
optional: true),
|
346
345
|
FastlaneCore::ConfigItem.new(key: :primary_second_sub_category,
|
347
346
|
env_name: "DELIVER_PRIMARY_SECOND_SUB_CATEGORY",
|
348
347
|
description: "Metadata: The english name of the primary second sub category (e.g. `Educational`, `Puzzle`)",
|
349
|
-
optional: true,
|
350
|
-
is_string: true),
|
348
|
+
optional: true),
|
351
349
|
FastlaneCore::ConfigItem.new(key: :secondary_first_sub_category,
|
352
350
|
env_name: "DELIVER_SECONDARY_FIRST_SUB_CATEGORY",
|
353
351
|
description: "Metadata: The english name of the secondary first sub category (e.g. `Educational`, `Puzzle`)",
|
354
|
-
optional: true,
|
355
|
-
is_string: true),
|
352
|
+
optional: true),
|
356
353
|
FastlaneCore::ConfigItem.new(key: :secondary_second_sub_category,
|
357
354
|
env_name: "DELIVER_SECONDARY_SECOND_SUB_CATEGORY",
|
358
355
|
description: "Metadata: The english name of the secondary second sub category (e.g. `Educational`, `Puzzle`)",
|
359
|
-
optional: true,
|
360
|
-
is_string: true),
|
356
|
+
optional: true),
|
361
357
|
FastlaneCore::ConfigItem.new(key: :trade_representative_contact_information,
|
362
358
|
description: "Metadata: A hash containing the trade representative contact information",
|
363
359
|
optional: true,
|
364
|
-
|
360
|
+
deprecated: "This is no longer used by App Store Connect",
|
365
361
|
type: Hash),
|
366
362
|
FastlaneCore::ConfigItem.new(key: :app_review_information,
|
367
363
|
description: "Metadata: A hash containing the review information",
|
368
364
|
optional: true,
|
369
|
-
is_string: false,
|
370
365
|
type: Hash),
|
371
366
|
FastlaneCore::ConfigItem.new(key: :app_review_attachment_file,
|
372
367
|
env_name: "DELIVER_APP_REVIEW_ATTACHMENT_FILE",
|
373
368
|
description: "Metadata: Path to the app review attachment file",
|
374
|
-
optional: true,
|
375
|
-
is_string: true),
|
369
|
+
optional: true),
|
376
370
|
# Localised
|
377
371
|
FastlaneCore::ConfigItem.new(key: :description,
|
378
372
|
description: "Metadata: The localised app description",
|
379
373
|
optional: true,
|
380
|
-
|
374
|
+
type: Hash),
|
381
375
|
FastlaneCore::ConfigItem.new(key: :name,
|
382
376
|
description: "Metadata: The localised app name",
|
383
377
|
optional: true,
|
384
|
-
|
378
|
+
type: Hash),
|
385
379
|
FastlaneCore::ConfigItem.new(key: :subtitle,
|
386
380
|
description: "Metadata: The localised app subtitle",
|
387
381
|
optional: true,
|
388
|
-
is_string: false,
|
389
382
|
type: Hash,
|
390
383
|
verify_block: proc do |value|
|
391
384
|
UI.user_error!(":subtitle must be a hash, with the language being the key") unless value.kind_of?(Hash)
|
@@ -393,7 +386,6 @@ module Deliver
|
|
393
386
|
FastlaneCore::ConfigItem.new(key: :keywords,
|
394
387
|
description: "Metadata: An array of localised keywords",
|
395
388
|
optional: true,
|
396
|
-
is_string: false,
|
397
389
|
type: Hash,
|
398
390
|
verify_block: proc do |value|
|
399
391
|
UI.user_error!(":keywords must be a hash, with the language being the key") unless value.kind_of?(Hash)
|
@@ -408,7 +400,6 @@ module Deliver
|
|
408
400
|
FastlaneCore::ConfigItem.new(key: :promotional_text,
|
409
401
|
description: "Metadata: An array of localised promotional texts",
|
410
402
|
optional: true,
|
411
|
-
is_string: false,
|
412
403
|
type: Hash,
|
413
404
|
verify_block: proc do |value|
|
414
405
|
UI.user_error!(":keywords must be a hash, with the language being the key") unless value.kind_of?(Hash)
|
@@ -416,23 +407,23 @@ module Deliver
|
|
416
407
|
FastlaneCore::ConfigItem.new(key: :release_notes,
|
417
408
|
description: "Metadata: Localised release notes for this version",
|
418
409
|
optional: true,
|
419
|
-
|
410
|
+
type: Hash),
|
420
411
|
FastlaneCore::ConfigItem.new(key: :privacy_url,
|
421
412
|
description: "Metadata: Localised privacy url",
|
422
413
|
optional: true,
|
423
|
-
|
414
|
+
type: Hash),
|
424
415
|
FastlaneCore::ConfigItem.new(key: :apple_tv_privacy_policy,
|
425
416
|
description: "Metadata: Localised Apple TV privacy policy text",
|
426
417
|
optional: true,
|
427
|
-
|
418
|
+
type: Hash),
|
428
419
|
FastlaneCore::ConfigItem.new(key: :support_url,
|
429
420
|
description: "Metadata: Localised support url",
|
430
421
|
optional: true,
|
431
|
-
|
422
|
+
type: Hash),
|
432
423
|
FastlaneCore::ConfigItem.new(key: :marketing_url,
|
433
424
|
description: "Metadata: Localised marketing url",
|
434
425
|
optional: true,
|
435
|
-
|
426
|
+
type: Hash),
|
436
427
|
# The verify_block has been removed from here and verification now happens in Deliver::DetectValues
|
437
428
|
# Verification needed Spaceship::Tunes.client which required the Deliver::Runner to already by started
|
438
429
|
FastlaneCore::ConfigItem.new(key: :languages,
|
@@ -444,11 +435,11 @@ module Deliver
|
|
444
435
|
env_name: "DELIVER_IGNORE_LANGUAGE_DIRECTORY_VALIDATION",
|
445
436
|
description: "Ignore errors when invalid languages are found in metadata and screenshot directories",
|
446
437
|
default_value: false,
|
447
|
-
|
438
|
+
type: Boolean),
|
448
439
|
FastlaneCore::ConfigItem.new(key: :precheck_include_in_app_purchases,
|
449
440
|
env_name: "PRECHECK_INCLUDE_IN_APP_PURCHASES",
|
450
441
|
description: "Should precheck check in-app purchases?",
|
451
|
-
|
442
|
+
type: Boolean,
|
452
443
|
optional: true,
|
453
444
|
default_value: true),
|
454
445
|
|
@@ -457,7 +448,8 @@ module Deliver
|
|
457
448
|
short_option: "-p",
|
458
449
|
env_name: "DELIVER_APP_ID",
|
459
450
|
description: "The (spaceship) app ID of the app you want to use/modify",
|
460
|
-
|
451
|
+
optional: true,
|
452
|
+
type: Integer)
|
461
453
|
]
|
462
454
|
end
|
463
455
|
end
|
@@ -10,6 +10,7 @@ require_relative 'submit_for_review'
|
|
10
10
|
require_relative 'upload_price_tier'
|
11
11
|
require_relative 'upload_metadata'
|
12
12
|
require_relative 'upload_screenshots'
|
13
|
+
require_relative 'sync_screenshots'
|
13
14
|
require_relative 'detect_values'
|
14
15
|
|
15
16
|
module Deliver
|
@@ -26,10 +27,16 @@ module Deliver
|
|
26
27
|
end
|
27
28
|
|
28
29
|
def login
|
29
|
-
if api_token
|
30
|
+
if (api_token = Spaceship::ConnectAPI::Token.from(hash: options[:api_key], filepath: options[:api_key_path]))
|
30
31
|
UI.message("Creating authorization token for App Store Connect API")
|
31
32
|
Spaceship::ConnectAPI.token = api_token
|
33
|
+
elsif !Spaceship::ConnectAPI.token.nil?
|
34
|
+
UI.message("Using existing authorization token for App Store Connect API")
|
32
35
|
else
|
36
|
+
# Username is now optional since addition of App Store Connect API Key
|
37
|
+
# Force asking for username to prompt user if not already set
|
38
|
+
options.fetch(:username, force_ask: true)
|
39
|
+
|
33
40
|
# Team selection passed though FASTLANE_TEAM_ID and FASTLANE_TEAM_NAME environment variables
|
34
41
|
# Prompts select team if multiple teams and none specified
|
35
42
|
UI.message("Login to App Store Connect (#{options[:username]})")
|
@@ -38,12 +45,6 @@ module Deliver
|
|
38
45
|
end
|
39
46
|
end
|
40
47
|
|
41
|
-
def api_token
|
42
|
-
@api_token ||= Spaceship::ConnectAPI::Token.create(options[:api_key]) if options[:api_key]
|
43
|
-
@api_token ||= Spaceship::ConnectAPI::Token.from_json_file(options[:api_key_path]) if options[:api_key_path]
|
44
|
-
return @api_token
|
45
|
-
end
|
46
|
-
|
47
48
|
def run
|
48
49
|
verify_version if options[:app_version].to_s.length > 0 && !options[:skip_app_version_update]
|
49
50
|
|
@@ -83,7 +84,7 @@ module Deliver
|
|
83
84
|
|
84
85
|
if options[:api_key] || options[:api_key_path]
|
85
86
|
if options[:precheck_include_in_app_purchases]
|
86
|
-
UI.user_error!("Precheck cannot check In-app purchases with the App Store Connect API Key (yet). Exclude In-app purchases from precheck or use Apple ID login")
|
87
|
+
UI.user_error!("Precheck cannot check In-app purchases with the App Store Connect API Key (yet). Exclude In-app purchases from precheck, disable the precheck step in your build step, or use Apple ID login")
|
87
88
|
end
|
88
89
|
|
89
90
|
precheck_options[:api_key] = options[:api_key]
|
@@ -114,7 +115,7 @@ module Deliver
|
|
114
115
|
app_version = options[:app_version]
|
115
116
|
UI.message("Making sure the latest version on App Store Connect matches '#{app_version}'...")
|
116
117
|
|
117
|
-
app =
|
118
|
+
app = Deliver.cache[:app]
|
118
119
|
|
119
120
|
platform = Spaceship::ConnectAPI::Platform.map(options[:platform])
|
120
121
|
changed = app.ensure_version!(app_version, platform: platform)
|
@@ -143,7 +144,14 @@ module Deliver
|
|
143
144
|
|
144
145
|
# Commit
|
145
146
|
upload_metadata.upload(options)
|
146
|
-
|
147
|
+
|
148
|
+
if options[:sync_screenshots]
|
149
|
+
sync_screenshots = SyncScreenshots.new(app: Deliver.cache[:app], platform: Spaceship::ConnectAPI::Platform.map(options[:platform]))
|
150
|
+
sync_screenshots.sync(screenshots)
|
151
|
+
else
|
152
|
+
upload_screenshots.upload(options, screenshots)
|
153
|
+
end
|
154
|
+
|
147
155
|
UploadPriceTier.new.upload(options)
|
148
156
|
end
|
149
157
|
|
@@ -163,14 +171,14 @@ module Deliver
|
|
163
171
|
|
164
172
|
if upload_ipa
|
165
173
|
package_path = FastlaneCore::IpaUploadPackageBuilder.new.generate(
|
166
|
-
app_id:
|
174
|
+
app_id: Deliver.cache[:app].id,
|
167
175
|
ipa_path: options[:ipa],
|
168
176
|
package_path: "/tmp",
|
169
177
|
platform: options[:platform]
|
170
178
|
)
|
171
179
|
elsif upload_pkg
|
172
180
|
package_path = FastlaneCore::PkgUploadPackageBuilder.new.generate(
|
173
|
-
app_id:
|
181
|
+
app_id: Deliver.cache[:app].id,
|
174
182
|
pkg_path: options[:pkg],
|
175
183
|
package_path: "/tmp",
|
176
184
|
platform: options[:platform]
|
@@ -178,12 +186,16 @@ module Deliver
|
|
178
186
|
end
|
179
187
|
|
180
188
|
transporter = transporter_for_selected_team
|
181
|
-
result = transporter.upload(
|
182
|
-
|
189
|
+
result = transporter.upload(package_path: package_path)
|
190
|
+
|
191
|
+
unless result
|
192
|
+
transporter_errors = transporter.displayable_errors
|
193
|
+
UI.user_error!("Error uploading ipa file: \n #{transporter_errors}")
|
194
|
+
end
|
183
195
|
end
|
184
196
|
|
185
197
|
def reject_version_if_possible
|
186
|
-
app =
|
198
|
+
app = Deliver.cache[:app]
|
187
199
|
platform = Spaceship::ConnectAPI::Platform.map(options[:platform])
|
188
200
|
if app.reject_version_if_possible!(platform: platform)
|
189
201
|
UI.success("Successfully rejected previous version!")
|
@@ -202,6 +214,7 @@ module Deliver
|
|
202
214
|
# If there are fewer than two teams, don't infer the provider.
|
203
215
|
def transporter_for_selected_team
|
204
216
|
# Use JWT auth
|
217
|
+
api_token = Spaceship::ConnectAPI.token
|
205
218
|
unless api_token.nil?
|
206
219
|
api_token.refresh! if api_token.expired?
|
207
220
|
return FastlaneCore::ItunesTransporter.new(nil, nil, false, nil, api_token.text)
|
@@ -0,0 +1,62 @@
|
|
1
|
+
require 'spaceship/connect_api/models/app_screenshot'
|
2
|
+
require 'spaceship/connect_api/models/app_screenshot_set'
|
3
|
+
|
4
|
+
require_relative 'app_screenshot'
|
5
|
+
|
6
|
+
module Deliver
|
7
|
+
# This clsas enables you to compare equality between different representations of the screenshots
|
8
|
+
# in the standard API `Array#-` that requires objects to implements `eql?` and `hash`.
|
9
|
+
class ScreenshotComparable
|
10
|
+
# A unique key value that is consist of locale, filename, and checksum.
|
11
|
+
attr_reader :key
|
12
|
+
|
13
|
+
# A hash object that contains the source data of this representation class
|
14
|
+
attr_reader :context
|
15
|
+
|
16
|
+
def self.create_from_local(screenshot:, app_screenshot_set:)
|
17
|
+
raise ArgumentError unless screenshot.kind_of?(Deliver::AppScreenshot)
|
18
|
+
raise ArgumentError unless app_screenshot_set.kind_of?(Spaceship::ConnectAPI::AppScreenshotSet)
|
19
|
+
|
20
|
+
new(
|
21
|
+
path: "#{screenshot.language}/#{File.basename(screenshot.path)}",
|
22
|
+
checksum: calculate_checksum(screenshot.path),
|
23
|
+
context: {
|
24
|
+
screenshot: screenshot,
|
25
|
+
app_screenshot_set: app_screenshot_set
|
26
|
+
}
|
27
|
+
)
|
28
|
+
end
|
29
|
+
|
30
|
+
def self.create_from_remote(app_screenshot:, locale:)
|
31
|
+
raise ArgumentError unless app_screenshot.kind_of?(Spaceship::ConnectAPI::AppScreenshot)
|
32
|
+
raise ArgumentError unless locale.kind_of?(String)
|
33
|
+
|
34
|
+
new(
|
35
|
+
path: "#{locale}/#{app_screenshot.file_name}",
|
36
|
+
checksum: app_screenshot.source_file_checksum,
|
37
|
+
context: {
|
38
|
+
app_screenshot: app_screenshot,
|
39
|
+
locale: locale
|
40
|
+
}
|
41
|
+
)
|
42
|
+
end
|
43
|
+
|
44
|
+
def self.calculate_checksum(path)
|
45
|
+
bytes = File.binread(path)
|
46
|
+
Digest::MD5.hexdigest(bytes)
|
47
|
+
end
|
48
|
+
|
49
|
+
def initialize(path:, checksum:, context:)
|
50
|
+
@key = "#{path}/#{checksum}"
|
51
|
+
@context = context
|
52
|
+
end
|
53
|
+
|
54
|
+
def eql?(other)
|
55
|
+
key == other.key
|
56
|
+
end
|
57
|
+
|
58
|
+
def hash
|
59
|
+
key.hash
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
@@ -1,4 +1,3 @@
|
|
1
|
-
require 'open-uri'
|
2
1
|
require 'spaceship/tunes/tunes'
|
3
2
|
|
4
3
|
require_relative 'module'
|
@@ -40,7 +39,7 @@ module Deliver
|
|
40
39
|
# This method takes care of creating a new 'deliver' folder, containing the app metadata
|
41
40
|
# and screenshots folders
|
42
41
|
def generate_deliver_file(deliver_path, options)
|
43
|
-
app =
|
42
|
+
app = Deliver.cache[:app]
|
44
43
|
|
45
44
|
platform = Spaceship::ConnectAPI::Platform.map(options[:platform])
|
46
45
|
v = app.get_latest_app_store_version(platform: platform)
|
@@ -7,7 +7,7 @@ require 'fastlane_core/pkg_file_analyser'
|
|
7
7
|
module Deliver
|
8
8
|
class SubmitForReview
|
9
9
|
def submit!(options)
|
10
|
-
app =
|
10
|
+
app = Deliver.cache[:app]
|
11
11
|
|
12
12
|
platform = Spaceship::ConnectAPI::Platform.map(options[:platform])
|
13
13
|
version = app.get_edit_app_store_version(platform: platform)
|
@@ -57,7 +57,7 @@ module Deliver
|
|
57
57
|
|
58
58
|
def update_export_compliance(options, app, build)
|
59
59
|
submission_information = options[:submission_information] || {}
|
60
|
-
submission_information = submission_information.
|
60
|
+
submission_information = submission_information.transform_keys(&:to_sym)
|
61
61
|
|
62
62
|
uses_encryption = submission_information[:export_compliance_uses_encryption]
|
63
63
|
|
@@ -87,7 +87,7 @@ module Deliver
|
|
87
87
|
|
88
88
|
def update_idfa(options, app, version)
|
89
89
|
submission_information = options[:submission_information] || {}
|
90
|
-
submission_information = submission_information.
|
90
|
+
submission_information = submission_information.transform_keys(&:to_sym)
|
91
91
|
|
92
92
|
uses_idfa = submission_information[:add_id_info_uses_idfa]
|
93
93
|
|
@@ -163,7 +163,7 @@ module Deliver
|
|
163
163
|
|
164
164
|
def update_submission_information(options, app)
|
165
165
|
submission_information = options[:submission_information] || {}
|
166
|
-
submission_information = submission_information.
|
166
|
+
submission_information = submission_information.transform_keys(&:to_sym)
|
167
167
|
|
168
168
|
content_rights = submission_information[:content_rights_contains_third_party_content]
|
169
169
|
|