fastlane_hotfix 2.165.0 → 2.187.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/README.md +106 -86
- data/cert/lib/cert/commands_generator.rb +2 -1
- data/cert/lib/cert/options.rb +6 -5
- data/cert/lib/cert/runner.rb +8 -8
- data/deliver/lib/assets/summary.html.erb +10 -10
- data/deliver/lib/deliver/app_screenshot.rb +17 -11
- data/deliver/lib/deliver/app_screenshot_validator.rb +108 -0
- data/deliver/lib/deliver/commands_generator.rb +4 -3
- data/deliver/lib/deliver/detect_values.rb +5 -3
- data/deliver/lib/deliver/download_screenshots.rb +2 -3
- data/deliver/lib/deliver/html_generator.rb +2 -2
- data/deliver/lib/deliver/languages.rb +1 -1
- data/deliver/lib/deliver/loader.rb +123 -21
- data/deliver/lib/deliver/module.rb +6 -0
- data/deliver/lib/deliver/options.rb +41 -55
- data/deliver/lib/deliver/runner.rb +19 -14
- data/deliver/lib/deliver/setup.rb +9 -5
- data/deliver/lib/deliver/submit_for_review.rb +4 -4
- data/deliver/lib/deliver/upload_metadata.rb +32 -21
- data/deliver/lib/deliver/upload_price_tier.rb +1 -1
- data/deliver/lib/deliver/upload_screenshots.rb +14 -76
- data/fastlane/lib/fastlane/actions/actions_helper.rb +3 -3
- data/fastlane/lib/fastlane/actions/adb.rb +2 -5
- data/fastlane/lib/fastlane/actions/adb_devices.rb +0 -1
- data/fastlane/lib/fastlane/actions/add_git_tag.rb +22 -6
- data/fastlane/lib/fastlane/actions/app_store_build_number.rb +17 -17
- data/fastlane/lib/fastlane/actions/app_store_connect_api_key.rb +21 -7
- data/fastlane/lib/fastlane/actions/appaloosa.rb +7 -2
- data/fastlane/lib/fastlane/actions/appetize.rb +13 -8
- data/fastlane/lib/fastlane/actions/appetize_viewing_url_generator.rb +0 -11
- data/fastlane/lib/fastlane/actions/appium.rb +40 -65
- data/fastlane/lib/fastlane/actions/appledoc.rb +46 -46
- data/fastlane/lib/fastlane/actions/apteligent.rb +3 -2
- data/fastlane/lib/fastlane/actions/artifactory.rb +41 -9
- data/fastlane/lib/fastlane/actions/automatic_code_signing.rb +7 -13
- data/fastlane/lib/fastlane/actions/backup_file.rb +1 -1
- data/fastlane/lib/fastlane/actions/backup_xcarchive.rb +3 -3
- data/fastlane/lib/fastlane/actions/badge.rb +9 -13
- data/fastlane/lib/fastlane/actions/build_and_upload_to_appetize.rb +11 -5
- data/fastlane/lib/fastlane/actions/build_app.rb +7 -1
- data/fastlane/lib/fastlane/actions/bundle_install.rb +8 -10
- data/fastlane/lib/fastlane/actions/carthage.rb +22 -14
- data/fastlane/lib/fastlane/actions/changelog_from_git_commits.rb +8 -17
- data/fastlane/lib/fastlane/actions/chatwork.rb +3 -2
- data/fastlane/lib/fastlane/actions/check_app_store_metadata.rb +9 -1
- data/fastlane/lib/fastlane/actions/clean_build_artifacts.rb +0 -1
- data/fastlane/lib/fastlane/actions/clean_cocoapods_cache.rb +0 -1
- data/fastlane/lib/fastlane/actions/clipboard.rb +3 -6
- data/fastlane/lib/fastlane/actions/cloc.rb +9 -13
- data/fastlane/lib/fastlane/actions/cocoapods.rb +23 -15
- data/fastlane/lib/fastlane/actions/commit_github_file.rb +12 -4
- data/fastlane/lib/fastlane/actions/commit_version_bump.rb +6 -7
- data/fastlane/lib/fastlane/actions/copy_artifacts.rb +3 -4
- data/fastlane/lib/fastlane/actions/crashlytics.rb +7 -11
- data/fastlane/lib/fastlane/actions/create_app_on_managed_play_store.rb +70 -76
- data/fastlane/lib/fastlane/actions/create_keychain.rb +13 -11
- data/fastlane/lib/fastlane/actions/create_pull_request.rb +15 -9
- data/fastlane/lib/fastlane/actions/create_xcframework.rb +123 -0
- data/fastlane/lib/fastlane/actions/danger.rb +13 -12
- data/fastlane/lib/fastlane/actions/deploygate.rb +1 -2
- data/fastlane/lib/fastlane/actions/docs/build_app.md +1 -1
- data/fastlane/lib/fastlane/actions/docs/capture_android_screenshots.md +27 -28
- data/fastlane/lib/fastlane/actions/docs/capture_ios_screenshots.md +7 -3
- data/fastlane/lib/fastlane/actions/docs/create_app_online.md +171 -67
- data/fastlane/lib/fastlane/actions/docs/frame_screenshots.md +20 -3
- data/fastlane/lib/fastlane/actions/docs/sync_code_signing.md +9 -3
- data/fastlane/lib/fastlane/actions/docs/upload_to_app_store.md.erb +39 -16
- data/fastlane/lib/fastlane/actions/docs/upload_to_play_store.md +2 -1
- data/fastlane/lib/fastlane/actions/docs/upload_to_testflight.md +15 -5
- data/fastlane/lib/fastlane/actions/download_app_privacy_details_from_app_store.rb +142 -0
- data/fastlane/lib/fastlane/actions/download_dsyms.rb +8 -20
- data/fastlane/lib/fastlane/actions/dsym_zip.rb +1 -1
- data/fastlane/lib/fastlane/actions/ensure_env_vars.rb +2 -6
- data/fastlane/lib/fastlane/actions/ensure_git_branch.rb +0 -1
- data/fastlane/lib/fastlane/actions/ensure_git_status_clean.rb +3 -4
- data/fastlane/lib/fastlane/actions/ensure_no_debug_code.rb +3 -5
- data/fastlane/lib/fastlane/actions/ensure_xcode_version.rb +1 -2
- data/fastlane/lib/fastlane/actions/environment_variable.rb +13 -21
- data/fastlane/lib/fastlane/actions/erb.rb +2 -5
- data/fastlane/lib/fastlane/actions/get_build_number_repository.rb +1 -1
- data/fastlane/lib/fastlane/actions/get_certificates.rb +5 -1
- data/fastlane/lib/fastlane/actions/get_github_release.rb +11 -1
- data/fastlane/lib/fastlane/actions/get_ipa_info_plist_value.rb +0 -1
- data/fastlane/lib/fastlane/actions/get_managed_play_store_publishing_rights.rb +32 -35
- data/fastlane/lib/fastlane/actions/get_provisioning_profile.rb +9 -1
- data/fastlane/lib/fastlane/actions/get_push_certificate.rb +1 -1
- data/fastlane/lib/fastlane/actions/get_version_number.rb +17 -10
- data/fastlane/lib/fastlane/actions/git_add.rb +5 -10
- data/fastlane/lib/fastlane/actions/git_branch.rb +4 -10
- data/fastlane/lib/fastlane/actions/git_commit.rb +12 -10
- data/fastlane/lib/fastlane/actions/git_pull.rb +4 -10
- data/fastlane/lib/fastlane/actions/git_remote_branch.rb +57 -0
- data/fastlane/lib/fastlane/actions/git_submodule_update.rb +16 -8
- data/fastlane/lib/fastlane/actions/git_tag_exists.rb +4 -0
- data/fastlane/lib/fastlane/actions/github_api.rb +17 -8
- data/fastlane/lib/fastlane/actions/gradle.rb +12 -20
- data/fastlane/lib/fastlane/actions/hg_commit_version_bump.rb +1 -1
- data/fastlane/lib/fastlane/actions/hg_push.rb +1 -1
- data/fastlane/lib/fastlane/actions/hipchat.rb +6 -6
- data/fastlane/lib/fastlane/actions/hockey.rb +5 -12
- data/fastlane/lib/fastlane/actions/ifttt.rb +3 -6
- data/fastlane/lib/fastlane/actions/import_from_git.rb +7 -9
- data/fastlane/lib/fastlane/actions/increment_build_number.rb +8 -2
- data/fastlane/lib/fastlane/actions/install_on_device.rb +3 -6
- data/fastlane/lib/fastlane/actions/install_provisioning_profile.rb +4 -0
- data/fastlane/lib/fastlane/actions/installr.rb +22 -25
- data/fastlane/lib/fastlane/actions/ipa.rb +2 -2
- data/fastlane/lib/fastlane/actions/jazzy.rb +11 -8
- data/fastlane/lib/fastlane/actions/jira.rb +61 -14
- data/fastlane/lib/fastlane/actions/latest_testflight_build_number.rb +6 -6
- data/fastlane/lib/fastlane/actions/lcov.rb +0 -4
- data/fastlane/lib/fastlane/actions/mailgun.rb +21 -27
- data/fastlane/lib/fastlane/actions/make_changelog_from_jenkins.rb +1 -1
- data/fastlane/lib/fastlane/actions/match_nuke.rb +59 -0
- data/fastlane/lib/fastlane/actions/modify_services.rb +59 -24
- data/fastlane/lib/fastlane/actions/nexus_upload.rb +3 -2
- data/fastlane/lib/fastlane/actions/notarize.rb +98 -54
- data/fastlane/lib/fastlane/actions/notification.rb +1 -1
- data/fastlane/lib/fastlane/actions/number_of_commits.rb +1 -1
- data/fastlane/lib/fastlane/actions/oclint.rb +15 -14
- data/fastlane/lib/fastlane/actions/onesignal.rb +13 -3
- data/fastlane/lib/fastlane/actions/pod_push.rb +9 -2
- data/fastlane/lib/fastlane/actions/podio_item.rb +0 -7
- data/fastlane/lib/fastlane/actions/prompt.rb +3 -4
- data/fastlane/lib/fastlane/actions/push_git_tags.rb +1 -1
- data/fastlane/lib/fastlane/actions/push_to_git_remote.rb +14 -3
- data/fastlane/lib/fastlane/actions/puts.rb +1 -2
- data/fastlane/lib/fastlane/actions/register_device.rb +10 -13
- data/fastlane/lib/fastlane/actions/register_devices.rb +11 -14
- data/fastlane/lib/fastlane/actions/reset_git_repo.rb +5 -8
- data/fastlane/lib/fastlane/actions/reset_simulator_contents.rb +0 -2
- data/fastlane/lib/fastlane/actions/resign.rb +2 -9
- data/fastlane/lib/fastlane/actions/restore_file.rb +1 -1
- data/fastlane/lib/fastlane/actions/rsync.rb +3 -6
- data/fastlane/lib/fastlane/actions/run_tests.rb +1 -1
- data/fastlane/lib/fastlane/actions/s3.rb +1 -1
- data/fastlane/lib/fastlane/actions/say.rb +2 -3
- data/fastlane/lib/fastlane/actions/scp.rb +4 -10
- data/fastlane/lib/fastlane/actions/set_build_number_repository.rb +1 -1
- data/fastlane/lib/fastlane/actions/set_changelog.rb +10 -13
- data/fastlane/lib/fastlane/actions/set_github_release.rb +23 -16
- data/fastlane/lib/fastlane/actions/set_info_plist_value.rb +1 -1
- data/fastlane/lib/fastlane/actions/set_pod_key.rb +3 -4
- data/fastlane/lib/fastlane/actions/setup_ci.rb +1 -2
- data/fastlane/lib/fastlane/actions/setup_circle_ci.rb +1 -1
- data/fastlane/lib/fastlane/actions/setup_jenkins.rb +7 -12
- data/fastlane/lib/fastlane/actions/setup_travis.rb +1 -1
- data/fastlane/lib/fastlane/actions/sh.rb +2 -4
- data/fastlane/lib/fastlane/actions/slack.rb +164 -145
- data/fastlane/lib/fastlane/actions/slather.rb +5 -21
- data/fastlane/lib/fastlane/actions/sonar.rb +12 -19
- data/fastlane/lib/fastlane/actions/sourcedocs.rb +128 -0
- data/fastlane/lib/fastlane/actions/spaceship_logs.rb +1 -1
- data/fastlane/lib/fastlane/actions/splunkmint.rb +2 -2
- data/fastlane/lib/fastlane/actions/spm.rb +8 -2
- data/fastlane/lib/fastlane/actions/ssh.rb +5 -10
- data/fastlane/lib/fastlane/actions/swiftlint.rb +21 -19
- data/fastlane/lib/fastlane/actions/sync_code_signing.rb +6 -1
- data/fastlane/lib/fastlane/actions/testfairy.rb +0 -1
- data/fastlane/lib/fastlane/actions/tryouts.rb +2 -3
- data/fastlane/lib/fastlane/actions/twitter.rb +0 -5
- data/fastlane/lib/fastlane/actions/unlock_keychain.rb +3 -3
- data/fastlane/lib/fastlane/actions/update_app_group_identifiers.rb +1 -4
- data/fastlane/lib/fastlane/actions/update_code_signing_settings.rb +8 -15
- data/fastlane/lib/fastlane/actions/update_fastlane.rb +31 -10
- data/fastlane/lib/fastlane/actions/update_icloud_container_identifiers.rb +1 -4
- data/fastlane/lib/fastlane/actions/update_info_plist.rb +1 -1
- data/fastlane/lib/fastlane/actions/update_keychain_access_groups.rb +1 -4
- data/fastlane/lib/fastlane/actions/update_plist.rb +1 -1
- data/fastlane/lib/fastlane/actions/update_project_provisioning.rb +3 -4
- data/fastlane/lib/fastlane/actions/update_urban_airship_configuration.rb +0 -1
- data/fastlane/lib/fastlane/actions/update_url_schemes.rb +15 -26
- data/fastlane/lib/fastlane/actions/upload_app_privacy_details_to_app_store.rb +290 -0
- data/fastlane/lib/fastlane/actions/upload_symbols_to_crashlytics.rb +8 -7
- data/fastlane/lib/fastlane/actions/upload_symbols_to_sentry.rb +3 -10
- data/fastlane/lib/fastlane/actions/upload_to_app_store.rb +8 -4
- data/fastlane/lib/fastlane/actions/upload_to_testflight.rb +7 -2
- data/fastlane/lib/fastlane/actions/validate_play_store_json_key.rb +40 -44
- data/fastlane/lib/fastlane/actions/version_get_podspec.rb +1 -2
- data/fastlane/lib/fastlane/actions/xcode_install.rb +8 -5
- data/fastlane/lib/fastlane/actions/xcode_server_get_assets.rb +3 -3
- data/fastlane/lib/fastlane/actions/xcodebuild.rb +5 -5
- data/fastlane/lib/fastlane/cli_tools_distributor.rb +6 -3
- data/fastlane/lib/fastlane/commands_generator.rb +2 -1
- data/fastlane/lib/fastlane/documentation/actions_list.rb +2 -2
- data/fastlane/lib/fastlane/documentation/docs_generator.rb +1 -1
- data/fastlane/lib/fastlane/documentation/markdown_docs_generator.rb +1 -1
- data/fastlane/lib/fastlane/environment_printer.rb +1 -0
- data/fastlane/lib/fastlane/erb_template_helper.rb +7 -1
- data/fastlane/lib/fastlane/fast_file.rb +19 -7
- data/fastlane/lib/fastlane/fastlane_require.rb +7 -1
- data/fastlane/lib/fastlane/features.rb +1 -1
- data/fastlane/lib/fastlane/helper/adb_helper.rb +1 -1
- data/fastlane/lib/fastlane/helper/crashlytics_helper.rb +4 -4
- data/fastlane/lib/fastlane/helper/gem_helper.rb +2 -2
- data/fastlane/lib/fastlane/helper/git_helper.rb +34 -5
- data/fastlane/lib/fastlane/lane_manager.rb +3 -2
- data/fastlane/lib/fastlane/notification/slack.rb +56 -0
- data/fastlane/lib/fastlane/plugins/plugin_fetcher.rb +1 -2
- data/fastlane/lib/fastlane/plugins/plugin_info.rb +2 -2
- data/fastlane/lib/fastlane/plugins/plugin_info_collector.rb +1 -2
- data/fastlane/lib/fastlane/plugins/plugin_manager.rb +2 -3
- data/fastlane/lib/fastlane/plugins/template/%gem_name%.gemspec.erb +7 -6
- data/fastlane/lib/fastlane/plugins/template/.circleci/config.yml +1 -1
- data/fastlane/lib/fastlane/plugins/template/.github/workflows/test.yml +1 -1
- data/fastlane/lib/fastlane/plugins/template/.rubocop.yml +31 -35
- data/fastlane/lib/fastlane/plugins/template/spec/spec_helper.rb.erb +1 -1
- data/fastlane/lib/fastlane/setup/setup.rb +23 -10
- data/fastlane/lib/fastlane/setup/setup_ios.rb +3 -3
- data/fastlane/lib/fastlane/swift_fastlane_api_generator.rb +3 -0
- data/fastlane/lib/fastlane/swift_fastlane_function.rb +44 -16
- data/fastlane/lib/fastlane/swift_runner_upgrader.rb +2 -0
- data/fastlane/lib/fastlane/version.rb +2 -2
- data/fastlane/swift/Actions.swift +1 -1
- data/fastlane/swift/Appfile.swift +1 -1
- data/fastlane/swift/ArgumentProcessor.swift +1 -1
- data/fastlane/swift/ControlCommand.swift +1 -1
- data/fastlane/swift/Deliverfile.swift +2 -2
- data/fastlane/swift/DeliverfileProtocol.swift +23 -23
- data/fastlane/swift/Fastfile.swift +1 -1
- data/fastlane/swift/Fastlane.swift +7965 -4213
- data/fastlane/swift/FastlaneSwiftRunner/FastlaneSwiftRunner.xcodeproj/project.pbxproj +4 -0
- data/fastlane/swift/Gymfile.swift +2 -2
- data/fastlane/swift/GymfileProtocol.swift +15 -3
- data/fastlane/swift/LaneFileProtocol.swift +12 -6
- data/fastlane/swift/MainProcess.swift +3 -1
- data/fastlane/swift/Matchfile.swift +2 -2
- data/fastlane/swift/MatchfileProtocol.swift +4 -4
- data/fastlane/swift/OptionalConfigValue.swift +101 -0
- data/fastlane/swift/Plugins.swift +1 -1
- data/fastlane/swift/Precheckfile.swift +2 -2
- data/fastlane/swift/PrecheckfileProtocol.swift +8 -4
- data/fastlane/swift/RubyCommand.swift +2 -2
- data/fastlane/swift/RubyCommandable.swift +1 -1
- data/fastlane/swift/Runner.swift +3 -3
- data/fastlane/swift/RunnerArgument.swift +1 -1
- data/fastlane/swift/Scanfile.swift +2 -2
- data/fastlane/swift/ScanfileProtocol.swift +34 -2
- data/fastlane/swift/Screengrabfile.swift +2 -2
- data/fastlane/swift/ScreengrabfileProtocol.swift +5 -5
- data/fastlane/swift/Snapshotfile.swift +2 -2
- data/fastlane/swift/SnapshotfileProtocol.swift +19 -3
- data/fastlane/swift/SocketClient.swift +4 -3
- data/fastlane/swift/SocketClientDelegateProtocol.swift +1 -1
- data/fastlane/swift/SocketResponse.swift +5 -3
- data/fastlane/swift/formatting/Brewfile.lock.json +24 -16
- data/fastlane/swift/main.swift +1 -1
- data/fastlane/swift/upgrade_manifest.json +1 -1
- data/fastlane_core/lib/fastlane_core.rb +22 -20
- data/fastlane_core/lib/fastlane_core/build_watcher.rb +89 -12
- data/fastlane_core/lib/fastlane_core/cert_checker.rb +12 -7
- data/fastlane_core/lib/fastlane_core/clipboard.rb +20 -0
- data/fastlane_core/lib/fastlane_core/command_executor.rb +3 -9
- data/fastlane_core/lib/fastlane_core/configuration/commander_generator.rb +6 -1
- data/fastlane_core/lib/fastlane_core/configuration/config_item.rb +41 -3
- data/fastlane_core/lib/fastlane_core/configuration/configuration.rb +14 -8
- data/fastlane_core/lib/fastlane_core/device_manager.rb +1 -1
- data/fastlane_core/lib/fastlane_core/helper.rb +78 -14
- data/fastlane_core/lib/fastlane_core/ipa_file_analyser.rb +41 -16
- data/fastlane_core/lib/fastlane_core/ipa_upload_package_builder.rb +3 -2
- data/fastlane_core/lib/fastlane_core/itunes_transporter.rb +20 -15
- data/fastlane_core/lib/fastlane_core/keychain_importer.rb +1 -1
- data/fastlane_core/lib/fastlane_core/languages.rb +2 -2
- data/fastlane_core/lib/fastlane_core/pkg_upload_package_builder.rb +3 -2
- data/fastlane_core/lib/fastlane_core/print_table.rb +5 -3
- data/fastlane_core/lib/fastlane_core/project.rb +48 -28
- data/fastlane_core/lib/fastlane_core/provisioning_profile.rb +3 -1
- data/{deliver/lib/deliver → fastlane_core/lib/fastlane_core}/queue_worker.rb +4 -4
- data/fastlane_core/lib/fastlane_core/swag.rb +1 -1
- data/fastlane_core/lib/fastlane_core/ui/disable_colors.rb +8 -0
- data/fastlane_core/lib/fastlane_core/ui/help.erb +35 -0
- data/fastlane_core/lib/fastlane_core/ui/help_formatter.rb +16 -0
- data/fastlane_core/lib/fastlane_core/ui/implementations/shell.rb +16 -2
- data/fastlane_core/lib/fastlane_core/ui/interface.rb +1 -1
- data/fastlane_core/lib/fastlane_core/update_checker/update_checker.rb +2 -2
- data/frameit/lib/frameit/commands_generator.rb +2 -1
- data/frameit/lib/frameit/config_parser.rb +2 -2
- data/frameit/lib/frameit/device_types.rb +7 -1
- data/frameit/lib/frameit/frame_downloader.rb +2 -1
- data/gym/lib/gym/code_signing_mapping.rb +3 -3
- data/gym/lib/gym/commands_generator.rb +2 -1
- data/gym/lib/gym/error_handler.rb +8 -0
- data/gym/lib/gym/generators/build_command_generator.rb +3 -0
- data/gym/lib/gym/generators/package_command_generator.rb +4 -0
- data/gym/lib/gym/generators/package_command_generator_xcode7.rb +21 -15
- data/gym/lib/gym/options.rb +19 -3
- data/gym/lib/gym/runner.rb +15 -4
- data/match/lib/match/change_password.rb +3 -3
- data/match/lib/match/commands_generator.rb +2 -1
- data/match/lib/match/encryption/interface.rb +1 -1
- data/match/lib/match/encryption/openssl.rb +5 -3
- data/match/lib/match/importer.rb +9 -10
- data/match/lib/match/migrate.rb +2 -3
- data/match/lib/match/module.rb +2 -1
- data/match/lib/match/nuke.rb +19 -15
- data/match/lib/match/options.rb +4 -3
- data/match/lib/match/runner.rb +3 -4
- data/match/lib/match/spaceship_ensure.rb +3 -0
- data/match/lib/match/storage/git_storage.rb +14 -10
- data/match/lib/match/storage/google_cloud_storage.rb +2 -2
- data/match/lib/match/storage/s3_storage.rb +2 -2
- data/pem/lib/pem/commands_generator.rb +2 -1
- data/pilot/lib/pilot.rb +0 -1
- data/pilot/lib/pilot/build_manager.rb +41 -15
- data/pilot/lib/pilot/commands_generator.rb +2 -1
- data/pilot/lib/pilot/manager.rb +11 -8
- data/pilot/lib/pilot/options.rb +18 -9
- data/pilot/lib/pilot/tester_exporter.rb +0 -1
- data/pilot/lib/pilot/tester_manager.rb +0 -1
- data/precheck/lib/precheck/commands_generator.rb +2 -1
- data/precheck/lib/precheck/options.rb +9 -3
- data/precheck/lib/precheck/rule_processor.rb +1 -1
- data/precheck/lib/precheck/runner.rb +14 -9
- data/produce/lib/produce/commands_generator.rb +101 -28
- data/produce/lib/produce/developer_center.rb +42 -4
- data/produce/lib/produce/options.rb +1 -1
- data/produce/lib/produce/service.rb +270 -179
- data/scan/lib/scan/commands_generator.rb +2 -1
- data/scan/lib/scan/detect_values.rb +7 -2
- data/scan/lib/scan/module.rb +4 -0
- data/scan/lib/scan/options.rb +46 -1
- data/scan/lib/scan/runner.rb +88 -3
- data/scan/lib/scan/slack_poster.rb +4 -1
- data/scan/lib/scan/test_command_generator.rb +13 -8
- data/screengrab/lib/screengrab/android_environment.rb +5 -53
- data/screengrab/lib/screengrab/commands_generator.rb +2 -1
- data/screengrab/lib/screengrab/dependency_checker.rb +0 -20
- data/screengrab/lib/screengrab/options.rb +5 -2
- data/screengrab/lib/screengrab/runner.rb +111 -108
- data/sigh/lib/assets/resign.sh +81 -61
- data/sigh/lib/sigh/commands_generator.rb +2 -1
- data/sigh/lib/sigh/download_all.rb +4 -8
- data/sigh/lib/sigh/options.rb +3 -2
- data/sigh/lib/sigh/runner.rb +9 -9
- data/snapshot/lib/assets/SnapfileTemplate +3 -2
- data/snapshot/lib/assets/SnapfileTemplate.swift +2 -1
- data/snapshot/lib/assets/SnapshotHelper.swift +20 -12
- data/snapshot/lib/snapshot/commands_generator.rb +3 -1
- data/snapshot/lib/snapshot/options.rb +22 -2
- data/snapshot/lib/snapshot/reports_generator.rb +7 -1
- data/snapshot/lib/snapshot/simulator_launchers/launcher_configuration.rb +2 -0
- data/snapshot/lib/snapshot/simulator_launchers/simulator_launcher.rb +1 -1
- data/snapshot/lib/snapshot/simulator_launchers/simulator_launcher_base.rb +10 -5
- data/snapshot/lib/snapshot/test_command_generator.rb +18 -4
- data/snapshot/lib/snapshot/test_command_generator_base.rb +3 -1
- data/snapshot/lib/snapshot/test_command_generator_xcode_8.rb +1 -1
- data/snapshot/lib/snapshot/update.rb +1 -1
- data/spaceship/README.md +4 -14
- data/spaceship/lib/spaceship/base.rb +2 -2
- data/spaceship/lib/spaceship/client.rb +44 -16
- data/spaceship/lib/spaceship/commands_generator.rb +4 -2
- data/spaceship/lib/spaceship/connect_api.rb +6 -0
- data/spaceship/lib/spaceship/connect_api/api_client.rb +67 -9
- data/spaceship/lib/spaceship/connect_api/model.rb +1 -1
- data/spaceship/lib/spaceship/connect_api/models/age_rating_declaration.rb +39 -6
- data/spaceship/lib/spaceship/connect_api/models/app.rb +95 -55
- data/spaceship/lib/spaceship/connect_api/models/app_data_usage.rb +59 -0
- data/spaceship/lib/spaceship/connect_api/models/app_data_usage_category.rb +65 -0
- data/spaceship/lib/spaceship/connect_api/models/app_data_usage_data_protection.rb +27 -0
- data/spaceship/lib/spaceship/connect_api/models/app_data_usage_grouping.rb +18 -0
- data/spaceship/lib/spaceship/connect_api/models/app_data_usage_purposes.rb +37 -0
- data/spaceship/lib/spaceship/connect_api/models/app_data_usages_publish_state.rb +36 -0
- data/spaceship/lib/spaceship/connect_api/models/app_info.rb +26 -10
- data/spaceship/lib/spaceship/connect_api/models/app_info_localization.rb +8 -4
- data/spaceship/lib/spaceship/connect_api/models/app_preview.rb +15 -11
- data/spaceship/lib/spaceship/connect_api/models/app_preview_set.rb +18 -9
- data/spaceship/lib/spaceship/connect_api/models/app_screenshot.rb +10 -8
- data/spaceship/lib/spaceship/connect_api/models/app_screenshot_set.rb +20 -11
- data/spaceship/lib/spaceship/connect_api/models/app_store_review_attachment.rb +7 -5
- data/spaceship/lib/spaceship/connect_api/models/app_store_review_detail.rb +6 -4
- data/spaceship/lib/spaceship/connect_api/models/app_store_version.rb +62 -38
- data/spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb +27 -14
- data/spaceship/lib/spaceship/connect_api/models/app_store_version_submission.rb +3 -2
- data/spaceship/lib/spaceship/connect_api/models/beta_app_review_submission.rb +3 -2
- data/spaceship/lib/spaceship/connect_api/models/beta_feedback.rb +6 -4
- data/spaceship/lib/spaceship/connect_api/models/beta_group.rb +29 -3
- data/spaceship/lib/spaceship/connect_api/models/beta_tester.rb +15 -9
- data/spaceship/lib/spaceship/connect_api/models/build.rb +34 -17
- data/spaceship/lib/spaceship/connect_api/models/build_beta_detail.rb +4 -0
- data/spaceship/lib/spaceship/connect_api/models/build_delivery.rb +3 -2
- data/spaceship/lib/spaceship/connect_api/models/bundle_id.rb +41 -6
- data/spaceship/lib/spaceship/connect_api/models/bundle_id_capability.rb +86 -21
- data/spaceship/lib/spaceship/connect_api/models/certificate.rb +12 -8
- data/spaceship/lib/spaceship/connect_api/models/device.rb +36 -4
- data/spaceship/lib/spaceship/connect_api/models/idfa_declaration.rb +6 -4
- data/spaceship/lib/spaceship/connect_api/models/profile.rb +18 -8
- data/spaceship/lib/spaceship/connect_api/models/reset_ratings_request.rb +3 -2
- data/spaceship/lib/spaceship/connect_api/models/sandbox_tester.rb +9 -6
- data/spaceship/lib/spaceship/connect_api/models/territory.rb +3 -2
- data/spaceship/lib/spaceship/connect_api/models/user.rb +6 -4
- data/spaceship/lib/spaceship/connect_api/models/user_invitation.rb +22 -6
- data/spaceship/lib/spaceship/connect_api/provisioning/provisioning.rb +99 -2
- data/spaceship/lib/spaceship/connect_api/response.rb +3 -1
- data/spaceship/lib/spaceship/connect_api/testflight/testflight.rb +50 -0
- data/spaceship/lib/spaceship/connect_api/token.rb +15 -3
- data/spaceship/lib/spaceship/connect_api/tunes/tunes.rb +122 -2
- data/spaceship/lib/spaceship/errors.rb +19 -0
- data/spaceship/lib/spaceship/playground.rb +2 -2
- data/spaceship/lib/spaceship/spaceauth_runner.rb +38 -15
- data/spaceship/lib/spaceship/tunes/iap_detail.rb +1 -1
- data/spaceship/lib/spaceship/tunes/members.rb +1 -1
- data/spaceship/lib/spaceship/tunes/tunes_client.rb +4 -4
- data/spaceship/lib/spaceship/two_step_or_factor_client.rb +59 -33
- data/spaceship/lib/spaceship/ui.rb +2 -2
- data/spaceship/lib/spaceship/upgrade_2fa_later_client.rb +91 -0
- data/supply/lib/supply.rb +1 -1
- data/supply/lib/supply/client.rb +5 -3
- data/supply/lib/supply/commands_generator.rb +2 -1
- data/supply/lib/supply/options.rb +3 -3
- data/supply/lib/supply/uploader.rb +6 -4
- metadata +124 -92
- data/pilot/lib/pilot/features.rb +0 -0
- data/pilot/lib/pilot/tester_util.rb +0 -0
@@ -89,12 +89,12 @@ module Spaceship
|
|
89
89
|
##
|
90
90
|
# Sets client and returns self for chaining.
|
91
91
|
# @return (Spaceship::Base)
|
92
|
-
# rubocop:disable
|
92
|
+
# rubocop:disable Naming/AccessorMethodName
|
93
93
|
def set_client(client)
|
94
94
|
self.client = client
|
95
95
|
self
|
96
96
|
end
|
97
|
-
# rubocop:enable
|
97
|
+
# rubocop:enable Naming/AccessorMethodName
|
98
98
|
|
99
99
|
##
|
100
100
|
# Binds attributes getters and setters to underlying data returned from the API.
|
@@ -57,6 +57,7 @@ module Spaceship
|
|
57
57
|
InternalServerError = Spaceship::InternalServerError
|
58
58
|
BadGatewayError = Spaceship::BadGatewayError
|
59
59
|
AccessForbiddenError = Spaceship::AccessForbiddenError
|
60
|
+
TooManyRequestsError = Spaceship::TooManyRequestsError
|
60
61
|
|
61
62
|
def self.hostname
|
62
63
|
raise "You must implement self.hostname"
|
@@ -133,7 +134,7 @@ module Spaceship
|
|
133
134
|
if teams.count > 1
|
134
135
|
puts("The current user is in #{teams.count} teams. Pass a team ID or call `select_team` to choose a team. Using the first one for now.")
|
135
136
|
end
|
136
|
-
@current_team_id ||=
|
137
|
+
@current_team_id ||= user_details_data['sessionToken']['contentProviderId']
|
137
138
|
end
|
138
139
|
|
139
140
|
# Set a new team ID which will be used from now on
|
@@ -170,6 +171,9 @@ module Spaceship
|
|
170
171
|
|
171
172
|
handle_itc_response(response.body)
|
172
173
|
|
174
|
+
# clear user_details_data cache, as session switch will have changed sessionToken attribute
|
175
|
+
@_cached_user_details = nil
|
176
|
+
|
173
177
|
@current_team_id = team_id
|
174
178
|
end
|
175
179
|
|
@@ -402,6 +406,7 @@ module Spaceship
|
|
402
406
|
# This will also handle 2 step verification and 2 factor authentication
|
403
407
|
#
|
404
408
|
# It is called in `send_login_request` of sub classes (which the method `login`, above, transferred over to via `do_login`)
|
409
|
+
# rubocop:disable Metrics/PerceivedComplexity
|
405
410
|
def send_shared_login_request(user, password)
|
406
411
|
# Check if we have a cached/valid session
|
407
412
|
#
|
@@ -505,9 +510,19 @@ module Spaceship
|
|
505
510
|
# User Credentials are wrong
|
506
511
|
raise InvalidUserCredentialsError.new, "Invalid username and password combination. Used '#{user}' as the username."
|
507
512
|
elsif response.status == 412 && AUTH_TYPES.include?(response.body["authType"])
|
513
|
+
|
514
|
+
if try_upgrade_2fa_later(response)
|
515
|
+
store_cookie
|
516
|
+
fetch_olympus_session
|
517
|
+
return true
|
518
|
+
end
|
519
|
+
|
508
520
|
# Need to acknowledge Apple ID and Privacy statement - https://github.com/fastlane/fastlane/issues/12577
|
509
521
|
# Looking for status of 412 might be enough but might be safer to keep looking only at what is being reported
|
510
|
-
raise AppleIDAndPrivacyAcknowledgementNeeded.new, "Need to acknowledge to Apple's Apple ID and Privacy statement.
|
522
|
+
raise AppleIDAndPrivacyAcknowledgementNeeded.new, "Need to acknowledge to Apple's Apple ID and Privacy statement. " \
|
523
|
+
"Please manually log into https://appleid.apple.com (or https://appstoreconnect.apple.com) to acknowledge the statement. " \
|
524
|
+
"Your account might also be asked to upgrade to 2FA. " \
|
525
|
+
"Set SPACESHIP_SKIP_2FA_UPGRADE=1 for fastlane to automaticaly bypass 2FA upgrade if possible."
|
511
526
|
elsif (response['Set-Cookie'] || "").include?("itctx")
|
512
527
|
raise "Looks like your Apple ID is not enabled for App Store Connect, make sure to be able to login online"
|
513
528
|
else
|
@@ -516,6 +531,7 @@ module Spaceship
|
|
516
531
|
end
|
517
532
|
end
|
518
533
|
end
|
534
|
+
# rubocop:enable Metrics/PerceivedComplexity
|
519
535
|
|
520
536
|
# Get the `itctx` from the new (22nd May 2017) API endpoint "olympus"
|
521
537
|
# Update (29th March 2019) olympus migrates to new appstoreconnect API
|
@@ -645,6 +661,17 @@ module Spaceship
|
|
645
661
|
retry
|
646
662
|
end
|
647
663
|
raise ex # re-raise the exception
|
664
|
+
rescue TooManyRequestsError => ex
|
665
|
+
tries -= 1
|
666
|
+
unless tries.zero?
|
667
|
+
msg = "Timeout received: '#{ex.class}', '#{ex.message}'. Retrying after #{ex.retry_after} seconds (remaining: #{tries})..."
|
668
|
+
puts(msg) if Spaceship::Globals.verbose?
|
669
|
+
logger.warn(msg)
|
670
|
+
|
671
|
+
sleep(ex.retry_after) unless Object.const_defined?("SpecHelper")
|
672
|
+
retry
|
673
|
+
end
|
674
|
+
raise ex # re-raise the exception
|
648
675
|
rescue \
|
649
676
|
Faraday::ParsingError, # <h2>Internal Server Error</h2> with content type json
|
650
677
|
InternalServerError => ex
|
@@ -856,10 +883,7 @@ module Spaceship
|
|
856
883
|
response = @client.send(method, url_or_path, params, headers, &block)
|
857
884
|
log_response(method, url_or_path, response, headers, &block)
|
858
885
|
|
859
|
-
|
860
|
-
if resp_hash[:status] == 401
|
861
|
-
handle_401(response)
|
862
|
-
end
|
886
|
+
handle_error(response)
|
863
887
|
|
864
888
|
if response.body.to_s.include?("<title>302 Found</title>")
|
865
889
|
raise AppleTimeoutError.new, "Apple 302 detected - this might be temporary server error, check https://developer.apple.com/system-status/ to see if there is a known downtime"
|
@@ -869,20 +893,23 @@ module Spaceship
|
|
869
893
|
raise BadGatewayError.new, "Apple 502 detected - this might be temporary server error, try again later"
|
870
894
|
end
|
871
895
|
|
872
|
-
if resp_hash[:status] == 403
|
873
|
-
msg = "Access forbidden"
|
874
|
-
logger.warn(msg)
|
875
|
-
raise AccessForbiddenError.new, msg
|
876
|
-
end
|
877
|
-
|
878
896
|
return response
|
879
897
|
end
|
880
898
|
end
|
881
899
|
|
882
|
-
def
|
883
|
-
|
884
|
-
|
885
|
-
|
900
|
+
def handle_error(response)
|
901
|
+
case response.status
|
902
|
+
when 401
|
903
|
+
msg = "Auth lost"
|
904
|
+
logger.warn(msg)
|
905
|
+
raise UnauthorizedAccessError.new, "Unauthorized Access"
|
906
|
+
when 403
|
907
|
+
msg = "Access forbidden"
|
908
|
+
logger.warn(msg)
|
909
|
+
raise AccessForbiddenError.new, msg
|
910
|
+
when 429
|
911
|
+
raise TooManyRequestsError, response.to_hash
|
912
|
+
end
|
886
913
|
end
|
887
914
|
|
888
915
|
def send_request_auto_paginate(method, url_or_path, params, headers, &block)
|
@@ -911,3 +938,4 @@ module Spaceship
|
|
911
938
|
end
|
912
939
|
|
913
940
|
require 'spaceship/two_step_or_factor_client'
|
941
|
+
require 'spaceship/upgrade_2fa_later_client'
|
@@ -3,6 +3,7 @@ require 'highline'
|
|
3
3
|
HighLine.track_eof = false
|
4
4
|
|
5
5
|
require 'fastlane/version'
|
6
|
+
require 'fastlane_core/ui/help_formatter'
|
6
7
|
require_relative 'playground'
|
7
8
|
require_relative 'spaceauth_runner'
|
8
9
|
|
@@ -21,7 +22,7 @@ module Spaceship
|
|
21
22
|
program :help, 'Author', 'Felix Krause <spaceship@krausefx.com>'
|
22
23
|
program :help, 'Website', 'https://fastlane.tools'
|
23
24
|
program :help, 'GitHub', 'https://github.com/fastlane/fastlane/tree/master/spaceship'
|
24
|
-
program :help_formatter,
|
25
|
+
program :help_formatter, FastlaneCore::HelpFormatter
|
25
26
|
|
26
27
|
global_option('-u', '--user USERNAME', 'Specify the Apple ID you want to log in with')
|
27
28
|
global_option('--verbose') { FastlaneCore::Globals.verbose = true }
|
@@ -39,9 +40,10 @@ module Spaceship
|
|
39
40
|
command :spaceauth do |c|
|
40
41
|
c.syntax = 'fastlane spaceship spaceauth'
|
41
42
|
c.description = 'Authentication helper for spaceship/fastlane to work with Apple 2-Step/2FA'
|
43
|
+
c.option('--copy_to_clipboard', 'Whether the session string should be copied to clipboard. For more info see https://docs.fastlane.tools/best-practices/continuous-integration/#storing-a-manually-verified-session-using-spaceauth`')
|
42
44
|
|
43
45
|
c.action do |args, options|
|
44
|
-
Spaceship::SpaceauthRunner.new(username: options.user).run
|
46
|
+
Spaceship::SpaceauthRunner.new(username: options.user, copy_to_clipboard: options.copy_to_clipboard).run
|
45
47
|
end
|
46
48
|
end
|
47
49
|
|
@@ -35,6 +35,12 @@ require 'spaceship/connect_api/models/custom_app_organization'
|
|
35
35
|
require 'spaceship/connect_api/models/custom_app_user'
|
36
36
|
require 'spaceship/connect_api/models/pre_release_version'
|
37
37
|
|
38
|
+
require 'spaceship/connect_api/models/app_data_usage'
|
39
|
+
require 'spaceship/connect_api/models/app_data_usage_category'
|
40
|
+
require 'spaceship/connect_api/models/app_data_usage_data_protection'
|
41
|
+
require 'spaceship/connect_api/models/app_data_usage_grouping'
|
42
|
+
require 'spaceship/connect_api/models/app_data_usage_purposes'
|
43
|
+
require 'spaceship/connect_api/models/app_data_usages_publish_state'
|
38
44
|
require 'spaceship/connect_api/models/age_rating_declaration'
|
39
45
|
require 'spaceship/connect_api/models/app_category'
|
40
46
|
require 'spaceship/connect_api/models/app_info'
|
@@ -150,6 +150,12 @@ module Spaceship
|
|
150
150
|
|
151
151
|
protected
|
152
152
|
|
153
|
+
class TimeoutRetryError < StandardError
|
154
|
+
def initialize(msg)
|
155
|
+
super
|
156
|
+
end
|
157
|
+
end
|
158
|
+
|
153
159
|
def with_asc_retry(tries = 5, &_block)
|
154
160
|
tries = 1 if Object.const_defined?("SpecHelper")
|
155
161
|
|
@@ -159,7 +165,7 @@ module Spaceship
|
|
159
165
|
|
160
166
|
if [500, 504].include?(status)
|
161
167
|
msg = "Timeout received! Retrying after 3 seconds (remaining: #{tries})..."
|
162
|
-
raise msg
|
168
|
+
raise TimeoutRetryError, msg
|
163
169
|
end
|
164
170
|
|
165
171
|
return response
|
@@ -167,7 +173,7 @@ module Spaceship
|
|
167
173
|
# Catch unathorized access and re-raising
|
168
174
|
# There is no need to try again
|
169
175
|
raise error
|
170
|
-
rescue => error
|
176
|
+
rescue TimeoutRetryError => error
|
171
177
|
tries -= 1
|
172
178
|
puts(error) if Spaceship::Globals.verbose?
|
173
179
|
if tries.zero?
|
@@ -190,20 +196,35 @@ module Spaceship
|
|
190
196
|
|
191
197
|
raise UnexpectedResponse, response.body['error'] if response.body['error']
|
192
198
|
|
193
|
-
raise UnexpectedResponse,
|
199
|
+
raise UnexpectedResponse, format_errors(response) if response.body['errors']
|
194
200
|
|
195
201
|
raise UnexpectedResponse, "Temporary App Store Connect error: #{response.body}" if response.body['statusCode'] == 'ERROR'
|
196
202
|
|
197
203
|
store_csrf_tokens(response)
|
198
204
|
|
199
|
-
return Spaceship::ConnectAPI::Response.new(body: response.body, status: response.status, client: self)
|
205
|
+
return Spaceship::ConnectAPI::Response.new(body: response.body, status: response.status, headers: response.headers, client: self)
|
200
206
|
end
|
201
207
|
|
202
|
-
|
203
|
-
|
208
|
+
# Overridden from Spaceship::Client
|
209
|
+
def handle_error(response)
|
210
|
+
body = response.body.empty? ? {} : response.body
|
211
|
+
body = JSON.parse(body) if body.kind_of?(String)
|
212
|
+
|
213
|
+
case response.status.to_i
|
214
|
+
when 401
|
215
|
+
raise UnauthorizedAccessError, format_errors(response)
|
216
|
+
when 403
|
217
|
+
error = (body['errors'] || []).first || {}
|
218
|
+
error_code = error['code']
|
219
|
+
if error_code == "FORBIDDEN.REQUIRED_AGREEMENTS_MISSING_OR_EXPIRED"
|
220
|
+
raise ProgramLicenseAgreementUpdated, format_errors(response)
|
221
|
+
else
|
222
|
+
raise AccessForbiddenError, format_errors(response)
|
223
|
+
end
|
224
|
+
end
|
204
225
|
end
|
205
226
|
|
206
|
-
def
|
227
|
+
def format_errors(response)
|
207
228
|
# Example error format
|
208
229
|
# {
|
209
230
|
# "errors":[
|
@@ -247,8 +268,39 @@ module Spaceship
|
|
247
268
|
# ]
|
248
269
|
# }
|
249
270
|
|
250
|
-
|
251
|
-
|
271
|
+
# Detail is missing in this response making debugging super hard
|
272
|
+
# {"errors" =>
|
273
|
+
# [
|
274
|
+
# {
|
275
|
+
# "id"=>"80ea6cff-0043-4543-9cd1-3e26b0fce383",
|
276
|
+
# "status"=>"409",
|
277
|
+
# "code"=>"ENTITY_ERROR.RELATIONSHIP.INVALID",
|
278
|
+
# "title"=>"The provided entity includes a relationship with an invalid value",
|
279
|
+
# "source"=>{
|
280
|
+
# "pointer"=>"/data/relationships/primarySubcategoryOne"
|
281
|
+
# }
|
282
|
+
# }
|
283
|
+
# ]
|
284
|
+
# }
|
285
|
+
|
286
|
+
# Membership expired
|
287
|
+
# {
|
288
|
+
# "errors" : [
|
289
|
+
# {
|
290
|
+
# "id" : "UUID",
|
291
|
+
# "status" : "403",
|
292
|
+
# "code" : "FORBIDDEN_ERROR",
|
293
|
+
# "title" : "This request is forbidden for security reasons",
|
294
|
+
# "detail" : "Team ID: 'ID' is not associated with an active membership. To check your teams membership status, sign in your account on the developer website. https://developer.apple.com/account/"
|
295
|
+
# }
|
296
|
+
# ]
|
297
|
+
# }
|
298
|
+
|
299
|
+
body = response.body.empty? ? {} : response.body
|
300
|
+
body = JSON.parse(body) if body.kind_of?(String)
|
301
|
+
|
302
|
+
formatted_errors = (body['errors'] || []).map do |error|
|
303
|
+
messages = [[error['title'], error['detail'], error.dig("source", "pointer")].compact.join(" - ")]
|
252
304
|
|
253
305
|
meta = error["meta"] || {}
|
254
306
|
associated_errors = meta["associatedErrors"] || {}
|
@@ -257,6 +309,12 @@ module Spaceship
|
|
257
309
|
[[associated_error["title"], associated_error["detail"]].compact.join(" - ")]
|
258
310
|
end
|
259
311
|
end.flatten.join("\n")
|
312
|
+
|
313
|
+
if formatted_errors.empty?
|
314
|
+
formatted_errors << "Unknown error"
|
315
|
+
end
|
316
|
+
|
317
|
+
return formatted_errors
|
260
318
|
end
|
261
319
|
|
262
320
|
private
|
@@ -30,7 +30,7 @@ module Spaceship
|
|
30
30
|
# Creates alias for :minOsVersion to :min_os_version
|
31
31
|
#
|
32
32
|
def attr_mapping(attr_map)
|
33
|
-
self.reverse_attr_map ||= attr_map.invert.
|
33
|
+
self.reverse_attr_map ||= attr_map.invert.transform_keys(&:to_sym)
|
34
34
|
attr_map.each do |key, value|
|
35
35
|
# Actual
|
36
36
|
reader = value.to_sym
|
@@ -6,23 +6,29 @@ module Spaceship
|
|
6
6
|
|
7
7
|
# Rating
|
8
8
|
attr_accessor :alcohol_tobacco_or_drug_use_or_references
|
9
|
+
attr_accessor :contests
|
9
10
|
attr_accessor :gambling_simulated
|
10
11
|
attr_accessor :medical_or_treatment_information
|
11
12
|
attr_accessor :profanity_or_crude_humor
|
12
13
|
attr_accessor :sexual_content_graphic_and_nudity
|
14
|
+
attr_accessor :sexual_content_or_nudity
|
13
15
|
attr_accessor :horror_or_fear_themes
|
14
16
|
attr_accessor :mature_or_suggestive_themes
|
15
17
|
attr_accessor :violence_cartoon_or_fantasy
|
16
18
|
attr_accessor :violence_realistic_prolonged_graphic_or_sadistic
|
17
19
|
attr_accessor :violence_realistic
|
18
20
|
|
19
|
-
#
|
20
|
-
attr_accessor :
|
21
|
+
# Boolean
|
22
|
+
attr_accessor :gambling
|
23
|
+
attr_accessor :seventeen_plus
|
21
24
|
attr_accessor :unrestricted_web_access
|
22
25
|
|
23
26
|
# KidsAge
|
24
27
|
attr_accessor :kids_age_band
|
25
28
|
|
29
|
+
# Deprecated as of App Store Connect API 1.3
|
30
|
+
attr_accessor :gambling_and_contests
|
31
|
+
|
26
32
|
module Rating
|
27
33
|
NONE = "NONE"
|
28
34
|
INFREQUENT_OR_MILD = "INFREQUENT_OR_MILD"
|
@@ -37,10 +43,12 @@ module Spaceship
|
|
37
43
|
|
38
44
|
attr_mapping({
|
39
45
|
"alcoholTobaccoOrDrugUseOrReferences" => "alcohol_tobacco_or_drug_use_or_references",
|
40
|
-
"
|
46
|
+
"contests" => "contests",
|
47
|
+
"gambling" => "gambling",
|
41
48
|
"gamblingSimulated" => "gambling_simulated",
|
42
49
|
"medicalOrTreatmentInformation" => "medical_or_treatment_information",
|
43
50
|
"profanityOrCrudeHumor" => "profanity_or_crude_humor",
|
51
|
+
"seventeenPlus" => "seventeen_plus",
|
44
52
|
"sexualContentGraphicAndNudity" => "sexual_content_graphic_and_nudity",
|
45
53
|
"sexualContentOrNudity" => "sexual_content_or_nudity",
|
46
54
|
"horrorOrFearThemes" => "horror_or_fear_themes",
|
@@ -49,7 +57,10 @@ module Spaceship
|
|
49
57
|
"violenceCartoonOrFantasy" => "violence_cartoon_or_fantasy",
|
50
58
|
"violenceRealisticProlongedGraphicOrSadistic" => "violence_realistic_prolonged_graphic_or_sadistic",
|
51
59
|
"violenceRealistic" => "violence_realistic",
|
52
|
-
"kidsAgeBand" => "kids_age_band"
|
60
|
+
"kidsAgeBand" => "kids_age_band",
|
61
|
+
|
62
|
+
# Deprecated as of App Store Connect API 1.3
|
63
|
+
"gamblingAndContests" => "gambling_and_contests",
|
53
64
|
})
|
54
65
|
|
55
66
|
def self.type
|
@@ -83,6 +94,27 @@ module Spaceship
|
|
83
94
|
1 => true
|
84
95
|
}
|
85
96
|
|
97
|
+
def self.map_deprecation_if_possible(attributes)
|
98
|
+
attributes = attributes.dup
|
99
|
+
messages = []
|
100
|
+
errors = []
|
101
|
+
|
102
|
+
value = attributes.delete('gamblingAndContests')
|
103
|
+
return attributes, messages, errors if value.nil?
|
104
|
+
|
105
|
+
messages << "Age Rating 'gamblingAndContests' has been deprecated and split into 'gambling' and 'contests'"
|
106
|
+
|
107
|
+
attributes['gambling'] = value
|
108
|
+
if value == true
|
109
|
+
errors << "'gamblingAndContests' could not be mapped to 'contests' - 'contests' requires a value of 'NONE', 'INFREQUENT_OR_MILD', or 'FREQUENT_OR_INTENSE'"
|
110
|
+
attributes['contests'] = value
|
111
|
+
else
|
112
|
+
attributes['contests'] = 'NONE'
|
113
|
+
end
|
114
|
+
|
115
|
+
return attributes, messages, errors
|
116
|
+
end
|
117
|
+
|
86
118
|
def self.map_key_from_itc(key)
|
87
119
|
key = key.gsub("MZGenre.", "")
|
88
120
|
return nil if key.empty?
|
@@ -105,9 +137,10 @@ module Spaceship
|
|
105
137
|
# API
|
106
138
|
#
|
107
139
|
|
108
|
-
def update(attributes: nil)
|
140
|
+
def update(client: nil, attributes: nil)
|
141
|
+
client ||= Spaceship::ConnectAPI
|
109
142
|
attributes = reverse_attr_mapping(attributes)
|
110
|
-
|
143
|
+
client.patch_age_rating_declaration(age_rating_declaration_id: id, attributes: attributes)
|
111
144
|
end
|
112
145
|
end
|
113
146
|
end
|
@@ -69,19 +69,22 @@ module Spaceship
|
|
69
69
|
# Apps
|
70
70
|
#
|
71
71
|
|
72
|
-
def self.all(filter: {}, includes: ESSENTIAL_INCLUDES, limit: nil, sort: nil)
|
73
|
-
|
72
|
+
def self.all(client: nil, filter: {}, includes: ESSENTIAL_INCLUDES, limit: nil, sort: nil)
|
73
|
+
client ||= Spaceship::ConnectAPI
|
74
|
+
resps = client.get_apps(filter: filter, includes: includes, limit: limit, sort: sort).all_pages
|
74
75
|
return resps.flat_map(&:to_models)
|
75
76
|
end
|
76
77
|
|
77
|
-
def self.find(bundle_id)
|
78
|
-
|
78
|
+
def self.find(bundle_id, client: nil)
|
79
|
+
client ||= Spaceship::ConnectAPI
|
80
|
+
return all(client: client, filter: { bundleId: bundle_id }).find do |app|
|
79
81
|
app.bundle_id == bundle_id
|
80
82
|
end
|
81
83
|
end
|
82
84
|
|
83
|
-
def self.create(name: nil, version_string: nil, sku: nil, primary_locale: nil, bundle_id: nil, platforms: nil, company_name: nil)
|
84
|
-
Spaceship::ConnectAPI
|
85
|
+
def self.create(client: nil, name: nil, version_string: nil, sku: nil, primary_locale: nil, bundle_id: nil, platforms: nil, company_name: nil)
|
86
|
+
client ||= Spaceship::ConnectAPI
|
87
|
+
client.post_app(
|
85
88
|
name: name,
|
86
89
|
version_string: version_string,
|
87
90
|
sku: sku,
|
@@ -92,35 +95,40 @@ module Spaceship
|
|
92
95
|
)
|
93
96
|
end
|
94
97
|
|
95
|
-
def self.get(app_id: nil, includes: "appStoreVersions")
|
96
|
-
|
98
|
+
def self.get(client: nil, app_id: nil, includes: "appStoreVersions")
|
99
|
+
client ||= Spaceship::ConnectAPI
|
100
|
+
return client.get_app(app_id: app_id, includes: includes).first
|
97
101
|
end
|
98
102
|
|
99
|
-
def update(attributes: nil, app_price_tier_id: nil, territory_ids: nil)
|
103
|
+
def update(client: nil, attributes: nil, app_price_tier_id: nil, territory_ids: nil)
|
104
|
+
client ||= Spaceship::ConnectAPI
|
100
105
|
attributes = reverse_attr_mapping(attributes)
|
101
|
-
return
|
106
|
+
return client.patch_app(app_id: id, attributes: attributes, app_price_tier_id: app_price_tier_id, territory_ids: territory_ids)
|
102
107
|
end
|
103
108
|
|
104
109
|
#
|
105
110
|
# App Info
|
106
111
|
#
|
107
112
|
|
108
|
-
def fetch_live_app_info(includes: Spaceship::ConnectAPI::AppInfo::ESSENTIAL_INCLUDES)
|
113
|
+
def fetch_live_app_info(client: nil, includes: Spaceship::ConnectAPI::AppInfo::ESSENTIAL_INCLUDES)
|
114
|
+
client ||= Spaceship::ConnectAPI
|
109
115
|
states = [
|
110
116
|
Spaceship::ConnectAPI::AppInfo::AppStoreState::READY_FOR_SALE,
|
111
117
|
Spaceship::ConnectAPI::AppInfo::AppStoreState::PENDING_APPLE_RELEASE,
|
112
118
|
Spaceship::ConnectAPI::AppInfo::AppStoreState::PENDING_DEVELOPER_RELEASE,
|
113
119
|
Spaceship::ConnectAPI::AppInfo::AppStoreState::PROCESSING_FOR_APP_STORE,
|
114
|
-
Spaceship::ConnectAPI::AppInfo::AppStoreState::IN_REVIEW
|
120
|
+
Spaceship::ConnectAPI::AppInfo::AppStoreState::IN_REVIEW,
|
121
|
+
Spaceship::ConnectAPI::AppInfo::AppStoreState::DEVELOPER_REMOVED_FROM_SALE
|
115
122
|
]
|
116
123
|
|
117
|
-
resp =
|
124
|
+
resp = client.get_app_infos(app_id: id, includes: includes)
|
118
125
|
return resp.to_models.select do |model|
|
119
126
|
states.include?(model.app_store_state)
|
120
127
|
end.first
|
121
128
|
end
|
122
129
|
|
123
|
-
def fetch_edit_app_info(includes: Spaceship::ConnectAPI::AppInfo::ESSENTIAL_INCLUDES)
|
130
|
+
def fetch_edit_app_info(client: nil, includes: Spaceship::ConnectAPI::AppInfo::ESSENTIAL_INCLUDES)
|
131
|
+
client ||= Spaceship::ConnectAPI
|
124
132
|
states = [
|
125
133
|
Spaceship::ConnectAPI::AppInfo::AppStoreState::PREPARE_FOR_SUBMISSION,
|
126
134
|
Spaceship::ConnectAPI::AppInfo::AppStoreState::DEVELOPER_REJECTED,
|
@@ -130,19 +138,26 @@ module Spaceship
|
|
130
138
|
Spaceship::ConnectAPI::AppInfo::AppStoreState::INVALID_BINARY
|
131
139
|
]
|
132
140
|
|
133
|
-
resp =
|
141
|
+
resp = client.get_app_infos(app_id: id, includes: includes)
|
134
142
|
return resp.to_models.select do |model|
|
135
143
|
states.include?(model.app_store_state)
|
136
144
|
end.first
|
137
145
|
end
|
138
146
|
|
147
|
+
def fetch_latest_app_info(client: nil, includes: Spaceship::ConnectAPI::AppInfo::ESSENTIAL_INCLUDES)
|
148
|
+
client ||= Spaceship::ConnectAPI
|
149
|
+
resp = client.get_app_infos(app_id: id, includes: includes)
|
150
|
+
return resp.to_models.first
|
151
|
+
end
|
152
|
+
|
139
153
|
#
|
140
154
|
# Available Territories
|
141
155
|
#
|
142
156
|
|
143
|
-
def fetch_available_territories(filter: {}, includes: nil, limit: nil, sort: nil)
|
157
|
+
def fetch_available_territories(client: nil, filter: {}, includes: nil, limit: nil, sort: nil)
|
158
|
+
client ||= Spaceship::ConnectAPI
|
144
159
|
filter ||= {}
|
145
|
-
resps =
|
160
|
+
resps = client.get_available_territories(app_id: id, filter: filter, includes: includes, limit: limit, sort: sort).all_pages
|
146
161
|
return resps.flat_map(&:to_models)
|
147
162
|
end
|
148
163
|
|
@@ -150,8 +165,9 @@ module Spaceship
|
|
150
165
|
# App Pricing
|
151
166
|
#
|
152
167
|
|
153
|
-
def fetch_app_prices(filter: {}, includes: "priceTier", limit: nil, sort: nil)
|
154
|
-
|
168
|
+
def fetch_app_prices(client: nil, filter: {}, includes: "priceTier", limit: nil, sort: nil)
|
169
|
+
client ||= Spaceship::ConnectAPI
|
170
|
+
resp = client.get_app_prices(app_id: id, filter: filter, includes: includes, limit: limit, sort: sort)
|
155
171
|
return resp.to_models
|
156
172
|
end
|
157
173
|
|
@@ -159,7 +175,8 @@ module Spaceship
|
|
159
175
|
# App Store Versions
|
160
176
|
#
|
161
177
|
|
162
|
-
def reject_version_if_possible!(platform: nil)
|
178
|
+
def reject_version_if_possible!(client: nil, platform: nil)
|
179
|
+
client ||= Spaceship::ConnectAPI
|
163
180
|
platform ||= Spaceship::ConnectAPI::Platform::IOS
|
164
181
|
filter = {
|
165
182
|
appStoreState: [
|
@@ -172,7 +189,7 @@ module Spaceship
|
|
172
189
|
}
|
173
190
|
|
174
191
|
# Get the latest version
|
175
|
-
version = get_app_store_versions(filter: filter, includes: "appStoreVersionSubmission")
|
192
|
+
version = get_app_store_versions(client: client, filter: filter, includes: "appStoreVersionSubmission")
|
176
193
|
.sort_by { |v| Gem::Version.new(v.version_string) }
|
177
194
|
.last
|
178
195
|
|
@@ -184,46 +201,53 @@ module Spaceship
|
|
184
201
|
# This will either create a new version or change the version number
|
185
202
|
# from an existing version
|
186
203
|
# @return (Bool) Was something changed?
|
187
|
-
def ensure_version!(version_string, platform: nil)
|
188
|
-
|
204
|
+
def ensure_version!(version_string, platform: nil, client: nil)
|
205
|
+
client ||= Spaceship::ConnectAPI
|
206
|
+
app_store_version = get_edit_app_store_version(client: client, platform: platform)
|
189
207
|
|
190
208
|
if app_store_version
|
191
209
|
if version_string != app_store_version.version_string
|
192
210
|
attributes = { versionString: version_string }
|
193
|
-
app_store_version.update(attributes: attributes)
|
211
|
+
app_store_version.update(client: client, attributes: attributes)
|
194
212
|
return true
|
195
213
|
end
|
196
214
|
return false
|
197
215
|
else
|
198
216
|
attributes = { versionString: version_string, platform: platform }
|
199
|
-
|
217
|
+
client.post_app_store_version(app_id: id, attributes: attributes)
|
200
218
|
|
201
219
|
return true
|
202
220
|
end
|
203
221
|
end
|
204
222
|
|
205
|
-
def get_latest_app_store_version(platform: nil, includes: nil)
|
223
|
+
def get_latest_app_store_version(client: nil, platform: nil, includes: nil)
|
224
|
+
client ||= Spaceship::ConnectAPI
|
206
225
|
platform ||= Spaceship::ConnectAPI::Platform::IOS
|
207
226
|
filter = {
|
208
227
|
platform: platform
|
209
228
|
}
|
210
229
|
|
211
230
|
# Get the latest version
|
212
|
-
return get_app_store_versions(filter: filter, includes: includes)
|
231
|
+
return get_app_store_versions(client: client, filter: filter, includes: includes)
|
213
232
|
.sort_by { |v| Date.parse(v.created_date) }
|
214
233
|
.last
|
215
234
|
end
|
216
235
|
|
217
|
-
def get_live_app_store_version(platform: nil, includes: Spaceship::ConnectAPI::AppStoreVersion::ESSENTIAL_INCLUDES)
|
236
|
+
def get_live_app_store_version(client: nil, platform: nil, includes: Spaceship::ConnectAPI::AppStoreVersion::ESSENTIAL_INCLUDES)
|
237
|
+
client ||= Spaceship::ConnectAPI
|
218
238
|
platform ||= Spaceship::ConnectAPI::Platform::IOS
|
219
239
|
filter = {
|
220
|
-
appStoreState:
|
240
|
+
appStoreState: [
|
241
|
+
Spaceship::ConnectAPI::AppStoreVersion::AppStoreState::READY_FOR_SALE,
|
242
|
+
Spaceship::ConnectAPI::AppStoreVersion::AppStoreState::DEVELOPER_REMOVED_FROM_SALE
|
243
|
+
].join(","),
|
221
244
|
platform: platform
|
222
245
|
}
|
223
|
-
return get_app_store_versions(filter: filter, includes: includes).first
|
246
|
+
return get_app_store_versions(client: client, filter: filter, includes: includes).first
|
224
247
|
end
|
225
248
|
|
226
|
-
def get_edit_app_store_version(platform: nil, includes: Spaceship::ConnectAPI::AppStoreVersion::ESSENTIAL_INCLUDES)
|
249
|
+
def get_edit_app_store_version(client: nil, platform: nil, includes: Spaceship::ConnectAPI::AppStoreVersion::ESSENTIAL_INCLUDES)
|
250
|
+
client ||= Spaceship::ConnectAPI
|
227
251
|
platform ||= Spaceship::ConnectAPI::Platform::IOS
|
228
252
|
filter = {
|
229
253
|
appStoreState: [
|
@@ -238,21 +262,23 @@ module Spaceship
|
|
238
262
|
}
|
239
263
|
|
240
264
|
# Get the latest version
|
241
|
-
return get_app_store_versions(filter: filter, includes: includes)
|
265
|
+
return get_app_store_versions(client: client, filter: filter, includes: includes)
|
242
266
|
.sort_by { |v| Gem::Version.new(v.version_string) }
|
243
267
|
.last
|
244
268
|
end
|
245
269
|
|
246
|
-
def get_in_review_app_store_version(platform: nil, includes: Spaceship::ConnectAPI::AppStoreVersion::ESSENTIAL_INCLUDES)
|
270
|
+
def get_in_review_app_store_version(client: nil, platform: nil, includes: Spaceship::ConnectAPI::AppStoreVersion::ESSENTIAL_INCLUDES)
|
271
|
+
client ||= Spaceship::ConnectAPI
|
247
272
|
platform ||= Spaceship::ConnectAPI::Platform::IOS
|
248
273
|
filter = {
|
249
274
|
appStoreState: Spaceship::ConnectAPI::AppStoreVersion::AppStoreState::IN_REVIEW,
|
250
275
|
platform: platform
|
251
276
|
}
|
252
|
-
return get_app_store_versions(filter: filter, includes: includes).first
|
277
|
+
return get_app_store_versions(client: client, filter: filter, includes: includes).first
|
253
278
|
end
|
254
279
|
|
255
|
-
def get_pending_release_app_store_version(platform: nil, includes: Spaceship::ConnectAPI::AppStoreVersion::ESSENTIAL_INCLUDES)
|
280
|
+
def get_pending_release_app_store_version(client: nil, platform: nil, includes: Spaceship::ConnectAPI::AppStoreVersion::ESSENTIAL_INCLUDES)
|
281
|
+
client ||= Spaceship::ConnectAPI
|
256
282
|
platform ||= Spaceship::ConnectAPI::Platform::IOS
|
257
283
|
filter = {
|
258
284
|
appStoreState: [
|
@@ -261,12 +287,18 @@ module Spaceship
|
|
261
287
|
].join(','),
|
262
288
|
platform: platform
|
263
289
|
}
|
264
|
-
return get_app_store_versions(filter: filter, includes: includes).first
|
290
|
+
return get_app_store_versions(client: client, filter: filter, includes: includes).first
|
265
291
|
end
|
266
292
|
|
267
|
-
def get_app_store_versions(filter: {}, includes: Spaceship::ConnectAPI::AppStoreVersion::ESSENTIAL_INCLUDES, limit: nil, sort: nil)
|
268
|
-
|
269
|
-
|
293
|
+
def get_app_store_versions(client: nil, filter: {}, includes: Spaceship::ConnectAPI::AppStoreVersion::ESSENTIAL_INCLUDES, limit: nil, sort: nil)
|
294
|
+
client ||= Spaceship::ConnectAPI
|
295
|
+
if limit.nil?
|
296
|
+
resps = client.get_app_store_versions(app_id: id, filter: filter, includes: includes, limit: limit, sort: sort).all_pages
|
297
|
+
return resps.flat_map(&:to_models)
|
298
|
+
else
|
299
|
+
resp = client.get_app_store_versions(app_id: id, filter: filter, includes: includes, limit: limit, sort: sort)
|
300
|
+
return resp.to_models
|
301
|
+
end
|
270
302
|
end
|
271
303
|
|
272
304
|
#
|
@@ -291,11 +323,12 @@ module Spaceship
|
|
291
323
|
# Beta Feedback
|
292
324
|
#
|
293
325
|
|
294
|
-
def get_beta_feedback(filter: {}, includes: "tester,build,screenshots", limit: nil, sort: nil)
|
326
|
+
def get_beta_feedback(client: nil, filter: {}, includes: "tester,build,screenshots", limit: nil, sort: nil)
|
327
|
+
client ||= Spaceship::ConnectAPI
|
295
328
|
filter ||= {}
|
296
329
|
filter["build.app"] = id
|
297
330
|
|
298
|
-
resps =
|
331
|
+
resps = client.get_beta_feedback(filter: filter, includes: includes, limit: limit, sort: sort).all_pages
|
299
332
|
return resps.flat_map(&:to_models)
|
300
333
|
end
|
301
334
|
|
@@ -303,11 +336,12 @@ module Spaceship
|
|
303
336
|
# Beta Testers
|
304
337
|
#
|
305
338
|
|
306
|
-
def get_beta_testers(filter: {}, includes: nil, limit: nil, sort: nil)
|
339
|
+
def get_beta_testers(client: nil, filter: {}, includes: nil, limit: nil, sort: nil)
|
340
|
+
client ||= Spaceship::ConnectAPI
|
307
341
|
filter ||= {}
|
308
342
|
filter[:apps] = id
|
309
343
|
|
310
|
-
resps =
|
344
|
+
resps = client.get_beta_testers(filter: filter, includes: includes, limit: limit, sort: sort).all_pages
|
311
345
|
return resps.flat_map(&:to_models)
|
312
346
|
end
|
313
347
|
|
@@ -315,40 +349,45 @@ module Spaceship
|
|
315
349
|
# Builds
|
316
350
|
#
|
317
351
|
|
318
|
-
def get_builds(filter: {}, includes: nil, limit: nil, sort: nil)
|
352
|
+
def get_builds(client: nil, filter: {}, includes: nil, limit: nil, sort: nil)
|
353
|
+
client ||= Spaceship::ConnectAPI
|
319
354
|
filter ||= {}
|
320
355
|
filter[:app] = id
|
321
356
|
|
322
|
-
resps =
|
357
|
+
resps = client.get_builds(filter: filter, includes: includes, limit: limit, sort: sort).all_pages
|
323
358
|
return resps.flat_map(&:to_models)
|
324
359
|
end
|
325
360
|
|
326
|
-
def get_build_deliveries(filter: {}, includes: nil, limit: nil, sort: nil)
|
361
|
+
def get_build_deliveries(client: nil, filter: {}, includes: nil, limit: nil, sort: nil)
|
362
|
+
client ||= Spaceship::ConnectAPI
|
327
363
|
filter ||= {}
|
328
364
|
filter[:app] = id
|
329
365
|
|
330
|
-
resps =
|
366
|
+
resps = client.get_build_deliveries(filter: filter, includes: includes, limit: limit, sort: sort).all_pages
|
331
367
|
return resps.flat_map(&:to_models)
|
332
368
|
end
|
333
369
|
|
334
|
-
def get_beta_app_localizations(filter: {}, includes: nil, limit: nil, sort: nil)
|
370
|
+
def get_beta_app_localizations(client: nil, filter: {}, includes: nil, limit: nil, sort: nil)
|
371
|
+
client ||= Spaceship::ConnectAPI
|
335
372
|
filter ||= {}
|
336
373
|
filter[:app] = id
|
337
374
|
|
338
|
-
resps =
|
375
|
+
resps = client.get_beta_app_localizations(filter: filter, includes: includes, limit: limit, sort: sort).all_pages
|
339
376
|
return resps.flat_map(&:to_models)
|
340
377
|
end
|
341
378
|
|
342
|
-
def get_beta_groups(filter: {}, includes: nil, limit: nil, sort: nil)
|
379
|
+
def get_beta_groups(client: nil, filter: {}, includes: nil, limit: nil, sort: nil)
|
380
|
+
client ||= Spaceship::ConnectAPI
|
343
381
|
filter ||= {}
|
344
382
|
filter[:app] = id
|
345
383
|
|
346
|
-
resps =
|
384
|
+
resps = client.get_beta_groups(filter: filter, includes: includes, limit: limit, sort: sort).all_pages
|
347
385
|
return resps.flat_map(&:to_models)
|
348
386
|
end
|
349
387
|
|
350
|
-
def create_beta_group(group_name: nil, public_link_enabled: false, public_link_limit: 10_000, public_link_limit_enabled: false)
|
351
|
-
|
388
|
+
def create_beta_group(client: nil, group_name: nil, public_link_enabled: false, public_link_limit: 10_000, public_link_limit_enabled: false)
|
389
|
+
client ||= Spaceship::ConnectAPI
|
390
|
+
resps = client.create_beta_group(
|
352
391
|
app_id: id,
|
353
392
|
group_name: group_name,
|
354
393
|
public_link_enabled: public_link_enabled,
|
@@ -378,9 +417,10 @@ module Spaceship
|
|
378
417
|
# Users
|
379
418
|
#
|
380
419
|
|
381
|
-
def add_users(user_ids: nil)
|
420
|
+
def add_users(client: nil, user_ids: nil)
|
421
|
+
client ||= Spaceship::ConnectAPI
|
382
422
|
user_ids.each do |user_id|
|
383
|
-
|
423
|
+
client.add_user_visible_apps(user_id: user_id, app_ids: [id])
|
384
424
|
end
|
385
425
|
end
|
386
426
|
end
|