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
@@ -56,6 +56,38 @@ module Spaceship
|
|
56
56
|
client ||= Spaceship::ConnectAPI
|
57
57
|
return client.get_bundle_id(bundle_id_id: bundle_id_id, includes: includes).first
|
58
58
|
end
|
59
|
+
|
60
|
+
def self.create(client: nil, name: nil, platform: nil, identifier: nil, seed_id: nil)
|
61
|
+
client ||= Spaceship::ConnectAPI
|
62
|
+
resp = client.post_bundle_id(name: name, platform: platform, identifier: identifier, seed_id: seed_id)
|
63
|
+
return resp.to_models.first
|
64
|
+
end
|
65
|
+
|
66
|
+
#
|
67
|
+
# BundleIdsCapabilities
|
68
|
+
#
|
69
|
+
|
70
|
+
def get_capabilities(client: nil, includes: nil)
|
71
|
+
client ||= Spaceship::ConnectAPI
|
72
|
+
resp = client.get_bundle_id_capabilities(bundle_id_id: id, includes: includes)
|
73
|
+
return resp.to_models
|
74
|
+
end
|
75
|
+
|
76
|
+
def create_capability(capability_type, settings: [], client: nil)
|
77
|
+
raise "capability_type is required " if capability_type.nil?
|
78
|
+
|
79
|
+
client ||= Spaceship::ConnectAPI
|
80
|
+
resp = client.post_bundle_id_capability(bundle_id_id: id, capability_type: capability_type, settings: settings)
|
81
|
+
return resp.to_models.first
|
82
|
+
end
|
83
|
+
|
84
|
+
def update_capability(capability_type, enabled: false, settings: [], client: nil)
|
85
|
+
raise "capability_type is required " if capability_type.nil?
|
86
|
+
|
87
|
+
client ||= Spaceship::ConnectAPI
|
88
|
+
resp = client.patch_bundle_id_capability(bundle_id_id: id, seed_id: seed_id, enabled: enabled, capability_type: capability_type, settings: settings)
|
89
|
+
return resp.to_models.first
|
90
|
+
end
|
59
91
|
end
|
60
92
|
end
|
61
93
|
end
|
@@ -13,34 +13,90 @@ module Spaceship
|
|
13
13
|
})
|
14
14
|
|
15
15
|
module Type
|
16
|
+
ACCESS_WIFI_INFORMATION = "ACCESS_WIFI_INFORMATION"
|
17
|
+
APP_ATTEST = "APP_ATTEST"
|
18
|
+
APP_GROUPS = "APP_GROUPS"
|
19
|
+
APPLE_PAY = "APPLE_PAY"
|
20
|
+
ASSOCIATED_DOMAINS = "ASSOCIATED_DOMAINS"
|
21
|
+
AUTOFILL_CREDENTIAL_PROVIDER = "AUTOFILL_CREDENTIAL_PROVIDER"
|
22
|
+
CLASSKIT = "CLASSKIT"
|
16
23
|
ICLOUD = "ICLOUD"
|
17
|
-
|
24
|
+
USERNOTIFICATIONS_COMMUNICATION = "USERNOTIFICATIONS_COMMUNICATION"
|
25
|
+
NETWORK_CUSTOM_PROTOCOL = "NETWORK_CUSTOM_PROTOCOL"
|
26
|
+
DATA_PROTECTION = "DATA_PROTECTION"
|
27
|
+
EXTENDED_VIRTUAL_ADDRESSING = "EXTENDED_VIRTUAL_ADDRESSING"
|
28
|
+
FAMILY_CONTROLS = "FAMILY_CONTROLS"
|
29
|
+
FILEPROVIDER_TESTINGMODE = "FILEPROVIDER_TESTINGMODE"
|
30
|
+
FONT_INSTALLATION = "FONT_INSTALLATION"
|
18
31
|
GAME_CENTER = "GAME_CENTER"
|
19
|
-
|
20
|
-
WALLET = "WALLET"
|
21
|
-
INTER_APP_AUDIO = "INTER_APP_AUDIO"
|
22
|
-
MAPS = "MAPS"
|
23
|
-
ASSOCIATED_DOMAINS = "ASSOCIATED_DOMAINS"
|
24
|
-
PERSONAL_VPN = "PERSONAL_VPN"
|
25
|
-
APP_GROUPS = "APP_GROUPS"
|
32
|
+
GROUP_ACTIVITIES = "GROUP_ACTIVITIES"
|
26
33
|
HEALTHKIT = "HEALTHKIT"
|
34
|
+
HEALTHKIT_RECALIBRATE_ESTIMATES = "HEALTHKIT_RECALIBRATE_ESTIMATES"
|
35
|
+
HLS_INTERSTITIAL_PREVIEW = "HLS_INTERSTITIAL_PREVIEW"
|
27
36
|
HOMEKIT = "HOMEKIT"
|
28
|
-
WIRELESS_ACCESSORY_CONFIGURATION = "WIRELESS_ACCESSORY_CONFIGURATION"
|
29
|
-
APPLE_PAY = "APPLE_PAY"
|
30
|
-
DATA_PROTECTION = "DATA_PROTECTION"
|
31
|
-
SIRIKIT = "SIRIKIT"
|
32
|
-
NETWORK_EXTENSIONS = "NETWORK_EXTENSIONS"
|
33
|
-
MULTIPATH = "MULTIPATH"
|
34
37
|
HOT_SPOT = "HOT_SPOT"
|
38
|
+
IN_APP_PURCHASE = "IN_APP_PURCHASE"
|
39
|
+
INTER_APP_AUDIO = "INTER_APP_AUDIO"
|
40
|
+
COREMEDIA_HLS_LOW_LATENCY = "COREMEDIA_HLS_LOW_LATENCY"
|
41
|
+
MDM_MANAGED_ASSOCIATED_DOMAINS = "MDM_MANAGED_ASSOCIATED_DOMAINS"
|
42
|
+
MAPS = "MAPS"
|
43
|
+
MULTIPATH = "MULTIPATH"
|
44
|
+
NETWORK_EXTENSIONS = "NETWORK_EXTENSIONS"
|
35
45
|
NFC_TAG_READING = "NFC_TAG_READING"
|
36
|
-
|
37
|
-
|
38
|
-
|
46
|
+
PERSONAL_VPN = "PERSONAL_VPN"
|
47
|
+
PUSH_NOTIFICATIONS = "PUSH_NOTIFICATIONS"
|
48
|
+
APPLE_ID_AUTH = "APPLE_ID_AUTH"
|
49
|
+
SIRIKIT = "SIRIKIT"
|
50
|
+
SYSTEM_EXTENSION_INSTALL = "SYSTEM_EXTENSION_INSTALL"
|
51
|
+
USERNOTIFICATIONS_TIMESENSITIVE = "USERNOTIFICATIONS_TIMESENSITIVE"
|
52
|
+
USER_MANAGEMENT = "USER_MANAGEMENT"
|
53
|
+
WALLET = "WALLET"
|
54
|
+
WIRELESS_ACCESSORY_CONFIGURATION = "WIRELESS_ACCESSORY_CONFIGURATION"
|
55
|
+
|
56
|
+
# Additional Capabilities
|
57
|
+
CARPLAY_PLAYABLE_CONTENT = "CARPLAY_PLAYABLE_CONTENT"
|
58
|
+
CARPLAY_MESSAGING = "CARPLAY_MESSAGING"
|
59
|
+
CARPLAY_NAVIGATION = "CARPLAY_NAVIGATION"
|
60
|
+
CARPLAY_VOIP = "CARPLAY_VOIP"
|
61
|
+
CRITICAL_ALERTS = "CRITICAL_ALERTS"
|
62
|
+
HOTSPOT_HELPER_MANAGED = "HOTSPOT_HELPER_MANAGED"
|
63
|
+
DRIVERKIT = "DRIVERKIT"
|
64
|
+
DRIVERKIT_ENDPOINT_SECURITY = "DRIVERKIT_ENDPOINT_SECURITY"
|
65
|
+
DRIVERKIT_HID_DEVICE = "DRIVERKIT_HID_DEVICE"
|
66
|
+
DRIVERKIT_NETWORKING = "DRIVERKIT_NETWORKING"
|
67
|
+
DRIVERKIT_SERIAL = "DRIVERKIT_SERIAL"
|
68
|
+
DRIVERKIT_HID_EVENT_SERVICE = "DRIVERKIT_HID_EVENT_SERVICE"
|
69
|
+
DRIVERKIT_HID = "DRIVERKIT_HID"
|
70
|
+
IPAD_CAMERA_MULTITASKING = "IPAD_CAMERA_MULTITASKING"
|
71
|
+
SFUNIVERSALLINK_API = "SFUNIVERSALLINK_API"
|
72
|
+
VP9_DECODER = "VP9_DECODER"
|
73
|
+
|
74
|
+
# App Services
|
75
|
+
MUSIC_KIT = "MUSIC_KIT"
|
76
|
+
SHAZAM_KIT = "SHAZAM_KIT"
|
39
77
|
|
40
78
|
# Undocumented as of 2020-06-09
|
41
79
|
MARZIPAN = "MARZIPAN" # Catalyst
|
42
80
|
end
|
43
81
|
|
82
|
+
module Settings
|
83
|
+
ICLOUD_VERSION = "ICLOUD_VERSION"
|
84
|
+
DATA_PROTECTION_PERMISSION_LEVEL = "DATA_PROTECTION_PERMISSION_LEVEL"
|
85
|
+
APPLE_ID_AUTH_APP_CONSENT = "APPLE_ID_AUTH_APP_CONSENT"
|
86
|
+
GAME_CENTER_SETTING = "GAME_CENTER_SETTING"
|
87
|
+
end
|
88
|
+
|
89
|
+
module Options
|
90
|
+
XCODE_5 = "XCODE_5"
|
91
|
+
XCODE_6 = "XCODE_6"
|
92
|
+
COMPLETE_PROTECTION = "COMPLETE_PROTECTION"
|
93
|
+
PROTECTED_UNLESS_OPEN = "PROTECTED_UNLESS_OPEN"
|
94
|
+
PROTECTED_UNTIL_FIRST_USER_AUTH = "PROTECTED_UNTIL_FIRST_USER_AUTH"
|
95
|
+
PRIMARY_APP_CONSENT = "PRIMARY_APP_CONSENT"
|
96
|
+
GAME_CENTER_MAC = "GAME_CENTER_MAC"
|
97
|
+
GAME_CENTER_IOS = "GAME_CENTER_IOS"
|
98
|
+
end
|
99
|
+
|
44
100
|
def self.type
|
45
101
|
return "bundleIdCapabilities"
|
46
102
|
end
|
@@ -59,14 +115,21 @@ module Spaceship
|
|
59
115
|
# API
|
60
116
|
#
|
61
117
|
|
62
|
-
def self.all(client: nil,
|
118
|
+
def self.all(client: nil, bundle_id_id:, limit: nil)
|
119
|
+
client ||= Spaceship::ConnectAPI
|
120
|
+
resp = client.get_bundle_id_capabilities(bundle_id_id: bundle_id_id, limit: limit).all_pages
|
121
|
+
return resp.flat_map(&:to_models)
|
122
|
+
end
|
123
|
+
|
124
|
+
def self.create(client: nil, bundle_id_id:, capability_type:, settings: [])
|
63
125
|
client ||= Spaceship::ConnectAPI
|
64
|
-
|
126
|
+
resp = client.post_bundle_id_capability(bundle_id_id: bundle_id_id, capability_type: capability_type, settings: settings)
|
127
|
+
return resp.to_models.first
|
65
128
|
end
|
66
129
|
|
67
|
-
def
|
130
|
+
def delete!(client: nil, filter: {}, includes: nil, limit: nil, sort: nil)
|
68
131
|
client ||= Spaceship::ConnectAPI
|
69
|
-
|
132
|
+
client.delete_bundle_id_capability(bundle_id_capability_id: id)
|
70
133
|
end
|
71
134
|
end
|
72
135
|
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
require_relative '../model'
|
2
|
+
|
3
|
+
module Spaceship
|
4
|
+
class ConnectAPI
|
5
|
+
class Capabilities
|
6
|
+
include Spaceship::ConnectAPI::Model
|
7
|
+
|
8
|
+
attr_accessor :name
|
9
|
+
attr_accessor :description
|
10
|
+
|
11
|
+
attr_mapping({
|
12
|
+
"name" => "name",
|
13
|
+
"description" => "description",
|
14
|
+
})
|
15
|
+
|
16
|
+
def self.type
|
17
|
+
return "capabilities"
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.all(client: nil)
|
21
|
+
client ||= Spaceship::ConnectAPI
|
22
|
+
resp = client.get_available_bundle_id_capabilities(bundle_id_id: id).all_pages
|
23
|
+
return resp.flat_map(&:to_models)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -92,6 +92,12 @@ module Spaceship
|
|
92
92
|
return resps.flat_map(&:to_models)
|
93
93
|
end
|
94
94
|
|
95
|
+
def fetch_all_certificates(client: nil, filter: {}, includes: nil, sort: nil)
|
96
|
+
client ||= Spaceship::ConnectAPI
|
97
|
+
resps = client.get_certificates(profile_id: id, filter: filter, includes: includes).all_pages
|
98
|
+
return resps.flat_map(&:to_models)
|
99
|
+
end
|
100
|
+
|
95
101
|
def delete!(client: nil)
|
96
102
|
client ||= Spaceship::ConnectAPI
|
97
103
|
return client.delete_profile(profile_id: id)
|
@@ -16,6 +16,8 @@ module Spaceship
|
|
16
16
|
attr_accessor :email_vetting_required
|
17
17
|
attr_accessor :notifications
|
18
18
|
|
19
|
+
attr_accessor :visible_apps
|
20
|
+
|
19
21
|
attr_mapping({
|
20
22
|
"username" => "username",
|
21
23
|
"firstName" => "first_name",
|
@@ -27,9 +29,15 @@ module Spaceship
|
|
27
29
|
"allAppsVisible" => "all_apps_visible",
|
28
30
|
"provisioningAllowed" => "provisioning_allowed",
|
29
31
|
"emailVettingRequired" => "email_vetting_required",
|
30
|
-
"notifications" => "notifications"
|
32
|
+
"notifications" => "notifications",
|
33
|
+
|
34
|
+
"visibleApps" => "visible_apps"
|
31
35
|
})
|
32
36
|
|
37
|
+
ESSENTIAL_INCLUDES = [
|
38
|
+
"visibleApps"
|
39
|
+
].join(",")
|
40
|
+
|
33
41
|
def self.type
|
34
42
|
return "users"
|
35
43
|
end
|
@@ -38,16 +46,22 @@ module Spaceship
|
|
38
46
|
# API
|
39
47
|
#
|
40
48
|
|
41
|
-
def self.all(client: nil, filter: {}, includes:
|
49
|
+
def self.all(client: nil, filter: {}, includes: ESSENTIAL_INCLUDES, limit: nil, sort: nil)
|
42
50
|
client ||= Spaceship::ConnectAPI
|
43
51
|
resps = client.get_users(filter: filter, includes: includes).all_pages
|
44
52
|
return resps.flat_map(&:to_models)
|
45
53
|
end
|
46
54
|
|
47
|
-
def self.find(client: nil, email: nil, includes:
|
55
|
+
def self.find(client: nil, email: nil, includes: ESSENTIAL_INCLUDES)
|
48
56
|
client ||= Spaceship::ConnectAPI
|
49
57
|
return all(client: client, filter: { email: email }, includes: includes)
|
50
58
|
end
|
59
|
+
|
60
|
+
def get_visible_apps(client: nil, limit: nil)
|
61
|
+
client ||= Spaceship::ConnectAPI
|
62
|
+
resp = client.get_user_visible_apps(user_id: id, limit: limit)
|
63
|
+
return resp.to_models
|
64
|
+
end
|
51
65
|
end
|
52
66
|
end
|
53
67
|
end
|
@@ -11,15 +11,23 @@ module Spaceship
|
|
11
11
|
attr_accessor :all_apps_visible
|
12
12
|
attr_accessor :provisioning_allowed
|
13
13
|
|
14
|
+
attr_accessor :visible_apps
|
15
|
+
|
14
16
|
attr_mapping({
|
15
17
|
"firstName" => "first_name",
|
16
18
|
"lastName" => "last_name",
|
17
19
|
"email" => "email",
|
18
20
|
"roles" => "roles",
|
19
21
|
"allAppsVisible" => "all_apps_visible",
|
20
|
-
"provisioningAllowed" => "provisioning_allowed"
|
22
|
+
"provisioningAllowed" => "provisioning_allowed",
|
23
|
+
|
24
|
+
"visibleApps" => "visible_apps"
|
21
25
|
})
|
22
26
|
|
27
|
+
ESSENTIAL_INCLUDES = [
|
28
|
+
"visibleApps"
|
29
|
+
].join(",")
|
30
|
+
|
23
31
|
module UserRole
|
24
32
|
ADMIN = "ADMIN"
|
25
33
|
FINANCE = "FINANCE"
|
@@ -42,21 +50,47 @@ module Spaceship
|
|
42
50
|
# Managing invitations
|
43
51
|
#
|
44
52
|
|
45
|
-
def self.all(client: nil, filter: {}, includes:
|
53
|
+
def self.all(client: nil, filter: {}, includes: ESSENTIAL_INCLUDES, sort: nil)
|
46
54
|
client ||= Spaceship::ConnectAPI
|
47
55
|
resps = client.get_user_invitations(filter: filter, includes: includes, sort: sort).all_pages
|
48
56
|
return resps.flat_map(&:to_models)
|
49
57
|
end
|
50
58
|
|
51
|
-
def self.find(client: nil, email: nil, includes:
|
59
|
+
def self.find(client: nil, email: nil, includes: ESSENTIAL_INCLUDES)
|
52
60
|
client ||= Spaceship::ConnectAPI
|
53
61
|
return all(client: client, filter: { email: email }, includes: includes)
|
54
62
|
end
|
55
63
|
|
64
|
+
# Create and post user invitation
|
65
|
+
# App Store Connect allows for the following combinations of `all_apps_visible` and `visible_app_ids`:
|
66
|
+
# - if `all_apps_visible` is `nil`, you don't have to provide values for `visible_app_ids`
|
67
|
+
# - if `all_apps_visible` is true, you must provide values for `visible_app_ids`.
|
68
|
+
# - if `all_apps_visible` is false, you must not provide values for `visible_app_ids`.
|
69
|
+
def self.create(client: nil, email: nil, first_name: nil, last_name: nil, roles: [], provisioning_allowed: nil, all_apps_visible: nil, visible_app_ids: [])
|
70
|
+
client ||= Spaceship::ConnectAPI
|
71
|
+
resp = client.post_user_invitation(
|
72
|
+
email: email,
|
73
|
+
first_name: first_name,
|
74
|
+
last_name: last_name,
|
75
|
+
roles: roles,
|
76
|
+
provisioning_allowed: provisioning_allowed,
|
77
|
+
all_apps_visible: all_apps_visible,
|
78
|
+
visible_app_ids: visible_app_ids
|
79
|
+
)
|
80
|
+
return resp.to_models.first
|
81
|
+
end
|
82
|
+
|
56
83
|
def delete!(client: nil)
|
57
84
|
client ||= Spaceship::ConnectAPI
|
58
85
|
client.delete_user_invitation(user_invitation_id: id)
|
59
86
|
end
|
87
|
+
|
88
|
+
# Get visible apps for invited user
|
89
|
+
def get_visible_apps(client: nil, limit: nil)
|
90
|
+
client ||= Spaceship::ConnectAPI
|
91
|
+
resp = client.get_user_invitation_visible_apps(user_invitation_id: id, limit: limit)
|
92
|
+
return resp.to_models
|
93
|
+
end
|
60
94
|
end
|
61
95
|
end
|
62
96
|
end
|
@@ -27,13 +27,115 @@ module Spaceship
|
|
27
27
|
provisioning_request_client.get("bundleIds/#{bundle_id_id}", params)
|
28
28
|
end
|
29
29
|
|
30
|
+
def post_bundle_id(name:, platform:, identifier:, seed_id:)
|
31
|
+
attributes = {
|
32
|
+
name: name,
|
33
|
+
platform: platform,
|
34
|
+
identifier: identifier,
|
35
|
+
seedId: seed_id
|
36
|
+
}
|
37
|
+
|
38
|
+
body = {
|
39
|
+
data: {
|
40
|
+
attributes: attributes,
|
41
|
+
type: "bundleIds"
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
provisioning_request_client.post("bundleIds", body)
|
46
|
+
end
|
47
|
+
|
48
|
+
#
|
49
|
+
# bundleIdCapability
|
50
|
+
#
|
51
|
+
|
52
|
+
def get_bundle_id_capabilities(bundle_id_id:, includes: nil, limit: nil, sort: nil)
|
53
|
+
params = provisioning_request_client.build_params(filter: nil, includes: includes, limit: limit, sort: sort)
|
54
|
+
provisioning_request_client.get("bundleIds/#{bundle_id_id}/bundleIdCapabilities", params)
|
55
|
+
end
|
56
|
+
|
57
|
+
def get_available_bundle_id_capabilities(bundle_id_id:)
|
58
|
+
params = provisioning_request_client.build_params(filter: { bundleId: bundle_id_id })
|
59
|
+
provisioning_request_client.get("capabilities", params)
|
60
|
+
end
|
61
|
+
|
62
|
+
def post_bundle_id_capability(bundle_id_id:, capability_type:, settings: [])
|
63
|
+
body = {
|
64
|
+
data: {
|
65
|
+
attributes: {
|
66
|
+
capabilityType: capability_type,
|
67
|
+
settings: settings
|
68
|
+
},
|
69
|
+
type: "bundleIdCapabilities",
|
70
|
+
relationships: {
|
71
|
+
bundleId: {
|
72
|
+
data: {
|
73
|
+
type: "bundleIds",
|
74
|
+
id: bundle_id_id
|
75
|
+
}
|
76
|
+
},
|
77
|
+
capability: {
|
78
|
+
data: {
|
79
|
+
type: "capabilities",
|
80
|
+
id: capability_type
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
provisioning_request_client.post("bundleIdCapabilities", body)
|
87
|
+
end
|
88
|
+
|
89
|
+
def patch_bundle_id_capability(bundle_id_id:, seed_id:, enabled: false, capability_type:, settings: [])
|
90
|
+
body = {
|
91
|
+
data: {
|
92
|
+
type: "bundleIds",
|
93
|
+
id: bundle_id_id,
|
94
|
+
attributes: {
|
95
|
+
teamId: seed_id
|
96
|
+
},
|
97
|
+
relationships: {
|
98
|
+
bundleIdCapabilities: {
|
99
|
+
data: [
|
100
|
+
{
|
101
|
+
type: "bundleIdCapabilities",
|
102
|
+
attributes: {
|
103
|
+
enabled: enabled,
|
104
|
+
settings: settings
|
105
|
+
},
|
106
|
+
relationships: {
|
107
|
+
capability: {
|
108
|
+
data: {
|
109
|
+
type: "capabilities",
|
110
|
+
id: capability_type
|
111
|
+
}
|
112
|
+
}
|
113
|
+
}
|
114
|
+
}
|
115
|
+
]
|
116
|
+
}
|
117
|
+
}
|
118
|
+
}
|
119
|
+
}
|
120
|
+
|
121
|
+
provisioning_request_client.patch("bundleIds/#{bundle_id_id}", body)
|
122
|
+
end
|
123
|
+
|
124
|
+
def delete_bundle_id_capability(bundle_id_capability_id:)
|
125
|
+
provisioning_request_client.delete("bundleIdCapabilities/#{bundle_id_capability_id}")
|
126
|
+
end
|
127
|
+
|
30
128
|
#
|
31
129
|
# certificates
|
32
130
|
#
|
33
131
|
|
34
|
-
def get_certificates(filter: {}, includes: nil, limit: nil, sort: nil)
|
132
|
+
def get_certificates(profile_id: nil, filter: {}, includes: nil, limit: nil, sort: nil)
|
35
133
|
params = provisioning_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
|
36
|
-
|
134
|
+
if profile_id.nil?
|
135
|
+
provisioning_request_client.get("certificates", params)
|
136
|
+
else
|
137
|
+
provisioning_request_client.get("profiles/#{profile_id}/certificates", params)
|
138
|
+
end
|
37
139
|
end
|
38
140
|
|
39
141
|
def get_certificate(certificate_id: nil, includes: nil)
|
@@ -11,6 +11,9 @@ module Spaceship
|
|
11
11
|
|
12
12
|
super(cookie: cookie, current_team_id: current_team_id, token: token, another_client: another_client)
|
13
13
|
|
14
|
+
# Used by most iris requests starting in July 2021
|
15
|
+
@additional_headers = { 'x-csrf-itc': '[asc-ui]' } if another_client
|
16
|
+
|
14
17
|
self.extend(Spaceship::ConnectAPI::TestFlight::API)
|
15
18
|
self.test_flight_request_client = self
|
16
19
|
end
|
@@ -191,11 +191,26 @@ module Spaceship
|
|
191
191
|
test_flight_request_client.post("builds/#{build_id}/relationships/betaGroups", body)
|
192
192
|
end
|
193
193
|
|
194
|
-
def
|
194
|
+
def delete_beta_groups_from_build(build_id: nil, beta_group_ids: [])
|
195
|
+
body = {
|
196
|
+
data: beta_group_ids.map do |id|
|
197
|
+
{
|
198
|
+
type: "betaGroups",
|
199
|
+
id: id
|
200
|
+
}
|
201
|
+
end
|
202
|
+
}
|
203
|
+
|
204
|
+
test_flight_request_client.delete("builds/#{build_id}/relationships/betaGroups", nil, body)
|
205
|
+
end
|
206
|
+
|
207
|
+
def create_beta_group(app_id: nil, group_name: nil, is_internal_group: false, public_link_enabled: false, public_link_limit: 10_000, public_link_limit_enabled: false)
|
195
208
|
body = {
|
196
209
|
data: {
|
197
210
|
attributes: {
|
198
211
|
name: group_name,
|
212
|
+
isInternalGroup: is_internal_group,
|
213
|
+
hasAccessToAllBuilds: is_internal_group ? true : false, # Undocumented of 2021-08-02 in ASC API docs and ASC Open API spec. This is the default behavior on App Store Connect and does work with both Apple ID and API Token
|
199
214
|
publicLinkEnabled: public_link_enabled,
|
200
215
|
publicLinkLimit: public_link_limit,
|
201
216
|
publicLinkLimitEnabled: public_link_limit_enabled
|
@@ -205,11 +220,11 @@ module Spaceship
|
|
205
220
|
data: {
|
206
221
|
id: app_id,
|
207
222
|
type: "apps"
|
208
|
-
}
|
209
|
-
}
|
223
|
+
},
|
224
|
+
},
|
210
225
|
},
|
211
|
-
type: "betaGroups"
|
212
|
-
}
|
226
|
+
type: "betaGroups",
|
227
|
+
},
|
213
228
|
}
|
214
229
|
test_flight_request_client.post("betaGroups", body)
|
215
230
|
end
|
@@ -275,6 +290,19 @@ module Spaceship
|
|
275
290
|
test_flight_request_client.post("bulkBetaTesterAssignments", body)
|
276
291
|
end
|
277
292
|
|
293
|
+
def add_beta_tester_to_group(beta_group_id: nil, beta_tester_ids: nil)
|
294
|
+
beta_tester_ids || []
|
295
|
+
body = {
|
296
|
+
data: beta_tester_ids.map do |id|
|
297
|
+
{
|
298
|
+
type: "betaTesters",
|
299
|
+
id: id
|
300
|
+
}
|
301
|
+
end
|
302
|
+
}
|
303
|
+
test_flight_request_client.post("betaGroups/#{beta_group_id}/relationships/betaTesters", body)
|
304
|
+
end
|
305
|
+
|
278
306
|
def delete_beta_tester_from_apps(beta_tester_id: nil, app_ids: [])
|
279
307
|
body = {
|
280
308
|
data: app_ids.map do |id|
|
@@ -314,6 +342,45 @@ module Spaceship
|
|
314
342
|
test_flight_request_client.delete("apps/#{app_id}/relationships/betaTesters", nil, body)
|
315
343
|
end
|
316
344
|
|
345
|
+
def add_beta_tester_to_builds(beta_tester_id: nil, build_ids: [])
|
346
|
+
body = {
|
347
|
+
data: build_ids.map do |id|
|
348
|
+
{
|
349
|
+
type: "builds",
|
350
|
+
id: id
|
351
|
+
}
|
352
|
+
end
|
353
|
+
}
|
354
|
+
|
355
|
+
test_flight_request_client.post("betaTesters/#{beta_tester_id}/relationships/builds", body)
|
356
|
+
end
|
357
|
+
|
358
|
+
def add_beta_testers_to_build(build_id: nil, beta_tester_ids: [])
|
359
|
+
body = {
|
360
|
+
data: beta_tester_ids.map do |id|
|
361
|
+
{
|
362
|
+
type: "betaTesters",
|
363
|
+
id: id
|
364
|
+
}
|
365
|
+
end
|
366
|
+
}
|
367
|
+
|
368
|
+
test_flight_request_client.post("builds/#{build_id}/relationships/individualTesters", body)
|
369
|
+
end
|
370
|
+
|
371
|
+
def delete_beta_testers_from_build(build_id: nil, beta_tester_ids: [])
|
372
|
+
body = {
|
373
|
+
data: beta_tester_ids.map do |id|
|
374
|
+
{
|
375
|
+
type: "betaTesters",
|
376
|
+
id: id
|
377
|
+
}
|
378
|
+
end
|
379
|
+
}
|
380
|
+
|
381
|
+
test_flight_request_client.delete("builds/#{build_id}/relationships/individualTesters", nil, body)
|
382
|
+
end
|
383
|
+
|
317
384
|
#
|
318
385
|
# betaTesterMetrics
|
319
386
|
#
|
@@ -13,6 +13,7 @@ module Spaceship
|
|
13
13
|
class Token
|
14
14
|
# maximum expiration supported by AppStore (20 minutes)
|
15
15
|
MAX_TOKEN_DURATION = 1200
|
16
|
+
DEFAULT_TOKEN_DURATION = 500
|
16
17
|
|
17
18
|
attr_reader :key_id
|
18
19
|
attr_reader :issuer_id
|
@@ -20,11 +21,19 @@ module Spaceship
|
|
20
21
|
attr_reader :duration
|
21
22
|
attr_reader :expiration
|
22
23
|
|
24
|
+
attr_reader :key_raw
|
25
|
+
|
23
26
|
# Temporary attribute not needed to create the JWT text
|
24
27
|
# There is no way to determine if the team associated with this
|
25
28
|
# key is for App Store or Enterprise so this is the temporary workaround
|
26
29
|
attr_accessor :in_house
|
27
30
|
|
31
|
+
def self.from(hash: nil, filepath: nil)
|
32
|
+
api_token ||= self.create(**hash) if hash
|
33
|
+
api_token ||= self.from_json_file(filepath) if filepath
|
34
|
+
return api_token
|
35
|
+
end
|
36
|
+
|
28
37
|
def self.from_json_file(filepath)
|
29
38
|
json = JSON.parse(File.read(filepath), { symbolize_names: true })
|
30
39
|
|
@@ -37,10 +46,10 @@ module Spaceship
|
|
37
46
|
raise "App Store Connect API key JSON is missing field(s): #{missing_keys.join(', ')}"
|
38
47
|
end
|
39
48
|
|
40
|
-
self.create(json)
|
49
|
+
self.create(**json)
|
41
50
|
end
|
42
51
|
|
43
|
-
def self.create(key_id: nil, issuer_id: nil, filepath: nil, key: nil, is_key_content_base64: false, duration: nil, in_house: nil)
|
52
|
+
def self.create(key_id: nil, issuer_id: nil, filepath: nil, key: nil, is_key_content_base64: false, duration: nil, in_house: nil, **)
|
44
53
|
key_id ||= ENV['SPACESHIP_CONNECT_API_KEY_ID']
|
45
54
|
issuer_id ||= ENV['SPACESHIP_CONNECT_API_ISSUER_ID']
|
46
55
|
filepath ||= ENV['SPACESHIP_CONNECT_API_KEY_FILEPATH']
|
@@ -60,19 +69,21 @@ module Spaceship
|
|
60
69
|
key_id: key_id,
|
61
70
|
issuer_id: issuer_id,
|
62
71
|
key: OpenSSL::PKey::EC.new(key),
|
72
|
+
key_raw: key,
|
63
73
|
duration: duration,
|
64
74
|
in_house: in_house
|
65
75
|
)
|
66
76
|
end
|
67
77
|
|
68
|
-
def initialize(key_id: nil, issuer_id: nil, key: nil, duration: nil, in_house: nil)
|
78
|
+
def initialize(key_id: nil, issuer_id: nil, key: nil, key_raw: nil, duration: nil, in_house: nil)
|
69
79
|
@key_id = key_id
|
70
80
|
@key = key
|
81
|
+
@key_raw = key_raw
|
71
82
|
@issuer_id = issuer_id
|
72
83
|
@duration = duration
|
73
84
|
@in_house = in_house
|
74
85
|
|
75
|
-
@duration ||=
|
86
|
+
@duration ||= DEFAULT_TOKEN_DURATION
|
76
87
|
@duration = @duration.to_i if @duration
|
77
88
|
|
78
89
|
refresh!
|
@@ -97,6 +108,10 @@ module Spaceship
|
|
97
108
|
def expired?
|
98
109
|
@expiration < Time.now
|
99
110
|
end
|
111
|
+
|
112
|
+
def write_key_to_file(path)
|
113
|
+
File.open(path, 'w') { |f| f.write(@key_raw) }
|
114
|
+
end
|
100
115
|
end
|
101
116
|
end
|
102
117
|
end
|
@@ -11,6 +11,9 @@ module Spaceship
|
|
11
11
|
|
12
12
|
super(cookie: cookie, current_team_id: current_team_id, token: token, another_client: another_client)
|
13
13
|
|
14
|
+
# Used by most iris requests starting in July 2021
|
15
|
+
@additional_headers = { 'x-csrf-itc': '[asc-ui]' } if another_client
|
16
|
+
|
14
17
|
self.extend(Spaceship::ConnectAPI::Tunes::API)
|
15
18
|
self.tunes_request_client = self
|
16
19
|
end
|