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
@@ -81,30 +81,27 @@ module Fastlane
|
|
81
81
|
env_name: "FL_RESET_GIT_FILES",
|
82
82
|
description: "Array of files the changes should be discarded. If not given, all files will be discarded",
|
83
83
|
optional: true,
|
84
|
-
|
85
|
-
verify_block: proc do |value|
|
86
|
-
UI.user_error!("Please pass an array only") unless value.kind_of?(Array)
|
87
|
-
end),
|
84
|
+
type: Array),
|
88
85
|
FastlaneCore::ConfigItem.new(key: :force,
|
89
86
|
env_name: "FL_RESET_GIT_FORCE",
|
90
87
|
description: "Skip verifying of previously clean state of repo. Only recommended in combination with `files` option",
|
91
|
-
|
88
|
+
type: Boolean,
|
92
89
|
default_value: false),
|
93
90
|
FastlaneCore::ConfigItem.new(key: :skip_clean,
|
94
91
|
env_name: "FL_RESET_GIT_SKIP_CLEAN",
|
95
92
|
description: "Skip 'git clean' to avoid removing untracked files like `.env`",
|
96
|
-
|
93
|
+
type: Boolean,
|
97
94
|
default_value: false),
|
98
95
|
FastlaneCore::ConfigItem.new(key: :disregard_gitignore,
|
99
96
|
env_name: "FL_RESET_GIT_DISREGARD_GITIGNORE",
|
100
97
|
description: "Setting this to true will clean the whole repository, ignoring anything in your local .gitignore. Set this to true if you want the equivalent of a fresh clone, and for all untracked and ignore files to also be removed",
|
101
|
-
|
98
|
+
type: Boolean,
|
102
99
|
optional: true,
|
103
100
|
default_value: true),
|
104
101
|
FastlaneCore::ConfigItem.new(key: :exclude,
|
105
102
|
env_name: "FL_RESET_GIT_EXCLUDE",
|
106
103
|
description: "You can pass a string, or array of, file pattern(s) here which you want to have survive the cleaning process, and remain on disk, e.g. to leave the `artifacts` directory you would specify `exclude: 'artifacts'`. Make sure this pattern is also in your gitignore! See the gitignore documentation for info on patterns",
|
107
|
-
|
104
|
+
skip_type_validation: true, # allows String, Array, Regex
|
108
105
|
optional: true)
|
109
106
|
]
|
110
107
|
end
|
@@ -44,14 +44,12 @@ module Fastlane
|
|
44
44
|
short_option: "-i",
|
45
45
|
env_name: "FASTLANE_RESET_SIMULATOR_VERSIONS",
|
46
46
|
description: "Which OS versions of Simulators you want to reset content and settings, this does not remove/recreate the simulators",
|
47
|
-
is_string: false,
|
48
47
|
optional: true,
|
49
48
|
type: Array),
|
50
49
|
FastlaneCore::ConfigItem.new(key: :os_versions,
|
51
50
|
short_option: "-v",
|
52
51
|
env_name: "FASTLANE_RESET_SIMULATOR_OS_VERSIONS",
|
53
52
|
description: "Which OS versions of Simulators you want to reset content and settings, this does not remove/recreate the simulators",
|
54
|
-
is_string: false,
|
55
53
|
optional: true,
|
56
54
|
type: Array)
|
57
55
|
]
|
@@ -60,14 +60,13 @@ module Fastlane
|
|
60
60
|
env_name: "FL_RESIGN_ENTITLEMENTS",
|
61
61
|
description: "Path to the entitlement file to use, e.g. `myApp/MyApp.entitlements`",
|
62
62
|
conflicting_options: [:use_app_entitlements],
|
63
|
-
is_string: true,
|
64
63
|
optional: true),
|
65
64
|
FastlaneCore::ConfigItem.new(key: :provisioning_profile,
|
66
65
|
env_name: "FL_RESIGN_PROVISIONING_PROFILE",
|
67
66
|
description: "Path to your provisioning_profile. Optional if you use _sigh_",
|
68
67
|
default_value: Actions.lane_context[SharedValues::SIGH_PROFILE_PATH],
|
69
68
|
default_value_dynamic: true,
|
70
|
-
|
69
|
+
skip_type_validation: true, # allows Hash, Array
|
71
70
|
verify_block: proc do |value|
|
72
71
|
files = case value
|
73
72
|
when Hash then value.values
|
@@ -82,40 +81,34 @@ module Fastlane
|
|
82
81
|
env_name: "FL_RESIGN_VERSION",
|
83
82
|
description: "Version number to force resigned ipa to use. Updates both `CFBundleShortVersionString` and `CFBundleVersion` values in `Info.plist`. Applies for main app and all nested apps or extensions",
|
84
83
|
conflicting_options: [:short_version, :bundle_version],
|
85
|
-
is_string: true,
|
86
84
|
optional: true),
|
87
85
|
FastlaneCore::ConfigItem.new(key: :display_name,
|
88
86
|
env_name: "FL_DISPLAY_NAME",
|
89
87
|
description: "Display name to force resigned ipa to use",
|
90
|
-
is_string: true,
|
91
88
|
optional: true),
|
92
89
|
FastlaneCore::ConfigItem.new(key: :short_version,
|
93
90
|
env_name: "FL_RESIGN_SHORT_VERSION",
|
94
91
|
description: "Short version string to force resigned ipa to use (`CFBundleShortVersionString`)",
|
95
92
|
conflicting_options: [:version],
|
96
|
-
is_string: true,
|
97
93
|
optional: true),
|
98
94
|
FastlaneCore::ConfigItem.new(key: :bundle_version,
|
99
95
|
env_name: "FL_RESIGN_BUNDLE_VERSION",
|
100
96
|
description: "Bundle version to force resigned ipa to use (`CFBundleVersion`)",
|
101
97
|
conflicting_options: [:version],
|
102
|
-
is_string: true,
|
103
98
|
optional: true),
|
104
99
|
FastlaneCore::ConfigItem.new(key: :bundle_id,
|
105
100
|
env_name: "FL_RESIGN_BUNDLE_ID",
|
106
101
|
description: "Set new bundle ID during resign (`CFBundleIdentifier`)",
|
107
|
-
is_string: true,
|
108
102
|
optional: true),
|
109
103
|
FastlaneCore::ConfigItem.new(key: :use_app_entitlements,
|
110
104
|
env_name: "FL_USE_APP_ENTITLEMENTS",
|
111
105
|
description: "Extract app bundle codesigning entitlements and combine with entitlements from new provisioning profile",
|
112
106
|
conflicting_options: [:entitlements],
|
113
|
-
|
107
|
+
type: Boolean,
|
114
108
|
optional: true),
|
115
109
|
FastlaneCore::ConfigItem.new(key: :keychain_path,
|
116
110
|
env_name: "FL_RESIGN_KEYCHAIN_PATH",
|
117
111
|
description: "Provide a path to a keychain file that should be used by `/usr/bin/codesign`",
|
118
|
-
is_string: true,
|
119
112
|
optional: true)
|
120
113
|
]
|
121
114
|
end
|
@@ -5,7 +5,7 @@ module Fastlane
|
|
5
5
|
path = params[:path]
|
6
6
|
backup_path = "#{path}.back"
|
7
7
|
UI.user_error!("Could not find file '#{backup_path}'") unless File.exist?(backup_path)
|
8
|
-
FileUtils.cp(backup_path, path,
|
8
|
+
FileUtils.cp(backup_path, path, preserve: true)
|
9
9
|
FileUtils.rm(backup_path)
|
10
10
|
UI.message("Successfully restored backup 📤")
|
11
11
|
end
|
@@ -32,20 +32,17 @@ module Fastlane
|
|
32
32
|
env_name: "FL_RSYNC_EXTRA", # The name of the environment variable
|
33
33
|
description: "Port", # a short description of this parameter
|
34
34
|
optional: true,
|
35
|
-
default_value: "-av",
|
36
|
-
is_string: true),
|
35
|
+
default_value: "-av"),
|
37
36
|
FastlaneCore::ConfigItem.new(key: :source,
|
38
37
|
short_option: "-S",
|
39
38
|
env_name: "FL_RSYNC_SRC", # The name of the environment variable
|
40
39
|
description: "source file/folder", # a short description of this parameter
|
41
|
-
optional: false,
|
42
|
-
is_string: true),
|
40
|
+
optional: false),
|
43
41
|
FastlaneCore::ConfigItem.new(key: :destination,
|
44
42
|
short_option: "-D",
|
45
43
|
env_name: "FL_RSYNC_DST", # The name of the environment variable
|
46
44
|
description: "destination file/folder", # a short description of this parameter
|
47
|
-
optional: false
|
48
|
-
is_string: true)
|
45
|
+
optional: false)
|
49
46
|
]
|
50
47
|
end
|
51
48
|
|
@@ -60,7 +60,7 @@ module Fastlane
|
|
60
60
|
FastlaneCore::ConfigItem.new(key: :fail_build,
|
61
61
|
env_name: "SCAN_FAIL_BUILD",
|
62
62
|
description: "Should this step stop the build if the tests fail? Set this to false if you're using trainer",
|
63
|
-
|
63
|
+
type: Boolean,
|
64
64
|
default_value: true)
|
65
65
|
]
|
66
66
|
end
|
@@ -52,7 +52,7 @@ module Fastlane
|
|
52
52
|
description: "Upload relevant metadata for this build",
|
53
53
|
optional: true,
|
54
54
|
default_value: true,
|
55
|
-
|
55
|
+
type: Boolean),
|
56
56
|
FastlaneCore::ConfigItem.new(key: :plist_template_path,
|
57
57
|
env_name: "",
|
58
58
|
description: "plist template path",
|
@@ -3,7 +3,7 @@ module Fastlane
|
|
3
3
|
class SayAction < Action
|
4
4
|
def self.run(params)
|
5
5
|
text = params[:text]
|
6
|
-
text = text.join(' ')
|
6
|
+
text = text.join(' ')
|
7
7
|
text = text.tr("'", '"')
|
8
8
|
|
9
9
|
if params[:mute]
|
@@ -23,12 +23,11 @@ module Fastlane
|
|
23
23
|
FastlaneCore::ConfigItem.new(key: :text,
|
24
24
|
description: 'Text to be spoken out loud (as string or array of strings)',
|
25
25
|
optional: false,
|
26
|
-
|
26
|
+
type: Array),
|
27
27
|
FastlaneCore::ConfigItem.new(key: :mute,
|
28
28
|
env_name: "SAY_MUTE",
|
29
29
|
description: 'If say should be muted with text printed out',
|
30
30
|
optional: false,
|
31
|
-
is_string: false,
|
32
31
|
type: Boolean,
|
33
32
|
default_value: false)
|
34
33
|
]
|
@@ -38,40 +38,34 @@ module Fastlane
|
|
38
38
|
FastlaneCore::ConfigItem.new(key: :username,
|
39
39
|
short_option: "-u",
|
40
40
|
env_name: "FL_SSH_USERNAME",
|
41
|
-
description: "Username",
|
42
|
-
is_string: true),
|
41
|
+
description: "Username"),
|
43
42
|
FastlaneCore::ConfigItem.new(key: :password,
|
44
43
|
short_option: "-p",
|
45
44
|
env_name: "FL_SSH_PASSWORD",
|
46
45
|
description: "Password",
|
47
46
|
sensitive: true,
|
48
|
-
optional: true,
|
49
|
-
is_string: true),
|
47
|
+
optional: true),
|
50
48
|
FastlaneCore::ConfigItem.new(key: :host,
|
51
49
|
short_option: "-H",
|
52
50
|
env_name: "FL_SSH_HOST",
|
53
|
-
description: "Hostname",
|
54
|
-
is_string: true),
|
51
|
+
description: "Hostname"),
|
55
52
|
FastlaneCore::ConfigItem.new(key: :port,
|
56
53
|
short_option: "-P",
|
57
54
|
env_name: "FL_SSH_PORT",
|
58
55
|
description: "Port",
|
59
56
|
optional: true,
|
60
|
-
default_value: "22",
|
61
|
-
is_string: true),
|
57
|
+
default_value: "22"),
|
62
58
|
FastlaneCore::ConfigItem.new(key: :upload,
|
63
59
|
short_option: "-U",
|
64
60
|
env_name: "FL_SCP_UPLOAD",
|
65
61
|
description: "Upload",
|
66
62
|
optional: true,
|
67
|
-
is_string: false,
|
68
63
|
type: Hash),
|
69
64
|
FastlaneCore::ConfigItem.new(key: :download,
|
70
65
|
short_option: "-D",
|
71
66
|
env_name: "FL_SCP_DOWNLOAD",
|
72
67
|
description: "Download",
|
73
68
|
optional: true,
|
74
|
-
is_string: false,
|
75
69
|
type: Hash)
|
76
70
|
|
77
71
|
]
|
@@ -41,7 +41,7 @@ module Fastlane
|
|
41
41
|
env_name: "USE_HG_REVISION_NUMBER",
|
42
42
|
description: "Use hg revision number instead of hash (ignored for non-hg repos)",
|
43
43
|
optional: true,
|
44
|
-
|
44
|
+
type: Boolean,
|
45
45
|
default_value: false),
|
46
46
|
FastlaneCore::ConfigItem.new(key: :xcodeproj,
|
47
47
|
env_name: "XCODEPROJ_PATH",
|
@@ -6,9 +6,11 @@ module Fastlane
|
|
6
6
|
|
7
7
|
# Team selection passed though FASTLANE_ITC_TEAM_ID and FASTLANE_ITC_TEAM_NAME environment variables
|
8
8
|
# Prompts select team if multiple teams and none specified
|
9
|
-
if (
|
10
|
-
UI.message("
|
11
|
-
Spaceship::ConnectAPI.token =
|
9
|
+
if (api_token = Spaceship::ConnectAPI::Token.from(hash: params[:api_key], filepath: params[:api_key_path]))
|
10
|
+
UI.message("Creating authorization token for App Store Connect API")
|
11
|
+
Spaceship::ConnectAPI.token = api_token
|
12
|
+
elsif !Spaceship::ConnectAPI.token.nil?
|
13
|
+
UI.message("Using existing authorization token for App Store Connect API")
|
12
14
|
else
|
13
15
|
UI.message("Login to App Store Connect (#{params[:username]})")
|
14
16
|
Spaceship::ConnectAPI.login(params[:username], use_portal: false, use_tunes: true, tunes_team_id: params[:team_id], team_name: params[:team_name])
|
@@ -78,13 +80,6 @@ module Fastlane
|
|
78
80
|
UI.success("👼 Successfully pushed the new changelog to for #{edit_version.version_string}")
|
79
81
|
end
|
80
82
|
|
81
|
-
def self.api_token(params)
|
82
|
-
params[:api_key] ||= Actions.lane_context[SharedValues::APP_STORE_CONNECT_API_KEY]
|
83
|
-
api_token ||= Spaceship::ConnectAPI::Token.create(params[:api_key]) if params[:api_key]
|
84
|
-
api_token ||= Spaceship::ConnectAPI::Token.from_json_file(params[:api_key_path]) if params[:api_key_path]
|
85
|
-
return api_token
|
86
|
-
end
|
87
|
-
|
88
83
|
def self.default_changelog_path
|
89
84
|
File.join(FastlaneCore::FastlaneFolder.path.to_s, 'changelog.txt')
|
90
85
|
end
|
@@ -111,7 +106,7 @@ module Fastlane
|
|
111
106
|
|
112
107
|
[
|
113
108
|
FastlaneCore::ConfigItem.new(key: :api_key_path,
|
114
|
-
|
109
|
+
env_names: ["FL_SET_CHANGELOG_API_KEY_PATH", "APP_STORE_CONNECT_API_KEY_PATH"],
|
115
110
|
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)",
|
116
111
|
optional: true,
|
117
112
|
conflicting_options: [:api_key],
|
@@ -119,9 +114,11 @@ module Fastlane
|
|
119
114
|
UI.user_error!("Couldn't find API key JSON file at path '#{value}'") unless File.exist?(value)
|
120
115
|
end),
|
121
116
|
FastlaneCore::ConfigItem.new(key: :api_key,
|
122
|
-
|
117
|
+
env_names: ["FL_SET_CHANGELOG_API_KEY", "APP_STORE_CONNECT_API_KEY"],
|
123
118
|
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)",
|
124
119
|
type: Hash,
|
120
|
+
default_value: Fastlane::Actions.lane_context[Fastlane::Actions::SharedValues::APP_STORE_CONNECT_API_KEY],
|
121
|
+
default_value_dynamic: true,
|
125
122
|
optional: true,
|
126
123
|
sensitive: true,
|
127
124
|
conflicting_options: [:api_key_path]),
|
@@ -152,7 +149,7 @@ module Fastlane
|
|
152
149
|
env_name: "FL_SET_CHANGELOG_TEAM_ID",
|
153
150
|
description: "The ID of your App Store Connect team if you're in multiple teams",
|
154
151
|
optional: true,
|
155
|
-
|
152
|
+
skip_type_validation: true, # as we also allow integers, which we convert to strings anyway
|
156
153
|
code_gen_sensitive: true,
|
157
154
|
default_value: CredentialsManager::AppfileConfig.try_fetch_value(:itc_team_id),
|
158
155
|
default_value_dynamic: true,
|
@@ -13,6 +13,7 @@ module Fastlane
|
|
13
13
|
|
14
14
|
repo_name = params[:repository_name]
|
15
15
|
api_token = params[:api_token]
|
16
|
+
api_bearer = params[:api_bearer]
|
16
17
|
server_url = params[:server_url]
|
17
18
|
tag_name = params[:tag_name]
|
18
19
|
|
@@ -28,6 +29,7 @@ module Fastlane
|
|
28
29
|
GithubApiAction.run(
|
29
30
|
server_url: server_url,
|
30
31
|
api_token: api_token,
|
32
|
+
api_bearer: api_bearer,
|
31
33
|
http_method: 'POST',
|
32
34
|
path: "repos/#{repo_name}/releases",
|
33
35
|
body: payload,
|
@@ -65,12 +67,13 @@ module Fastlane
|
|
65
67
|
assets = params[:upload_assets]
|
66
68
|
if assets && assets.count > 0
|
67
69
|
# upload assets
|
68
|
-
self.upload_assets(assets, json['upload_url'], api_token)
|
70
|
+
self.upload_assets(assets, json['upload_url'], api_token, api_bearer)
|
69
71
|
|
70
72
|
# fetch the release again, so that it contains the uploaded assets
|
71
73
|
GithubApiAction.run(
|
72
74
|
server_url: server_url,
|
73
75
|
api_token: api_token,
|
76
|
+
api_bearer: api_bearer,
|
74
77
|
http_method: 'GET',
|
75
78
|
path: "repos/#{repo_name}/releases/#{release_id}",
|
76
79
|
error_handlers: {
|
@@ -90,13 +93,13 @@ module Fastlane
|
|
90
93
|
end
|
91
94
|
end
|
92
95
|
|
93
|
-
def self.upload_assets(assets, upload_url_template, api_token)
|
96
|
+
def self.upload_assets(assets, upload_url_template, api_token, api_bearer)
|
94
97
|
assets.each do |asset|
|
95
|
-
self.upload(asset, upload_url_template, api_token)
|
98
|
+
self.upload(asset, upload_url_template, api_token, api_bearer)
|
96
99
|
end
|
97
100
|
end
|
98
101
|
|
99
|
-
def self.upload(asset_path, upload_url_template, api_token)
|
102
|
+
def self.upload(asset_path, upload_url_template, api_token, api_bearer)
|
100
103
|
# if it's a directory, zip it first in a temp directory, because we can only upload binary files
|
101
104
|
absolute_path = File.absolute_path(asset_path)
|
102
105
|
|
@@ -107,14 +110,14 @@ module Fastlane
|
|
107
110
|
Dir.mktmpdir do |dir|
|
108
111
|
tmpzip = File.join(dir, File.basename(absolute_path) + '.zip')
|
109
112
|
sh("cd \"#{File.dirname(absolute_path)}\"; zip -r --symlinks \"#{tmpzip}\" \"#{File.basename(absolute_path)}\" 2>&1 >/dev/null")
|
110
|
-
self.upload_file(tmpzip, upload_url_template, api_token)
|
113
|
+
self.upload_file(tmpzip, upload_url_template, api_token, api_bearer)
|
111
114
|
end
|
112
115
|
else
|
113
|
-
self.upload_file(absolute_path, upload_url_template, api_token)
|
116
|
+
self.upload_file(absolute_path, upload_url_template, api_token, api_bearer)
|
114
117
|
end
|
115
118
|
end
|
116
119
|
|
117
|
-
def self.upload_file(file, url_template, api_token)
|
120
|
+
def self.upload_file(file, url_template, api_token, api_bearer)
|
118
121
|
require 'addressable/template'
|
119
122
|
file_name = File.basename(file)
|
120
123
|
expanded_url = Addressable::Template.new(url_template).expand(name: file_name).to_s
|
@@ -122,6 +125,7 @@ module Fastlane
|
|
122
125
|
UI.important("Uploading #{file_name}")
|
123
126
|
GithubApiAction.run(
|
124
127
|
api_token: api_token,
|
128
|
+
api_bearer: api_bearer,
|
125
129
|
http_method: 'POST',
|
126
130
|
headers: headers,
|
127
131
|
url: expanded_url,
|
@@ -173,31 +177,35 @@ module Fastlane
|
|
173
177
|
FastlaneCore::ConfigItem.new(key: :api_token,
|
174
178
|
env_name: "FL_GITHUB_RELEASE_API_TOKEN",
|
175
179
|
description: "Personal API Token for GitHub - generate one at https://github.com/settings/tokens",
|
180
|
+
conflicting_options: [:api_bearer],
|
176
181
|
sensitive: true,
|
177
182
|
code_gen_sensitive: true,
|
178
|
-
is_string: true,
|
179
183
|
default_value: ENV["GITHUB_API_TOKEN"],
|
180
184
|
default_value_dynamic: true,
|
181
|
-
optional:
|
185
|
+
optional: true),
|
186
|
+
FastlaneCore::ConfigItem.new(key: :api_bearer,
|
187
|
+
env_name: "FL_GITHUB_RELEASE_API_BEARER",
|
188
|
+
sensitive: true,
|
189
|
+
code_gen_sensitive: true,
|
190
|
+
description: "Use a Bearer authorization token. Usually generated by Github Apps, e.g. GitHub Actions GITHUB_TOKEN environment variable",
|
191
|
+
conflicting_options: [:api_token],
|
192
|
+
optional: true,
|
193
|
+
default_value: nil),
|
182
194
|
FastlaneCore::ConfigItem.new(key: :tag_name,
|
183
195
|
env_name: "FL_SET_GITHUB_RELEASE_TAG_NAME",
|
184
196
|
description: "Pass in the tag name",
|
185
|
-
is_string: true,
|
186
197
|
optional: false),
|
187
198
|
FastlaneCore::ConfigItem.new(key: :name,
|
188
199
|
env_name: "FL_SET_GITHUB_RELEASE_NAME",
|
189
200
|
description: "Name of this release",
|
190
|
-
is_string: true,
|
191
201
|
optional: true),
|
192
202
|
FastlaneCore::ConfigItem.new(key: :commitish,
|
193
203
|
env_name: "FL_SET_GITHUB_RELEASE_COMMITISH",
|
194
204
|
description: "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually master)",
|
195
|
-
is_string: true,
|
196
205
|
optional: true),
|
197
206
|
FastlaneCore::ConfigItem.new(key: :description,
|
198
207
|
env_name: "FL_SET_GITHUB_RELEASE_DESCRIPTION",
|
199
208
|
description: "Description of this release",
|
200
|
-
is_string: true,
|
201
209
|
optional: true,
|
202
210
|
default_value: Actions.lane_context[SharedValues::FL_CHANGELOG],
|
203
211
|
default_value_dynamic: true),
|
@@ -206,18 +214,17 @@ module Fastlane
|
|
206
214
|
description: "Whether the release should be marked as draft",
|
207
215
|
optional: true,
|
208
216
|
default_value: false,
|
209
|
-
|
217
|
+
type: Boolean),
|
210
218
|
FastlaneCore::ConfigItem.new(key: :is_prerelease,
|
211
219
|
env_name: "FL_SET_GITHUB_RELEASE_IS_PRERELEASE",
|
212
220
|
description: "Whether the release should be marked as prerelease",
|
213
221
|
optional: true,
|
214
222
|
default_value: false,
|
215
|
-
|
223
|
+
type: Boolean),
|
216
224
|
FastlaneCore::ConfigItem.new(key: :upload_assets,
|
217
225
|
env_name: "FL_SET_GITHUB_RELEASE_UPLOAD_ASSETS",
|
218
226
|
description: "Path to assets to be uploaded with the release",
|
219
227
|
optional: true,
|
220
|
-
is_string: false,
|
221
228
|
type: Array,
|
222
229
|
verify_block: proc do |value|
|
223
230
|
UI.user_error!("upload_assets must be an Array of paths to assets") unless value.kind_of?(Array)
|
@@ -53,7 +53,7 @@ module Fastlane
|
|
53
53
|
FastlaneCore::ConfigItem.new(key: :value,
|
54
54
|
env_name: "FL_SET_INFO_PLIST_PARAM_VALUE",
|
55
55
|
description: "Value to setup",
|
56
|
-
|
56
|
+
skip_type_validation: true, # allow String, Hash
|
57
57
|
optional: false),
|
58
58
|
FastlaneCore::ConfigItem.new(key: :path,
|
59
59
|
env_name: "FL_SET_INFO_PLIST_PATH",
|