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
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'commander'
|
2
2
|
require 'fastlane/version'
|
3
|
+
require 'fastlane_core/ui/help_formatter'
|
3
4
|
|
4
5
|
require_relative 'options'
|
5
6
|
require_relative 'resign'
|
@@ -23,7 +24,7 @@ module Sigh
|
|
23
24
|
program :help, 'Author', 'Felix Krause <sigh@krausefx.com>'
|
24
25
|
program :help, 'Website', 'https://fastlane.tools'
|
25
26
|
program :help, 'Documentation', 'https://docs.fastlane.tools/actions/sigh/'
|
26
|
-
program :help_formatter,
|
27
|
+
program :help_formatter, FastlaneCore::HelpFormatter
|
27
28
|
|
28
29
|
global_option('--verbose') { FastlaneCore::Globals.verbose = true }
|
29
30
|
global_option('--env STRING[,STRING2]', String, 'Add environment(s) to use with `dotenv`')
|
@@ -9,9 +9,11 @@ module Sigh
|
|
9
9
|
class DownloadAll
|
10
10
|
# Download all valid provisioning profiles
|
11
11
|
def download_all(download_xcode_profiles: false)
|
12
|
-
if (
|
12
|
+
if (api_token = Spaceship::ConnectAPI::Token.from(hash: Sigh.config[:api_key], filepath: Sigh.config[:api_key_path]))
|
13
13
|
UI.message("Creating authorization token for App Store Connect API")
|
14
|
-
Spaceship::ConnectAPI.token =
|
14
|
+
Spaceship::ConnectAPI.token = api_token
|
15
|
+
elsif !Spaceship::ConnectAPI.token.nil?
|
16
|
+
UI.message("Using existing authorization token for App Store Connect API")
|
15
17
|
else
|
16
18
|
# Team selection passed though FASTLANE_ITC_TEAM_ID and FASTLANE_ITC_TEAM_NAME environment variables
|
17
19
|
# Prompts select team if multiple teams and none specified
|
@@ -59,12 +61,6 @@ module Sigh
|
|
59
61
|
download_profiles(profiles)
|
60
62
|
end
|
61
63
|
|
62
|
-
def api_token
|
63
|
-
api_token ||= Spaceship::ConnectAPI::Token.create(Sigh.config[:api_key]) if Sigh.config[:api_key]
|
64
|
-
api_token ||= Spaceship::ConnectAPI::Token.from_json_file(Sigh.config[:api_key_path]) if Sigh.config[:api_key_path]
|
65
|
-
return api_token
|
66
|
-
end
|
67
|
-
|
68
64
|
# @param profiles [Array] Array of all the provisioning profiles we want to download
|
69
65
|
def download_profiles(profiles)
|
70
66
|
UI.important("No profiles available for download") if profiles.empty?
|
data/sigh/lib/sigh/options.rb
CHANGED
@@ -57,7 +57,7 @@ module Sigh
|
|
57
57
|
|
58
58
|
# App Store Connect API
|
59
59
|
FastlaneCore::ConfigItem.new(key: :api_key_path,
|
60
|
-
|
60
|
+
env_names: ["SIGH_API_KEY_PATH", "APP_STORE_CONNECT_API_KEY_PATH"],
|
61
61
|
description: "Path to your App Store Connect API Key JSON file (https://docs.fastlane.tools/app-store-connect-api/#using-fastlane-api-key-json-file)",
|
62
62
|
optional: true,
|
63
63
|
conflicting_options: [:api_key],
|
@@ -65,7 +65,7 @@ module Sigh
|
|
65
65
|
UI.user_error!("Couldn't find API key JSON file at path '#{value}'") unless File.exist?(value)
|
66
66
|
end),
|
67
67
|
FastlaneCore::ConfigItem.new(key: :api_key,
|
68
|
-
|
68
|
+
env_names: ["SIGH_API_KEY", "APP_STORE_CONNECT_API_KEY"],
|
69
69
|
description: "Your App Store Connect API Key information (https://docs.fastlane.tools/app-store-connect-api/#use-return-value-and-pass-in-as-an-option)",
|
70
70
|
type: Hash,
|
71
71
|
optional: true,
|
@@ -77,6 +77,7 @@ module Sigh
|
|
77
77
|
short_option: "-u",
|
78
78
|
env_name: "SIGH_USERNAME",
|
79
79
|
description: "Your Apple ID Username",
|
80
|
+
optional: true,
|
80
81
|
default_value: user,
|
81
82
|
default_value_dynamic: true),
|
82
83
|
FastlaneCore::ConfigItem.new(key: :team_id,
|
data/sigh/lib/sigh/runner.rb
CHANGED
@@ -17,10 +17,16 @@ module Sigh
|
|
17
17
|
hide_keys: [:output_path],
|
18
18
|
title: "Summary for sigh #{Fastlane::VERSION}")
|
19
19
|
|
20
|
-
if api_token
|
20
|
+
if (api_token = Spaceship::ConnectAPI::Token.from(hash: Sigh.config[:api_key], filepath: Sigh.config[:api_key_path]))
|
21
21
|
UI.message("Creating authorization token for App Store Connect API")
|
22
22
|
Spaceship::ConnectAPI.token = api_token
|
23
|
+
elsif !Spaceship::ConnectAPI.token.nil?
|
24
|
+
UI.message("Using existing authorization token for App Store Connect API")
|
23
25
|
else
|
26
|
+
# Username is now optional since addition of App Store Connect API Key
|
27
|
+
# Force asking for username to prompt user if not already set
|
28
|
+
Sigh.config.fetch(:username, force_ask: true)
|
29
|
+
|
24
30
|
# Team selection passed though FASTLANE_ITC_TEAM_ID and FASTLANE_ITC_TEAM_NAME environment variables
|
25
31
|
# Prompts select team if multiple teams and none specified
|
26
32
|
UI.message("Starting login with user '#{Sigh.config[:username]}'")
|
@@ -59,12 +65,6 @@ module Sigh
|
|
59
65
|
return download_profile(profile)
|
60
66
|
end
|
61
67
|
|
62
|
-
def api_token
|
63
|
-
@api_token ||= Spaceship::ConnectAPI::Token.create(Sigh.config[:api_key]) if Sigh.config[:api_key]
|
64
|
-
@api_token ||= Spaceship::ConnectAPI::Token.from_json_file(Sigh.config[:api_key_path]) if Sigh.config[:api_key_path]
|
65
|
-
return @api_token
|
66
|
-
end
|
67
|
-
|
68
68
|
# The kind of provisioning profile we're interested in
|
69
69
|
def profile_type
|
70
70
|
return @profile_type if @profile_type
|
@@ -282,7 +282,7 @@ module Sigh
|
|
282
282
|
[Spaceship::ConnectAPI::Device::DeviceClass::MAC]
|
283
283
|
end
|
284
284
|
|
285
|
-
if
|
285
|
+
if Spaceship::ConnectAPI.token
|
286
286
|
return Spaceship::ConnectAPI::Device.all.select do |device|
|
287
287
|
device_classes.include?(device.device_class)
|
288
288
|
end
|
@@ -327,7 +327,7 @@ module Sigh
|
|
327
327
|
UI.important("Found more than one code signing identity. Choosing the first one. Check out `fastlane sigh --help` to see all available options.")
|
328
328
|
UI.important("Available Code Signing Identities for current filters:")
|
329
329
|
certificates.each do |c|
|
330
|
-
str = ["\t- Name:", c.display_name, "- ID:", c.id + " - Expires", c.
|
330
|
+
str = ["\t- Name:", c.display_name, "- ID:", c.id + " - Expires", Time.parse(c.expiration_date).strftime("%Y-%m-%d")].join(" ")
|
331
331
|
UI.message(str.green)
|
332
332
|
end
|
333
333
|
end
|
@@ -8,7 +8,8 @@
|
|
8
8
|
# "iPhone X",
|
9
9
|
# "iPad Pro (12.9-inch)",
|
10
10
|
# "iPad Pro (9.7-inch)",
|
11
|
-
# "Apple TV 1080p"
|
11
|
+
# "Apple TV 1080p",
|
12
|
+
# "Apple Watch Series 6 - 44mm"
|
12
13
|
# ])
|
13
14
|
|
14
15
|
# languages([
|
@@ -27,7 +28,7 @@
|
|
27
28
|
# remove the '#' to clear all previously generated screenshots before creating new ones
|
28
29
|
# clear_previous_screenshots(true)
|
29
30
|
|
30
|
-
# Remove the '#' to set the status bar to 9:41 AM, and show full battery and reception.
|
31
|
+
# Remove the '#' to set the status bar to 9:41 AM, and show full battery and reception. See also override_status_bar_arguments for custom options.
|
31
32
|
# override_status_bar(true)
|
32
33
|
|
33
34
|
# Arguments to pass to the app on launch. See https://docs.fastlane.tools/actions/snapshot/#launch-arguments
|
@@ -180,7 +180,11 @@ open class Snapshot: NSObject {
|
|
180
180
|
simulator = regex.stringByReplacingMatches(in: simulator, range: range, withTemplate: "")
|
181
181
|
|
182
182
|
let path = screenshotsDir.appendingPathComponent("\(simulator)-\(name).png")
|
183
|
-
|
183
|
+
#if swift(<5.0)
|
184
|
+
UIImagePNGRepresentation(image)?.write(to: path, options: .atomic)
|
185
|
+
#else
|
186
|
+
try image.pngData()?.write(to: path, options: .atomic)
|
187
|
+
#endif
|
184
188
|
} catch let error {
|
185
189
|
NSLog("Problem writing screenshot: \(name) to \(screenshotsDir)/\(simulator)-\(name).png")
|
186
190
|
NSLog(error.localizedDescription)
|
@@ -189,16 +193,20 @@ open class Snapshot: NSObject {
|
|
189
193
|
}
|
190
194
|
|
191
195
|
class func fixLandscapeOrientation(image: UIImage) -> UIImage {
|
192
|
-
if
|
193
|
-
let format = UIGraphicsImageRendererFormat()
|
194
|
-
format.scale = image.scale
|
195
|
-
let renderer = UIGraphicsImageRenderer(size: image.size, format: format)
|
196
|
-
return renderer.image { context in
|
197
|
-
image.draw(in: CGRect(x: 0, y: 0, width: image.size.width, height: image.size.height))
|
198
|
-
}
|
199
|
-
} else {
|
196
|
+
#if os(watchOS)
|
200
197
|
return image
|
201
|
-
|
198
|
+
#else
|
199
|
+
if #available(iOS 10.0, *) {
|
200
|
+
let format = UIGraphicsImageRendererFormat()
|
201
|
+
format.scale = image.scale
|
202
|
+
let renderer = UIGraphicsImageRenderer(size: image.size, format: format)
|
203
|
+
return renderer.image { context in
|
204
|
+
image.draw(in: CGRect(x: 0, y: 0, width: image.size.width, height: image.size.height))
|
205
|
+
}
|
206
|
+
} else {
|
207
|
+
return image
|
208
|
+
}
|
209
|
+
#endif
|
202
210
|
}
|
203
211
|
|
204
212
|
class func waitForLoadingIndicatorToDisappear(within timeout: TimeInterval) {
|
@@ -223,7 +231,7 @@ open class Snapshot: NSObject {
|
|
223
231
|
#if os(OSX)
|
224
232
|
let homeDir = URL(fileURLWithPath: NSHomeDirectory())
|
225
233
|
return homeDir.appendingPathComponent(cachePath)
|
226
|
-
#elseif arch(i386) || arch(x86_64)
|
234
|
+
#elseif arch(i386) || arch(x86_64) || arch(arm64)
|
227
235
|
guard let simulatorHostHome = ProcessInfo().environment["SIMULATOR_HOST_HOME"] else {
|
228
236
|
throw SnapshotError.cannotFindSimulatorHomeDirectory
|
229
237
|
}
|
@@ -298,4 +306,4 @@ private extension CGFloat {
|
|
298
306
|
|
299
307
|
// Please don't remove the lines below
|
300
308
|
// They are used to detect outdated configuration files
|
301
|
-
// SnapshotHelperVersion [1.
|
309
|
+
// SnapshotHelperVersion [1.27]
|
@@ -1,5 +1,7 @@
|
|
1
1
|
require 'commander'
|
2
2
|
|
3
|
+
require 'fastlane_core/ui/help_formatter'
|
4
|
+
|
3
5
|
require_relative 'module'
|
4
6
|
require_relative 'runner'
|
5
7
|
require_relative 'options'
|
@@ -21,7 +23,7 @@ module Snapshot
|
|
21
23
|
program :help, 'Author', 'Felix Krause <snapshot@krausefx.com>'
|
22
24
|
program :help, 'Website', 'https://fastlane.tools'
|
23
25
|
program :help, 'Documentation', 'https://docs.fastlane.tools/actions/snapshot/'
|
24
|
-
program :help_formatter,
|
26
|
+
program :help_formatter, FastlaneCore::HelpFormatter
|
25
27
|
|
26
28
|
global_option('--verbose', 'Shows a more verbose output') { FastlaneCore::Globals.verbose = true }
|
27
29
|
|
@@ -123,9 +123,14 @@ module Snapshot
|
|
123
123
|
type: Boolean),
|
124
124
|
FastlaneCore::ConfigItem.new(key: :override_status_bar,
|
125
125
|
env_name: 'SNAPSHOT_OVERRIDE_STATUS_BAR',
|
126
|
-
description: "Enabling this option
|
126
|
+
description: "Enabling this option will automatically override the status bar to show 9:41 AM, full battery, and full reception",
|
127
127
|
default_value: false,
|
128
128
|
is_string: false),
|
129
|
+
FastlaneCore::ConfigItem.new(key: :override_status_bar_arguments,
|
130
|
+
env_name: 'SNAPSHOT_OVERRIDE_STATUS_BAR_ARGUMENTS',
|
131
|
+
description: "Fully customize the status bar by setting each option here. See `xcrun simctl status_bar --help`",
|
132
|
+
optional: true,
|
133
|
+
type: String),
|
129
134
|
FastlaneCore::ConfigItem.new(key: :localize_simulator,
|
130
135
|
env_name: 'SNAPSHOT_LOCALIZE_SIMULATOR',
|
131
136
|
description: "Enabling this option will configure the Simulator's system language",
|
@@ -253,6 +258,16 @@ module Snapshot
|
|
253
258
|
description: "Sets a custom path for Swift Package Manager dependencies",
|
254
259
|
type: String,
|
255
260
|
optional: true),
|
261
|
+
FastlaneCore::ConfigItem.new(key: :skip_package_dependencies_resolution,
|
262
|
+
env_name: "SNAPSHOT_SKIP_PACKAGE_DEPENDENCIES_RESOLUTION",
|
263
|
+
description: "Skips resolution of Swift Package Manager dependencies",
|
264
|
+
type: Boolean,
|
265
|
+
default_value: false),
|
266
|
+
FastlaneCore::ConfigItem.new(key: :disable_package_automatic_updates,
|
267
|
+
env_name: "SNAPSHOT_DISABLE_PACKAGE_AUTOMATIC_UPDATES",
|
268
|
+
description: "Prevents packages from automatically being resolved to versions other than those recorded in the `Package.resolved` file",
|
269
|
+
type: Boolean,
|
270
|
+
default_value: false),
|
256
271
|
FastlaneCore::ConfigItem.new(key: :testplan,
|
257
272
|
env_name: "SNAPSHOT_TESTPLAN",
|
258
273
|
description: "The testplan associated with the scheme that should be used for testing",
|
@@ -283,7 +298,12 @@ module Snapshot
|
|
283
298
|
env_name: "SNAPSHOT_SUPPRESS_XCODE_OUTPUT",
|
284
299
|
description: "Suppress the output of xcodebuild to stdout. Output is still saved in buildlog_path",
|
285
300
|
type: Boolean,
|
286
|
-
optional: true)
|
301
|
+
optional: true),
|
302
|
+
FastlaneCore::ConfigItem.new(key: :use_system_scm,
|
303
|
+
env_name: "SNAPSHOT_USE_SYSTEM_SCM",
|
304
|
+
description: "Lets xcodebuild use system's scm configuration",
|
305
|
+
type: Boolean,
|
306
|
+
default_value: false)
|
287
307
|
]
|
288
308
|
end
|
289
309
|
end
|
@@ -84,6 +84,10 @@ module Snapshot
|
|
84
84
|
{
|
85
85
|
# snapshot in Xcode 9 saves screenshots with the SIMULATOR_DEVICE_NAME
|
86
86
|
# which includes spaces
|
87
|
+
'iPhone 12 Pro Max' => "iPhone 12 Pro Max",
|
88
|
+
'iPhone 12 Pro' => "iPhone 12 Pro",
|
89
|
+
'iPhone 12 mini' => "iPhone 12 mini",
|
90
|
+
'iPhone 12' => "iPhone 12",
|
87
91
|
'iPhone 11 Pro Max' => "iPhone 11 Pro Max",
|
88
92
|
'iPhone 11 Pro' => "iPhone 11 Pro",
|
89
93
|
'iPhone 11' => "iPhone 11",
|
@@ -124,7 +128,9 @@ module Snapshot
|
|
124
128
|
'Apple TV 4K (at 1080p)' => 'Apple TV 4K (at 1080p)',
|
125
129
|
'Apple TV 4K' => 'Apple TV 4K',
|
126
130
|
'Apple TV' => 'Apple TV',
|
127
|
-
'Mac' => 'Mac'
|
131
|
+
'Mac' => 'Mac',
|
132
|
+
'Apple Watch Series 5 - 44mm' => 'Apple Watch Series 5 - 44mm',
|
133
|
+
'Apple Watch Series 6 - 44mm' => 'Apple Watch Series 6 - 44mm'
|
128
134
|
}
|
129
135
|
end
|
130
136
|
|
@@ -14,6 +14,7 @@ module Snapshot
|
|
14
14
|
attr_accessor :app_identifier
|
15
15
|
attr_accessor :disable_slide_to_type
|
16
16
|
attr_accessor :override_status_bar
|
17
|
+
attr_accessor :override_status_bar_arguments
|
17
18
|
|
18
19
|
# xcode 8
|
19
20
|
attr_accessor :number_of_retries
|
@@ -47,6 +48,7 @@ module Snapshot
|
|
47
48
|
@concurrent_simulators = snapshot_config[:concurrent_simulators]
|
48
49
|
@disable_slide_to_type = snapshot_config[:disable_slide_to_type]
|
49
50
|
@override_status_bar = snapshot_config[:override_status_bar]
|
51
|
+
@override_status_bar_arguments = snapshot_config[:override_status_bar_arguments]
|
50
52
|
|
51
53
|
launch_arguments = Array(snapshot_config[:launch_arguments])
|
52
54
|
# if more than 1 set of arguments, use a tuple with an index
|
@@ -89,7 +89,7 @@ module Snapshot
|
|
89
89
|
log_path: xcodebuild_log_path(language: language, locale: locale)
|
90
90
|
)
|
91
91
|
|
92
|
-
devices.each { |device_type| override_status_bar(device_type) } if launcher_config.override_status_bar
|
92
|
+
devices.each { |device_type| override_status_bar(device_type, launcher_config.override_status_bar_arguments) } if launcher_config.override_status_bar
|
93
93
|
|
94
94
|
UI.important("Running snapshot on: #{devices.join(', ')}")
|
95
95
|
|
@@ -69,7 +69,8 @@ module Snapshot
|
|
69
69
|
unless launcher_config.dark_mode.nil?
|
70
70
|
interface_style(type, launcher_config.dark_mode)
|
71
71
|
end
|
72
|
-
|
72
|
+
end
|
73
|
+
if launcher_config.reinstall_app && !launcher_config.erase_simulator
|
73
74
|
# no need to reinstall if device has been erased
|
74
75
|
uninstall_app(type)
|
75
76
|
end
|
@@ -111,7 +112,7 @@ module Snapshot
|
|
111
112
|
end
|
112
113
|
end
|
113
114
|
|
114
|
-
def override_status_bar(device_type)
|
115
|
+
def override_status_bar(device_type, arguments = nil)
|
115
116
|
device_udid = TestCommandGenerator.device_udid(device_type)
|
116
117
|
|
117
118
|
UI.message("Launch Simulator #{device_type}")
|
@@ -119,9 +120,13 @@ module Snapshot
|
|
119
120
|
|
120
121
|
UI.message("Overriding Status Bar")
|
121
122
|
|
122
|
-
|
123
|
-
|
124
|
-
|
123
|
+
if arguments.nil? || arguments.empty?
|
124
|
+
# The time needs to be passed as ISO8601 so the simulator formats it correctly
|
125
|
+
time = Time.new(2007, 1, 9, 9, 41, 0)
|
126
|
+
arguments = "--time #{time.iso8601} --dataNetwork wifi --wifiMode active --wifiBars 3 --cellularMode active --cellularBars 4 --batteryState charged --batteryLevel 100"
|
127
|
+
end
|
128
|
+
|
129
|
+
Helper.backticks("xcrun simctl status_bar #{device_udid} override #{arguments} &> /dev/null")
|
125
130
|
end
|
126
131
|
|
127
132
|
def clear_status_bar(device_type)
|
@@ -13,7 +13,7 @@ module Snapshot
|
|
13
13
|
parts << "xcodebuild"
|
14
14
|
parts += options(language, locale)
|
15
15
|
parts += destination(devices)
|
16
|
-
parts += build_settings
|
16
|
+
parts += build_settings(language, locale)
|
17
17
|
parts += actions
|
18
18
|
parts += suffix
|
19
19
|
parts += pipe(log_path: log_path)
|
@@ -45,7 +45,14 @@ module Snapshot
|
|
45
45
|
# on Mac we will always run on host machine, so should specify only platform
|
46
46
|
return ["-destination 'platform=macOS'"] if devices.first.to_s =~ /^Mac/
|
47
47
|
|
48
|
-
|
48
|
+
case devices.first.to_s
|
49
|
+
when /^Apple TV/
|
50
|
+
os = 'tvOS'
|
51
|
+
when /^Apple Watch/
|
52
|
+
os = 'watchOS'
|
53
|
+
else
|
54
|
+
os = 'iOS'
|
55
|
+
end
|
49
56
|
|
50
57
|
os_version = Snapshot.config[:ios_version] || Snapshot::LatestOsVersion.version(os)
|
51
58
|
|
@@ -69,7 +76,7 @@ module Snapshot
|
|
69
76
|
# Check each device to see if it is an iOS device
|
70
77
|
all_ios = devices.map do |device|
|
71
78
|
device = device.downcase
|
72
|
-
device.include?('iphone') || device.include?('ipad')
|
79
|
+
device.include?('iphone') || device.include?('ipad') || device.include?('ipod')
|
73
80
|
end
|
74
81
|
# Return true if all devices are iOS devices
|
75
82
|
return true unless all_ios.include?(false)
|
@@ -78,9 +85,16 @@ module Snapshot
|
|
78
85
|
device = device.downcase
|
79
86
|
device.include?('apple tv')
|
80
87
|
end
|
81
|
-
# Return true if all devices are
|
88
|
+
# Return true if all devices are tvOS devices
|
82
89
|
return true unless all_tvos.include?(false)
|
83
90
|
|
91
|
+
all_watchos = devices.map do |device|
|
92
|
+
device = device.downcase
|
93
|
+
device.include?('apple watch')
|
94
|
+
end
|
95
|
+
# Return true if all devices are watchOS devices
|
96
|
+
return true unless all_watchos.include?(false)
|
97
|
+
|
84
98
|
# There should only be more than 1 device type if
|
85
99
|
# it is iOS or tvOS, therefore, if there is more than 1
|
86
100
|
# device in the array, and they are not all iOS or tvOS
|
@@ -40,11 +40,13 @@ module Snapshot
|
|
40
40
|
return options
|
41
41
|
end
|
42
42
|
|
43
|
-
def build_settings
|
43
|
+
def build_settings(language, locale)
|
44
44
|
config = Snapshot.config
|
45
45
|
|
46
46
|
build_settings = []
|
47
47
|
build_settings << "FASTLANE_SNAPSHOT=YES"
|
48
|
+
build_settings << "FASTLANE_LANGUAGE=#{language}" if language
|
49
|
+
build_settings << "FASTLANE_LOCALE=#{locale}" if locale
|
48
50
|
build_settings << "TEST_TARGET_NAME=#{config[:test_target_name].shellescape}" if config[:test_target_name]
|
49
51
|
|
50
52
|
return build_settings
|
@@ -14,7 +14,7 @@ module Snapshot
|
|
14
14
|
parts << "xcodebuild"
|
15
15
|
parts += options(language, locale)
|
16
16
|
parts += destination(device_type)
|
17
|
-
parts += build_settings
|
17
|
+
parts += build_settings(language, locale)
|
18
18
|
parts += actions
|
19
19
|
parts += suffix
|
20
20
|
parts += pipe(device_type, language, locale)
|
@@ -8,7 +8,7 @@ module Snapshot
|
|
8
8
|
def self.find_helper
|
9
9
|
paths = Dir["./**/SnapshotHelper.swift"] + Dir["./**/SnapshotHelperXcode8.swift"]
|
10
10
|
# exclude assets in gym
|
11
|
-
paths.reject { |p| p.include?("snapshot/lib/assets/") }
|
11
|
+
paths.reject { |p| p.include?("snapshot/lib/assets/") || p.include?("DerivedData") }
|
12
12
|
end
|
13
13
|
|
14
14
|
def update(force: false)
|
data/spaceship/README.md
CHANGED
@@ -83,7 +83,7 @@ Using spaceship, the execution time of [_sigh_](https://docs.fastlane.tools/acti
|
|
83
83
|
|
84
84
|
_spaceship_ is part of _fastlane_:
|
85
85
|
|
86
|
-
|
86
|
+
gem install fastlane
|
87
87
|
|
88
88
|
# Usage
|
89
89
|
|
@@ -93,7 +93,7 @@ To try _spaceship_, just run `fastlane spaceship`. It will automatically start t
|
|
93
93
|
|
94
94
|
![assets/docs/Playground.png](assets/docs/Playground.png)
|
95
95
|
|
96
|
-
This requires you to install `pry` using `
|
96
|
+
This requires you to install `pry` using `gem install pry`. `pry` is not installed by default, as most [_fastlane_](https://fastlane.tools) users won't need the `spaceship playground`. You can add the `pry` dependency to your `Gemfile`.
|
97
97
|
|
98
98
|
## Apple Developer Portal API
|
99
99
|
|
@@ -111,21 +111,11 @@ When your Apple account has 2 factor verification enabled, you'll automatically
|
|
111
111
|
|
112
112
|
#### Web sessions
|
113
113
|
|
114
|
-
|
115
|
-
|
116
|
-
```sh
|
117
|
-
fastlane spaceauth -u user@example.org
|
118
|
-
```
|
119
|
-
|
120
|
-
This will authenticate you and provide a string that can be transferred to your CI system. Copy everything from `---\n` to your CI server and provide it as environment variable named `FASTLANE_SESSION`. For example:
|
121
|
-
|
122
|
-
```
|
123
|
-
export FASTLANE_SESSION='---\n- !ruby/object:HTTP::Cookie\n name: DES5c148586dfd451e55afbaaa5f62418f91\n value: HSARMTKNSRVTWFla1+yO4gVPowH17VaaaxPFnUdMUegQZxqy1Ie1c2v6bM1vSOzIbuOmrl/FNenlScsd/NbF7/Lw4cpnL15jsyg0TOJwP32tC/NguPiyOaaaU+jrj4tf4uKdIywVaaaFSRVT\n domain: idmsa.apple.com\n for_domain: true\n path: "/"\n secure: true\n httponly: true\n expires: 2016-04-27 23:55:56.000000000 Z\n max_age: \n created_at: 2016-03-28 16:55:57.032086000 -07:00\n accessed_at: 2016-03-28 19:11:17.828141000 -07:00\n'
|
124
|
-
```
|
114
|
+
See [Best Practices > Continuous Integration > Authenticating with Apple services > Method 2: Two-step or two-factor authentication > Storing a manually verified session using spaceauth](https://docs.fastlane.tools/best-practices/continuous-integration/#storing-a-manually-verified-session-using-spaceauth)
|
125
115
|
|
126
116
|
#### Transporter
|
127
117
|
|
128
|
-
See [Continuous Integration >
|
118
|
+
See [Best Practices > Continuous Integration > Authenticating with Apple services > Method 3: Application-specific passwords](https://docs.fastlane.tools/best-practices/continuous-integration/#method-3-application-specific-passwords)
|
129
119
|
|
130
120
|
## _spaceship_ in use
|
131
121
|
|