fastlane_hotfix 2.165.1 → 2.187.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/README.md +106 -86
- data/cert/lib/cert/commands_generator.rb +2 -1
- data/cert/lib/cert/options.rb +6 -5
- data/cert/lib/cert/runner.rb +8 -8
- data/deliver/lib/assets/summary.html.erb +10 -10
- data/deliver/lib/deliver/app_screenshot.rb +17 -11
- data/deliver/lib/deliver/app_screenshot_validator.rb +108 -0
- data/deliver/lib/deliver/commands_generator.rb +4 -3
- data/deliver/lib/deliver/detect_values.rb +5 -3
- data/deliver/lib/deliver/download_screenshots.rb +2 -3
- data/deliver/lib/deliver/html_generator.rb +2 -2
- data/deliver/lib/deliver/languages.rb +1 -1
- data/deliver/lib/deliver/loader.rb +123 -21
- data/deliver/lib/deliver/module.rb +6 -0
- data/deliver/lib/deliver/options.rb +41 -55
- data/deliver/lib/deliver/runner.rb +19 -14
- data/deliver/lib/deliver/setup.rb +9 -5
- data/deliver/lib/deliver/submit_for_review.rb +4 -4
- data/deliver/lib/deliver/upload_metadata.rb +32 -21
- data/deliver/lib/deliver/upload_price_tier.rb +1 -1
- data/deliver/lib/deliver/upload_screenshots.rb +14 -76
- data/fastlane/lib/fastlane/actions/actions_helper.rb +3 -3
- data/fastlane/lib/fastlane/actions/adb.rb +2 -5
- data/fastlane/lib/fastlane/actions/adb_devices.rb +0 -1
- data/fastlane/lib/fastlane/actions/add_git_tag.rb +22 -6
- data/fastlane/lib/fastlane/actions/app_store_build_number.rb +17 -17
- data/fastlane/lib/fastlane/actions/app_store_connect_api_key.rb +21 -7
- data/fastlane/lib/fastlane/actions/appaloosa.rb +7 -2
- data/fastlane/lib/fastlane/actions/appetize.rb +13 -8
- data/fastlane/lib/fastlane/actions/appetize_viewing_url_generator.rb +0 -11
- data/fastlane/lib/fastlane/actions/appium.rb +40 -65
- data/fastlane/lib/fastlane/actions/appledoc.rb +46 -46
- data/fastlane/lib/fastlane/actions/apteligent.rb +3 -2
- data/fastlane/lib/fastlane/actions/artifactory.rb +41 -9
- data/fastlane/lib/fastlane/actions/automatic_code_signing.rb +7 -13
- data/fastlane/lib/fastlane/actions/backup_file.rb +1 -1
- data/fastlane/lib/fastlane/actions/backup_xcarchive.rb +3 -3
- data/fastlane/lib/fastlane/actions/badge.rb +9 -13
- data/fastlane/lib/fastlane/actions/build_and_upload_to_appetize.rb +11 -5
- data/fastlane/lib/fastlane/actions/build_app.rb +7 -1
- data/fastlane/lib/fastlane/actions/bundle_install.rb +8 -10
- data/fastlane/lib/fastlane/actions/carthage.rb +22 -14
- data/fastlane/lib/fastlane/actions/changelog_from_git_commits.rb +8 -17
- data/fastlane/lib/fastlane/actions/chatwork.rb +3 -2
- data/fastlane/lib/fastlane/actions/check_app_store_metadata.rb +9 -1
- data/fastlane/lib/fastlane/actions/clean_build_artifacts.rb +0 -1
- data/fastlane/lib/fastlane/actions/clean_cocoapods_cache.rb +0 -1
- data/fastlane/lib/fastlane/actions/clipboard.rb +3 -6
- data/fastlane/lib/fastlane/actions/cloc.rb +9 -13
- data/fastlane/lib/fastlane/actions/cocoapods.rb +23 -15
- data/fastlane/lib/fastlane/actions/commit_github_file.rb +12 -4
- data/fastlane/lib/fastlane/actions/commit_version_bump.rb +6 -7
- data/fastlane/lib/fastlane/actions/copy_artifacts.rb +3 -4
- data/fastlane/lib/fastlane/actions/crashlytics.rb +7 -11
- data/fastlane/lib/fastlane/actions/create_app_on_managed_play_store.rb +70 -76
- data/fastlane/lib/fastlane/actions/create_keychain.rb +13 -11
- data/fastlane/lib/fastlane/actions/create_pull_request.rb +15 -9
- data/fastlane/lib/fastlane/actions/create_xcframework.rb +123 -0
- data/fastlane/lib/fastlane/actions/danger.rb +13 -12
- data/fastlane/lib/fastlane/actions/deploygate.rb +1 -2
- data/fastlane/lib/fastlane/actions/docs/build_app.md +1 -1
- data/fastlane/lib/fastlane/actions/docs/capture_android_screenshots.md +27 -28
- data/fastlane/lib/fastlane/actions/docs/capture_ios_screenshots.md +7 -3
- data/fastlane/lib/fastlane/actions/docs/create_app_online.md +171 -67
- data/fastlane/lib/fastlane/actions/docs/frame_screenshots.md +20 -3
- data/fastlane/lib/fastlane/actions/docs/sync_code_signing.md +9 -3
- data/fastlane/lib/fastlane/actions/docs/upload_to_app_store.md.erb +39 -16
- data/fastlane/lib/fastlane/actions/docs/upload_to_play_store.md +2 -1
- data/fastlane/lib/fastlane/actions/docs/upload_to_testflight.md +15 -5
- data/fastlane/lib/fastlane/actions/download_app_privacy_details_from_app_store.rb +142 -0
- data/fastlane/lib/fastlane/actions/download_dsyms.rb +8 -20
- data/fastlane/lib/fastlane/actions/dsym_zip.rb +1 -1
- data/fastlane/lib/fastlane/actions/ensure_env_vars.rb +2 -6
- data/fastlane/lib/fastlane/actions/ensure_git_branch.rb +0 -1
- data/fastlane/lib/fastlane/actions/ensure_git_status_clean.rb +3 -4
- data/fastlane/lib/fastlane/actions/ensure_no_debug_code.rb +3 -5
- data/fastlane/lib/fastlane/actions/ensure_xcode_version.rb +1 -2
- data/fastlane/lib/fastlane/actions/environment_variable.rb +13 -21
- data/fastlane/lib/fastlane/actions/erb.rb +2 -5
- data/fastlane/lib/fastlane/actions/get_build_number_repository.rb +1 -1
- data/fastlane/lib/fastlane/actions/get_certificates.rb +5 -1
- data/fastlane/lib/fastlane/actions/get_github_release.rb +11 -1
- data/fastlane/lib/fastlane/actions/get_ipa_info_plist_value.rb +0 -1
- data/fastlane/lib/fastlane/actions/get_managed_play_store_publishing_rights.rb +32 -35
- data/fastlane/lib/fastlane/actions/get_provisioning_profile.rb +9 -1
- data/fastlane/lib/fastlane/actions/get_push_certificate.rb +1 -1
- data/fastlane/lib/fastlane/actions/get_version_number.rb +17 -10
- data/fastlane/lib/fastlane/actions/git_add.rb +5 -10
- data/fastlane/lib/fastlane/actions/git_branch.rb +4 -10
- data/fastlane/lib/fastlane/actions/git_commit.rb +12 -10
- data/fastlane/lib/fastlane/actions/git_pull.rb +4 -10
- data/fastlane/lib/fastlane/actions/git_remote_branch.rb +57 -0
- data/fastlane/lib/fastlane/actions/git_submodule_update.rb +16 -8
- data/fastlane/lib/fastlane/actions/git_tag_exists.rb +4 -0
- data/fastlane/lib/fastlane/actions/github_api.rb +17 -8
- data/fastlane/lib/fastlane/actions/gradle.rb +12 -20
- data/fastlane/lib/fastlane/actions/hg_commit_version_bump.rb +1 -1
- data/fastlane/lib/fastlane/actions/hg_push.rb +1 -1
- data/fastlane/lib/fastlane/actions/hipchat.rb +6 -6
- data/fastlane/lib/fastlane/actions/hockey.rb +5 -12
- data/fastlane/lib/fastlane/actions/ifttt.rb +3 -6
- data/fastlane/lib/fastlane/actions/import_from_git.rb +7 -9
- data/fastlane/lib/fastlane/actions/increment_build_number.rb +8 -2
- data/fastlane/lib/fastlane/actions/install_on_device.rb +3 -6
- data/fastlane/lib/fastlane/actions/install_provisioning_profile.rb +4 -0
- data/fastlane/lib/fastlane/actions/installr.rb +22 -25
- data/fastlane/lib/fastlane/actions/ipa.rb +2 -2
- data/fastlane/lib/fastlane/actions/jazzy.rb +11 -8
- data/fastlane/lib/fastlane/actions/jira.rb +61 -14
- data/fastlane/lib/fastlane/actions/latest_testflight_build_number.rb +6 -6
- data/fastlane/lib/fastlane/actions/lcov.rb +0 -4
- data/fastlane/lib/fastlane/actions/mailgun.rb +21 -27
- data/fastlane/lib/fastlane/actions/make_changelog_from_jenkins.rb +1 -1
- data/fastlane/lib/fastlane/actions/match_nuke.rb +59 -0
- data/fastlane/lib/fastlane/actions/modify_services.rb +59 -24
- data/fastlane/lib/fastlane/actions/nexus_upload.rb +3 -2
- data/fastlane/lib/fastlane/actions/notarize.rb +98 -54
- data/fastlane/lib/fastlane/actions/notification.rb +1 -1
- data/fastlane/lib/fastlane/actions/number_of_commits.rb +1 -1
- data/fastlane/lib/fastlane/actions/oclint.rb +15 -14
- data/fastlane/lib/fastlane/actions/onesignal.rb +13 -3
- data/fastlane/lib/fastlane/actions/pod_push.rb +9 -2
- data/fastlane/lib/fastlane/actions/podio_item.rb +0 -7
- data/fastlane/lib/fastlane/actions/prompt.rb +3 -4
- data/fastlane/lib/fastlane/actions/push_git_tags.rb +1 -1
- data/fastlane/lib/fastlane/actions/push_to_git_remote.rb +14 -3
- data/fastlane/lib/fastlane/actions/puts.rb +1 -2
- data/fastlane/lib/fastlane/actions/register_device.rb +10 -13
- data/fastlane/lib/fastlane/actions/register_devices.rb +11 -14
- data/fastlane/lib/fastlane/actions/reset_git_repo.rb +5 -8
- data/fastlane/lib/fastlane/actions/reset_simulator_contents.rb +0 -2
- data/fastlane/lib/fastlane/actions/resign.rb +2 -9
- data/fastlane/lib/fastlane/actions/restore_file.rb +1 -1
- data/fastlane/lib/fastlane/actions/rsync.rb +3 -6
- data/fastlane/lib/fastlane/actions/run_tests.rb +1 -1
- data/fastlane/lib/fastlane/actions/s3.rb +1 -1
- data/fastlane/lib/fastlane/actions/say.rb +2 -3
- data/fastlane/lib/fastlane/actions/scp.rb +4 -10
- data/fastlane/lib/fastlane/actions/set_build_number_repository.rb +1 -1
- data/fastlane/lib/fastlane/actions/set_changelog.rb +10 -13
- data/fastlane/lib/fastlane/actions/set_github_release.rb +23 -16
- data/fastlane/lib/fastlane/actions/set_info_plist_value.rb +1 -1
- data/fastlane/lib/fastlane/actions/set_pod_key.rb +3 -4
- data/fastlane/lib/fastlane/actions/setup_ci.rb +1 -2
- data/fastlane/lib/fastlane/actions/setup_circle_ci.rb +1 -1
- data/fastlane/lib/fastlane/actions/setup_jenkins.rb +7 -12
- data/fastlane/lib/fastlane/actions/setup_travis.rb +1 -1
- data/fastlane/lib/fastlane/actions/sh.rb +2 -4
- data/fastlane/lib/fastlane/actions/slack.rb +164 -145
- data/fastlane/lib/fastlane/actions/slather.rb +5 -21
- data/fastlane/lib/fastlane/actions/sonar.rb +12 -19
- data/fastlane/lib/fastlane/actions/sourcedocs.rb +128 -0
- data/fastlane/lib/fastlane/actions/spaceship_logs.rb +1 -1
- data/fastlane/lib/fastlane/actions/splunkmint.rb +2 -2
- data/fastlane/lib/fastlane/actions/spm.rb +8 -2
- data/fastlane/lib/fastlane/actions/ssh.rb +5 -10
- data/fastlane/lib/fastlane/actions/swiftlint.rb +21 -19
- data/fastlane/lib/fastlane/actions/sync_code_signing.rb +6 -1
- data/fastlane/lib/fastlane/actions/testfairy.rb +0 -1
- data/fastlane/lib/fastlane/actions/tryouts.rb +2 -3
- data/fastlane/lib/fastlane/actions/twitter.rb +0 -5
- data/fastlane/lib/fastlane/actions/unlock_keychain.rb +3 -3
- data/fastlane/lib/fastlane/actions/update_app_group_identifiers.rb +1 -4
- data/fastlane/lib/fastlane/actions/update_code_signing_settings.rb +8 -15
- data/fastlane/lib/fastlane/actions/update_fastlane.rb +31 -10
- data/fastlane/lib/fastlane/actions/update_icloud_container_identifiers.rb +1 -4
- data/fastlane/lib/fastlane/actions/update_info_plist.rb +1 -1
- data/fastlane/lib/fastlane/actions/update_keychain_access_groups.rb +1 -4
- data/fastlane/lib/fastlane/actions/update_plist.rb +1 -1
- data/fastlane/lib/fastlane/actions/update_project_provisioning.rb +3 -4
- data/fastlane/lib/fastlane/actions/update_urban_airship_configuration.rb +0 -1
- data/fastlane/lib/fastlane/actions/update_url_schemes.rb +15 -26
- data/fastlane/lib/fastlane/actions/upload_app_privacy_details_to_app_store.rb +290 -0
- data/fastlane/lib/fastlane/actions/upload_symbols_to_crashlytics.rb +8 -7
- data/fastlane/lib/fastlane/actions/upload_symbols_to_sentry.rb +3 -10
- data/fastlane/lib/fastlane/actions/upload_to_app_store.rb +8 -4
- data/fastlane/lib/fastlane/actions/upload_to_testflight.rb +7 -2
- data/fastlane/lib/fastlane/actions/validate_play_store_json_key.rb +40 -44
- data/fastlane/lib/fastlane/actions/version_get_podspec.rb +1 -2
- data/fastlane/lib/fastlane/actions/xcode_install.rb +8 -5
- data/fastlane/lib/fastlane/actions/xcode_server_get_assets.rb +3 -3
- data/fastlane/lib/fastlane/actions/xcodebuild.rb +5 -5
- data/fastlane/lib/fastlane/cli_tools_distributor.rb +6 -3
- data/fastlane/lib/fastlane/commands_generator.rb +2 -1
- data/fastlane/lib/fastlane/documentation/actions_list.rb +2 -2
- data/fastlane/lib/fastlane/documentation/docs_generator.rb +1 -1
- data/fastlane/lib/fastlane/documentation/markdown_docs_generator.rb +1 -1
- data/fastlane/lib/fastlane/environment_printer.rb +1 -0
- data/fastlane/lib/fastlane/erb_template_helper.rb +7 -1
- data/fastlane/lib/fastlane/fast_file.rb +19 -7
- data/fastlane/lib/fastlane/fastlane_require.rb +7 -1
- data/fastlane/lib/fastlane/features.rb +1 -1
- data/fastlane/lib/fastlane/helper/adb_helper.rb +1 -1
- data/fastlane/lib/fastlane/helper/crashlytics_helper.rb +4 -4
- data/fastlane/lib/fastlane/helper/gem_helper.rb +2 -2
- data/fastlane/lib/fastlane/helper/git_helper.rb +34 -5
- data/fastlane/lib/fastlane/lane_manager.rb +3 -2
- data/fastlane/lib/fastlane/notification/slack.rb +56 -0
- data/fastlane/lib/fastlane/plugins/plugin_fetcher.rb +1 -2
- data/fastlane/lib/fastlane/plugins/plugin_info.rb +2 -2
- data/fastlane/lib/fastlane/plugins/plugin_info_collector.rb +1 -2
- data/fastlane/lib/fastlane/plugins/plugin_manager.rb +2 -3
- data/fastlane/lib/fastlane/plugins/template/%gem_name%.gemspec.erb +7 -6
- data/fastlane/lib/fastlane/plugins/template/.circleci/config.yml +1 -1
- data/fastlane/lib/fastlane/plugins/template/.github/workflows/test.yml +1 -1
- data/fastlane/lib/fastlane/plugins/template/.rubocop.yml +31 -35
- data/fastlane/lib/fastlane/plugins/template/spec/spec_helper.rb.erb +1 -1
- data/fastlane/lib/fastlane/setup/setup.rb +23 -10
- data/fastlane/lib/fastlane/setup/setup_ios.rb +3 -3
- data/fastlane/lib/fastlane/swift_fastlane_api_generator.rb +3 -0
- data/fastlane/lib/fastlane/swift_fastlane_function.rb +44 -16
- data/fastlane/lib/fastlane/swift_runner_upgrader.rb +2 -0
- data/fastlane/lib/fastlane/version.rb +2 -2
- data/fastlane/swift/Actions.swift +1 -1
- data/fastlane/swift/Appfile.swift +1 -1
- data/fastlane/swift/ArgumentProcessor.swift +1 -1
- data/fastlane/swift/ControlCommand.swift +1 -1
- data/fastlane/swift/Deliverfile.swift +2 -2
- data/fastlane/swift/DeliverfileProtocol.swift +23 -23
- data/fastlane/swift/Fastfile.swift +1 -1
- data/fastlane/swift/Fastlane.swift +7965 -4213
- data/fastlane/swift/FastlaneSwiftRunner/FastlaneSwiftRunner.xcodeproj/project.pbxproj +4 -0
- data/fastlane/swift/Gymfile.swift +2 -2
- data/fastlane/swift/GymfileProtocol.swift +15 -3
- data/fastlane/swift/LaneFileProtocol.swift +12 -6
- data/fastlane/swift/MainProcess.swift +3 -1
- data/fastlane/swift/Matchfile.swift +2 -2
- data/fastlane/swift/MatchfileProtocol.swift +4 -4
- data/fastlane/swift/OptionalConfigValue.swift +101 -0
- data/fastlane/swift/Plugins.swift +1 -1
- data/fastlane/swift/Precheckfile.swift +2 -2
- data/fastlane/swift/PrecheckfileProtocol.swift +8 -4
- data/fastlane/swift/RubyCommand.swift +2 -2
- data/fastlane/swift/RubyCommandable.swift +1 -1
- data/fastlane/swift/Runner.swift +3 -3
- data/fastlane/swift/RunnerArgument.swift +1 -1
- data/fastlane/swift/Scanfile.swift +2 -2
- data/fastlane/swift/ScanfileProtocol.swift +34 -2
- data/fastlane/swift/Screengrabfile.swift +2 -2
- data/fastlane/swift/ScreengrabfileProtocol.swift +5 -5
- data/fastlane/swift/Snapshotfile.swift +2 -2
- data/fastlane/swift/SnapshotfileProtocol.swift +19 -3
- data/fastlane/swift/SocketClient.swift +4 -3
- data/fastlane/swift/SocketClientDelegateProtocol.swift +1 -1
- data/fastlane/swift/SocketResponse.swift +5 -3
- data/fastlane/swift/formatting/Brewfile.lock.json +24 -16
- data/fastlane/swift/main.swift +1 -1
- data/fastlane/swift/upgrade_manifest.json +1 -1
- data/fastlane_core/lib/fastlane_core.rb +22 -20
- data/fastlane_core/lib/fastlane_core/build_watcher.rb +89 -12
- data/fastlane_core/lib/fastlane_core/cert_checker.rb +12 -7
- data/fastlane_core/lib/fastlane_core/clipboard.rb +20 -0
- data/fastlane_core/lib/fastlane_core/command_executor.rb +3 -9
- data/fastlane_core/lib/fastlane_core/configuration/commander_generator.rb +6 -1
- data/fastlane_core/lib/fastlane_core/configuration/config_item.rb +41 -3
- data/fastlane_core/lib/fastlane_core/configuration/configuration.rb +14 -8
- data/fastlane_core/lib/fastlane_core/device_manager.rb +1 -1
- data/fastlane_core/lib/fastlane_core/helper.rb +78 -14
- data/fastlane_core/lib/fastlane_core/ipa_file_analyser.rb +41 -16
- data/fastlane_core/lib/fastlane_core/ipa_upload_package_builder.rb +3 -2
- data/fastlane_core/lib/fastlane_core/itunes_transporter.rb +20 -15
- data/fastlane_core/lib/fastlane_core/keychain_importer.rb +1 -1
- data/fastlane_core/lib/fastlane_core/languages.rb +2 -2
- data/fastlane_core/lib/fastlane_core/pkg_upload_package_builder.rb +3 -2
- data/fastlane_core/lib/fastlane_core/print_table.rb +5 -3
- data/fastlane_core/lib/fastlane_core/project.rb +48 -28
- data/fastlane_core/lib/fastlane_core/provisioning_profile.rb +3 -1
- data/{deliver/lib/deliver → fastlane_core/lib/fastlane_core}/queue_worker.rb +4 -4
- data/fastlane_core/lib/fastlane_core/swag.rb +1 -1
- data/fastlane_core/lib/fastlane_core/ui/disable_colors.rb +8 -0
- data/fastlane_core/lib/fastlane_core/ui/help.erb +35 -0
- data/fastlane_core/lib/fastlane_core/ui/help_formatter.rb +16 -0
- data/fastlane_core/lib/fastlane_core/ui/implementations/shell.rb +16 -2
- data/fastlane_core/lib/fastlane_core/ui/interface.rb +1 -1
- data/fastlane_core/lib/fastlane_core/update_checker/update_checker.rb +2 -2
- data/frameit/lib/frameit/commands_generator.rb +2 -1
- data/frameit/lib/frameit/config_parser.rb +2 -2
- data/frameit/lib/frameit/device_types.rb +7 -1
- data/frameit/lib/frameit/frame_downloader.rb +2 -1
- data/gym/lib/gym/code_signing_mapping.rb +3 -3
- data/gym/lib/gym/commands_generator.rb +2 -1
- data/gym/lib/gym/error_handler.rb +8 -0
- data/gym/lib/gym/generators/build_command_generator.rb +3 -0
- data/gym/lib/gym/generators/package_command_generator.rb +4 -0
- data/gym/lib/gym/generators/package_command_generator_xcode7.rb +21 -15
- data/gym/lib/gym/options.rb +19 -3
- data/gym/lib/gym/runner.rb +15 -4
- data/match/lib/match/change_password.rb +3 -3
- data/match/lib/match/commands_generator.rb +2 -1
- data/match/lib/match/encryption/interface.rb +1 -1
- data/match/lib/match/encryption/openssl.rb +5 -3
- data/match/lib/match/importer.rb +9 -10
- data/match/lib/match/migrate.rb +2 -3
- data/match/lib/match/module.rb +2 -1
- data/match/lib/match/nuke.rb +19 -15
- data/match/lib/match/options.rb +4 -3
- data/match/lib/match/runner.rb +3 -4
- data/match/lib/match/spaceship_ensure.rb +3 -0
- data/match/lib/match/storage/git_storage.rb +14 -10
- data/match/lib/match/storage/google_cloud_storage.rb +2 -2
- data/match/lib/match/storage/s3_storage.rb +2 -2
- data/pem/lib/pem/commands_generator.rb +2 -1
- data/pilot/lib/pilot.rb +0 -1
- data/pilot/lib/pilot/build_manager.rb +41 -15
- data/pilot/lib/pilot/commands_generator.rb +2 -1
- data/pilot/lib/pilot/manager.rb +11 -8
- data/pilot/lib/pilot/options.rb +18 -9
- data/pilot/lib/pilot/tester_exporter.rb +0 -1
- data/pilot/lib/pilot/tester_manager.rb +0 -1
- data/precheck/lib/precheck/commands_generator.rb +2 -1
- data/precheck/lib/precheck/options.rb +9 -3
- data/precheck/lib/precheck/rule_processor.rb +1 -1
- data/precheck/lib/precheck/runner.rb +14 -9
- data/produce/lib/produce/commands_generator.rb +101 -28
- data/produce/lib/produce/developer_center.rb +42 -4
- data/produce/lib/produce/options.rb +1 -1
- data/produce/lib/produce/service.rb +270 -179
- data/scan/lib/scan/commands_generator.rb +2 -1
- data/scan/lib/scan/detect_values.rb +7 -2
- data/scan/lib/scan/module.rb +4 -0
- data/scan/lib/scan/options.rb +46 -1
- data/scan/lib/scan/runner.rb +88 -3
- data/scan/lib/scan/slack_poster.rb +4 -1
- data/scan/lib/scan/test_command_generator.rb +13 -8
- data/screengrab/lib/screengrab/android_environment.rb +5 -53
- data/screengrab/lib/screengrab/commands_generator.rb +2 -1
- data/screengrab/lib/screengrab/dependency_checker.rb +0 -20
- data/screengrab/lib/screengrab/options.rb +5 -2
- data/screengrab/lib/screengrab/runner.rb +111 -108
- data/sigh/lib/assets/resign.sh +81 -61
- data/sigh/lib/sigh/commands_generator.rb +2 -1
- data/sigh/lib/sigh/download_all.rb +4 -8
- data/sigh/lib/sigh/options.rb +3 -2
- data/sigh/lib/sigh/runner.rb +9 -9
- data/snapshot/lib/assets/SnapfileTemplate +3 -2
- data/snapshot/lib/assets/SnapfileTemplate.swift +2 -1
- data/snapshot/lib/assets/SnapshotHelper.swift +20 -12
- data/snapshot/lib/snapshot/commands_generator.rb +3 -1
- data/snapshot/lib/snapshot/options.rb +22 -2
- data/snapshot/lib/snapshot/reports_generator.rb +7 -1
- data/snapshot/lib/snapshot/simulator_launchers/launcher_configuration.rb +2 -0
- data/snapshot/lib/snapshot/simulator_launchers/simulator_launcher.rb +1 -1
- data/snapshot/lib/snapshot/simulator_launchers/simulator_launcher_base.rb +10 -5
- data/snapshot/lib/snapshot/test_command_generator.rb +18 -4
- data/snapshot/lib/snapshot/test_command_generator_base.rb +3 -1
- data/snapshot/lib/snapshot/test_command_generator_xcode_8.rb +1 -1
- data/snapshot/lib/snapshot/update.rb +1 -1
- data/spaceship/README.md +4 -14
- data/spaceship/lib/spaceship/base.rb +2 -2
- data/spaceship/lib/spaceship/client.rb +47 -29
- data/spaceship/lib/spaceship/commands_generator.rb +4 -2
- data/spaceship/lib/spaceship/connect_api.rb +6 -0
- data/spaceship/lib/spaceship/connect_api/api_client.rb +67 -9
- data/spaceship/lib/spaceship/connect_api/model.rb +1 -1
- data/spaceship/lib/spaceship/connect_api/models/age_rating_declaration.rb +39 -6
- data/spaceship/lib/spaceship/connect_api/models/app.rb +95 -55
- data/spaceship/lib/spaceship/connect_api/models/app_data_usage.rb +59 -0
- data/spaceship/lib/spaceship/connect_api/models/app_data_usage_category.rb +65 -0
- data/spaceship/lib/spaceship/connect_api/models/app_data_usage_data_protection.rb +27 -0
- data/spaceship/lib/spaceship/connect_api/models/app_data_usage_grouping.rb +18 -0
- data/spaceship/lib/spaceship/connect_api/models/app_data_usage_purposes.rb +37 -0
- data/spaceship/lib/spaceship/connect_api/models/app_data_usages_publish_state.rb +36 -0
- data/spaceship/lib/spaceship/connect_api/models/app_info.rb +26 -10
- data/spaceship/lib/spaceship/connect_api/models/app_info_localization.rb +8 -4
- data/spaceship/lib/spaceship/connect_api/models/app_preview.rb +15 -11
- data/spaceship/lib/spaceship/connect_api/models/app_preview_set.rb +18 -9
- data/spaceship/lib/spaceship/connect_api/models/app_screenshot.rb +10 -8
- data/spaceship/lib/spaceship/connect_api/models/app_screenshot_set.rb +20 -11
- data/spaceship/lib/spaceship/connect_api/models/app_store_review_attachment.rb +7 -5
- data/spaceship/lib/spaceship/connect_api/models/app_store_review_detail.rb +6 -4
- data/spaceship/lib/spaceship/connect_api/models/app_store_version.rb +62 -38
- data/spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb +27 -14
- data/spaceship/lib/spaceship/connect_api/models/app_store_version_submission.rb +3 -2
- data/spaceship/lib/spaceship/connect_api/models/beta_app_review_submission.rb +3 -2
- data/spaceship/lib/spaceship/connect_api/models/beta_feedback.rb +6 -4
- data/spaceship/lib/spaceship/connect_api/models/beta_group.rb +29 -3
- data/spaceship/lib/spaceship/connect_api/models/beta_tester.rb +15 -9
- data/spaceship/lib/spaceship/connect_api/models/build.rb +34 -17
- data/spaceship/lib/spaceship/connect_api/models/build_beta_detail.rb +4 -0
- data/spaceship/lib/spaceship/connect_api/models/build_delivery.rb +3 -2
- data/spaceship/lib/spaceship/connect_api/models/bundle_id.rb +41 -6
- data/spaceship/lib/spaceship/connect_api/models/bundle_id_capability.rb +86 -21
- data/spaceship/lib/spaceship/connect_api/models/certificate.rb +12 -8
- data/spaceship/lib/spaceship/connect_api/models/device.rb +36 -4
- data/spaceship/lib/spaceship/connect_api/models/idfa_declaration.rb +6 -4
- data/spaceship/lib/spaceship/connect_api/models/profile.rb +18 -8
- data/spaceship/lib/spaceship/connect_api/models/reset_ratings_request.rb +3 -2
- data/spaceship/lib/spaceship/connect_api/models/sandbox_tester.rb +9 -6
- data/spaceship/lib/spaceship/connect_api/models/territory.rb +3 -2
- data/spaceship/lib/spaceship/connect_api/models/user.rb +6 -4
- data/spaceship/lib/spaceship/connect_api/models/user_invitation.rb +22 -6
- data/spaceship/lib/spaceship/connect_api/provisioning/provisioning.rb +99 -2
- data/spaceship/lib/spaceship/connect_api/response.rb +3 -1
- data/spaceship/lib/spaceship/connect_api/testflight/testflight.rb +50 -0
- data/spaceship/lib/spaceship/connect_api/token.rb +15 -3
- data/spaceship/lib/spaceship/connect_api/tunes/tunes.rb +122 -2
- data/spaceship/lib/spaceship/errors.rb +19 -0
- data/spaceship/lib/spaceship/playground.rb +2 -2
- data/spaceship/lib/spaceship/spaceauth_runner.rb +38 -15
- data/spaceship/lib/spaceship/tunes/iap_detail.rb +1 -1
- data/spaceship/lib/spaceship/tunes/members.rb +1 -1
- data/spaceship/lib/spaceship/tunes/tunes_client.rb +4 -4
- data/spaceship/lib/spaceship/two_step_or_factor_client.rb +59 -33
- data/spaceship/lib/spaceship/ui.rb +2 -2
- data/spaceship/lib/spaceship/upgrade_2fa_later_client.rb +91 -0
- data/supply/lib/supply.rb +1 -1
- data/supply/lib/supply/client.rb +5 -3
- data/supply/lib/supply/commands_generator.rb +2 -1
- data/supply/lib/supply/options.rb +3 -3
- data/supply/lib/supply/uploader.rb +6 -4
- metadata +125 -93
- data/pilot/lib/pilot/features.rb +0 -0
- data/pilot/lib/pilot/tester_util.rb +0 -0
@@ -17,8 +17,10 @@ module Spaceship
|
|
17
17
|
attr_accessor :app
|
18
18
|
attr_accessor :beta_app_review_submission
|
19
19
|
attr_accessor :beta_build_metrics
|
20
|
+
attr_accessor :beta_build_localizations
|
20
21
|
attr_accessor :build_beta_detail
|
21
22
|
attr_accessor :pre_release_version
|
23
|
+
attr_accessor :individual_testers
|
22
24
|
|
23
25
|
attr_mapping({
|
24
26
|
"version" => "version",
|
@@ -33,8 +35,10 @@ module Spaceship
|
|
33
35
|
"app" => "app",
|
34
36
|
"betaAppReviewSubmission" => "beta_app_review_submission",
|
35
37
|
"betaBuildMetrics" => "beta_build_metrics",
|
38
|
+
"betaBuildLocalizations" => "beta_build_localizations",
|
36
39
|
"buildBetaDetail" => "build_beta_detail",
|
37
|
-
"preReleaseVersion" => "pre_release_version"
|
40
|
+
"preReleaseVersion" => "pre_release_version",
|
41
|
+
"individualTesters" => "individual_testers"
|
38
42
|
})
|
39
43
|
|
40
44
|
ESSENTIAL_INCLUDES = "app,buildBetaDetail,preReleaseVersion"
|
@@ -87,6 +91,11 @@ module Spaceship
|
|
87
91
|
return build_beta_detail.ready_for_beta_submission?
|
88
92
|
end
|
89
93
|
|
94
|
+
def missing_export_compliance?
|
95
|
+
raise "No build_beta_detail included" unless build_beta_detail
|
96
|
+
return build_beta_detail.missing_export_compliance?
|
97
|
+
end
|
98
|
+
|
90
99
|
# This is here temporarily until the removal of Spaceship::TestFlight
|
91
100
|
def to_testflight_build
|
92
101
|
h = {
|
@@ -106,8 +115,9 @@ module Spaceship
|
|
106
115
|
# API
|
107
116
|
#
|
108
117
|
|
109
|
-
def self.all(app_id: nil, version: nil, build_number: nil, platform: nil, processing_states: "PROCESSING,FAILED,INVALID,VALID", includes: ESSENTIAL_INCLUDES, sort: "-uploadedDate", limit: 30)
|
110
|
-
|
118
|
+
def self.all(client: nil, app_id: nil, version: nil, build_number: nil, platform: nil, processing_states: "PROCESSING,FAILED,INVALID,VALID", includes: ESSENTIAL_INCLUDES, sort: "-uploadedDate", limit: 30)
|
119
|
+
client ||= Spaceship::ConnectAPI
|
120
|
+
resps = client.get_builds(
|
111
121
|
filter: { app: app_id, "preReleaseVersion.version" => version, version: build_number, processingState: processing_states },
|
112
122
|
includes: includes,
|
113
123
|
sort: sort,
|
@@ -125,23 +135,27 @@ module Spaceship
|
|
125
135
|
return models
|
126
136
|
end
|
127
137
|
|
128
|
-
def self.get(build_id: nil, includes: ESSENTIAL_INCLUDES)
|
129
|
-
|
138
|
+
def self.get(client: nil, build_id: nil, includes: ESSENTIAL_INCLUDES)
|
139
|
+
client ||= Spaceship::ConnectAPI
|
140
|
+
return client.get_build(build_id: build_id, includes: includes).first
|
130
141
|
end
|
131
142
|
|
132
|
-
def update(attributes: nil)
|
143
|
+
def update(client: nil, attributes: nil)
|
144
|
+
client ||= Spaceship::ConnectAPI
|
133
145
|
attributes = reverse_attr_mapping(attributes)
|
134
|
-
return
|
146
|
+
return client.patch_builds(build_id: id, attributes: attributes).first
|
135
147
|
end
|
136
148
|
|
137
|
-
def add_beta_groups(beta_groups: nil)
|
149
|
+
def add_beta_groups(client: nil, beta_groups: nil)
|
150
|
+
client ||= Spaceship::ConnectAPI
|
138
151
|
beta_groups ||= []
|
139
152
|
beta_group_ids = beta_groups.map(&:id)
|
140
|
-
return
|
153
|
+
return client.add_beta_groups_to_build(build_id: id, beta_group_ids: beta_group_ids)
|
141
154
|
end
|
142
155
|
|
143
|
-
def get_beta_build_localizations(filter: {}, includes: nil, limit: nil, sort: nil)
|
144
|
-
|
156
|
+
def get_beta_build_localizations(client: nil, filter: {}, includes: nil, limit: nil, sort: nil)
|
157
|
+
client ||= Spaceship::ConnectAPI
|
158
|
+
resps = client.get_beta_build_localizations(
|
145
159
|
filter: { build: id },
|
146
160
|
includes: includes,
|
147
161
|
sort: sort,
|
@@ -150,8 +164,9 @@ module Spaceship
|
|
150
164
|
return resps.flat_map(&:to_models)
|
151
165
|
end
|
152
166
|
|
153
|
-
def get_build_beta_details(filter: {}, includes: nil, limit: nil, sort: nil)
|
154
|
-
|
167
|
+
def get_build_beta_details(client: nil, filter: {}, includes: nil, limit: nil, sort: nil)
|
168
|
+
client ||= Spaceship::ConnectAPI
|
169
|
+
resps = client.get_build_beta_details(
|
155
170
|
filter: { build: id },
|
156
171
|
includes: includes,
|
157
172
|
sort: sort,
|
@@ -160,12 +175,14 @@ module Spaceship
|
|
160
175
|
return resps.flat_map(&:to_models)
|
161
176
|
end
|
162
177
|
|
163
|
-
def post_beta_app_review_submission
|
164
|
-
|
178
|
+
def post_beta_app_review_submission(client: nil)
|
179
|
+
client ||= Spaceship::ConnectAPI
|
180
|
+
return client.post_beta_app_review_submissions(build_id: id)
|
165
181
|
end
|
166
182
|
|
167
|
-
def expire!
|
168
|
-
|
183
|
+
def expire!(client: nil)
|
184
|
+
client ||= Spaceship::ConnectAPI
|
185
|
+
return client.patch_builds(build_id: id, attributes: { expired: true })
|
169
186
|
end
|
170
187
|
end
|
171
188
|
end
|
@@ -56,6 +56,10 @@ module Spaceship
|
|
56
56
|
def ready_for_beta_submission?
|
57
57
|
return external_build_state == ExternalState::READY_FOR_BETA_SUBMISSION
|
58
58
|
end
|
59
|
+
|
60
|
+
def missing_export_compliance?
|
61
|
+
return external_build_state == ExternalState::MISSING_EXPORT_COMPLIANCE
|
62
|
+
end
|
59
63
|
end
|
60
64
|
end
|
61
65
|
end
|
@@ -24,8 +24,9 @@ module Spaceship
|
|
24
24
|
# API
|
25
25
|
#
|
26
26
|
|
27
|
-
def self.all(app_id: nil, version: nil, build_number: nil)
|
28
|
-
|
27
|
+
def self.all(client: nil, app_id: nil, version: nil, build_number: nil)
|
28
|
+
client ||= Spaceship::ConnectAPI
|
29
|
+
resps = client.get_build_deliveries(
|
29
30
|
filter: { app: app_id, cfBundleShortVersionString: version, cfBundleVersion: build_number },
|
30
31
|
limit: 1
|
31
32
|
).all_pages
|
@@ -39,19 +39,54 @@ module Spaceship
|
|
39
39
|
# API
|
40
40
|
#
|
41
41
|
|
42
|
-
def self.all(filter: {}, includes: nil, limit: nil, sort: nil)
|
43
|
-
|
42
|
+
def self.all(client: nil, filter: {}, includes: nil, limit: nil, sort: nil)
|
43
|
+
client ||= Spaceship::ConnectAPI
|
44
|
+
resps = client.get_bundle_ids(filter: filter, includes: includes).all_pages
|
44
45
|
return resps.flat_map(&:to_models)
|
45
46
|
end
|
46
47
|
|
47
|
-
def self.find(identifier, includes: nil)
|
48
|
-
|
48
|
+
def self.find(identifier, includes: nil, client: nil)
|
49
|
+
client ||= Spaceship::ConnectAPI
|
50
|
+
return all(client: client, filter: { identifier: identifier }, includes: includes).find do |app|
|
49
51
|
app.identifier == identifier
|
50
52
|
end
|
51
53
|
end
|
52
54
|
|
53
|
-
def self.get(bundle_id_id: nil, includes: nil)
|
54
|
-
|
55
|
+
def self.get(client: nil, bundle_id_id: nil, includes: nil)
|
56
|
+
client ||= Spaceship::ConnectAPI
|
57
|
+
return client.get_bundle_id(bundle_id_id: bundle_id_id, includes: includes).first
|
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
|
55
90
|
end
|
56
91
|
end
|
57
92
|
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,12 +115,21 @@ module Spaceship
|
|
59
115
|
# API
|
60
116
|
#
|
61
117
|
|
62
|
-
def self.all(
|
63
|
-
|
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: [])
|
125
|
+
client ||= Spaceship::ConnectAPI
|
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
|
64
128
|
end
|
65
129
|
|
66
|
-
def
|
67
|
-
|
130
|
+
def delete!(client: nil, filter: {}, includes: nil, limit: nil, sort: nil)
|
131
|
+
client ||= Spaceship::ConnectAPI
|
132
|
+
client.delete_bundle_id_capability(bundle_id_capability_id: id)
|
68
133
|
end
|
69
134
|
end
|
70
135
|
end
|
@@ -75,27 +75,31 @@ module Spaceship
|
|
75
75
|
# API
|
76
76
|
#
|
77
77
|
|
78
|
-
def self.all(filter: {}, includes: nil, limit: nil, sort: nil)
|
79
|
-
|
78
|
+
def self.all(client: nil, filter: {}, includes: nil, limit: nil, sort: nil)
|
79
|
+
client ||= Spaceship::ConnectAPI
|
80
|
+
resps = client.get_certificates(filter: filter, includes: includes).all_pages
|
80
81
|
return resps.flat_map(&:to_models)
|
81
82
|
end
|
82
83
|
|
83
|
-
def self.create(certificate_type: nil, csr_content: nil)
|
84
|
+
def self.create(client: nil, certificate_type: nil, csr_content: nil)
|
85
|
+
client ||= Spaceship::ConnectAPI
|
84
86
|
attributes = {
|
85
87
|
certificateType: certificate_type,
|
86
88
|
csrContent: csr_content
|
87
89
|
}
|
88
|
-
resp =
|
90
|
+
resp = client.post_certificate(attributes: attributes)
|
89
91
|
return resp.to_models.first
|
90
92
|
end
|
91
93
|
|
92
|
-
def self.get(certificate_id: nil, includes: nil)
|
93
|
-
|
94
|
+
def self.get(client: nil, certificate_id: nil, includes: nil)
|
95
|
+
client ||= Spaceship::ConnectAPI
|
96
|
+
resp = client.get_certificate(certificate_id: certificate_id, includes: includes)
|
94
97
|
return resp.to_models.first
|
95
98
|
end
|
96
99
|
|
97
|
-
def delete!
|
98
|
-
Spaceship::ConnectAPI
|
100
|
+
def delete!(client: nil)
|
101
|
+
client ||= Spaceship::ConnectAPI
|
102
|
+
client.delete_certificate(certificate_id: id)
|
99
103
|
end
|
100
104
|
end
|
101
105
|
end
|
@@ -40,17 +40,49 @@ module Spaceship
|
|
40
40
|
return "devices"
|
41
41
|
end
|
42
42
|
|
43
|
+
def enabled?
|
44
|
+
return status == Status::ENABLED
|
45
|
+
end
|
46
|
+
|
43
47
|
#
|
44
48
|
# API
|
45
49
|
#
|
46
50
|
|
47
|
-
def self.all(filter: {}, includes: nil, limit: nil, sort: nil)
|
48
|
-
|
51
|
+
def self.all(client: nil, filter: {}, includes: nil, limit: nil, sort: nil)
|
52
|
+
client ||= Spaceship::ConnectAPI
|
53
|
+
resps = client.get_devices(filter: filter, includes: includes).all_pages
|
49
54
|
return resps.flat_map(&:to_models)
|
50
55
|
end
|
51
56
|
|
52
|
-
|
53
|
-
|
57
|
+
# @param client [ConnectAPI] ConnectAPI client.
|
58
|
+
# @param platform [String] The platform of the device.
|
59
|
+
# @param include_disabled [Bool] Whether to include disable devices. false by default.
|
60
|
+
# @return (Device) Find a device based on the UDID of the device. nil if no device was found.
|
61
|
+
def self.find_by_udid(device_udid, client: nil, platform: nil, include_disabled: false)
|
62
|
+
self.all(client: client).find do |device|
|
63
|
+
device.udid.casecmp(device_udid) == 0 && (include_disabled ? true : device.enabled?)
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
# @param client [ConnectAPI] ConnectAPI client.
|
68
|
+
# @param name [String] The name to be assigned to the device, if it needs to be created.
|
69
|
+
# @param platform [String] The platform of the device.
|
70
|
+
# @param include_disabled [Bool] Whether to include disable devices. false by default.
|
71
|
+
# @return (Device) Find a device based on the UDID of the device. If no device was found, nil if no device was found.
|
72
|
+
def self.find_or_create(device_udid, client: nil, name: nil, platform: nil, include_disabled: false)
|
73
|
+
existing = self.find_by_udid(device_udid, client: client, platform: platform)
|
74
|
+
return existing if existing
|
75
|
+
return self.create(client: client, name: name, platform: platform, udid: device_udid)
|
76
|
+
end
|
77
|
+
|
78
|
+
# @param client [ConnectAPI] ConnectAPI client.
|
79
|
+
# @param name [String] The name to be assigned to the device.
|
80
|
+
# @param platform [String] The platform of the device.
|
81
|
+
# @param udid [String] The udid of the device being created.
|
82
|
+
# @return (Device) Find a device based on the UDID of the device. nil if no device was found.
|
83
|
+
def self.create(client: nil, name: nil, platform: nil, udid: nil)
|
84
|
+
client ||= Spaceship::ConnectAPI
|
85
|
+
resp = client.post_device(name: name, platform: platform, udid: udid)
|
54
86
|
return resp.to_models.first
|
55
87
|
end
|
56
88
|
end
|
@@ -28,13 +28,15 @@ module Spaceship
|
|
28
28
|
# API
|
29
29
|
#
|
30
30
|
|
31
|
-
def update(attributes: nil)
|
31
|
+
def update(client: nil, attributes: nil)
|
32
|
+
client ||= Spaceship::ConnectAPI
|
32
33
|
attributes = reverse_attr_mapping(attributes)
|
33
|
-
|
34
|
+
client.patch_idfa_declaration(idfa_declaration_id: id, attributes: attributes)
|
34
35
|
end
|
35
36
|
|
36
|
-
def delete!
|
37
|
-
Spaceship::ConnectAPI
|
37
|
+
def delete!(client: nil)
|
38
|
+
client ||= Spaceship::ConnectAPI
|
39
|
+
client.delete_idfa_declaration(idfa_declaration_id: id)
|
38
40
|
end
|
39
41
|
end
|
40
42
|
end
|
@@ -65,13 +65,15 @@ module Spaceship
|
|
65
65
|
# API
|
66
66
|
#
|
67
67
|
|
68
|
-
def self.all(filter: {}, includes: nil, limit: nil, sort: nil)
|
69
|
-
|
68
|
+
def self.all(client: nil, filter: {}, includes: nil, limit: nil, sort: nil)
|
69
|
+
client ||= Spaceship::ConnectAPI
|
70
|
+
resps = client.get_profiles(filter: filter, includes: includes).all_pages
|
70
71
|
return resps.flat_map(&:to_models)
|
71
72
|
end
|
72
73
|
|
73
|
-
def self.create(name: nil, profile_type: nil, bundle_id_id: nil, certificate_ids: nil, device_ids: nil, template_name: nil)
|
74
|
-
|
74
|
+
def self.create(client: nil, name: nil, profile_type: nil, bundle_id_id: nil, certificate_ids: nil, device_ids: nil, template_name: nil)
|
75
|
+
client ||= Spaceship::ConnectAPI
|
76
|
+
resp = client.post_profiles(
|
75
77
|
bundle_id_id: bundle_id_id,
|
76
78
|
certificates: certificate_ids,
|
77
79
|
devices: device_ids,
|
@@ -84,13 +86,21 @@ module Spaceship
|
|
84
86
|
return resp.to_models.first
|
85
87
|
end
|
86
88
|
|
87
|
-
def fetch_all_devices(filter: {}, includes: nil, sort: nil)
|
88
|
-
|
89
|
+
def fetch_all_devices(client: nil, filter: {}, includes: nil, sort: nil)
|
90
|
+
client ||= Spaceship::ConnectAPI
|
91
|
+
resps = client.get_devices(profile_id: id, filter: filter, includes: includes).all_pages
|
89
92
|
return resps.flat_map(&:to_models)
|
90
93
|
end
|
91
94
|
|
92
|
-
def
|
93
|
-
|
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
|
+
|
101
|
+
def delete!(client: nil)
|
102
|
+
client ||= Spaceship::ConnectAPI
|
103
|
+
return client.delete_profile(profile_id: id)
|
94
104
|
end
|
95
105
|
end
|
96
106
|
end
|