fastlane 2.74.1 → 2.75.0.beta.20180109010003
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/bin-proxy +2 -2
- data/bin/fastlane +5 -5
- data/cert/lib/cert/commands_generator.rb +1 -1
- data/cert/lib/cert/runner.rb +14 -14
- data/credentials_manager/lib/credentials_manager/account_manager.rb +11 -11
- data/credentials_manager/lib/credentials_manager/appfile_config.rb +11 -11
- data/credentials_manager/lib/credentials_manager/cli.rb +4 -4
- data/deliver/lib/deliver/app_screenshot.rb +19 -2
- data/deliver/lib/deliver/commands_generator.rb +2 -2
- data/deliver/lib/deliver/loader.rb +2 -2
- data/deliver/lib/deliver/options.rb +2 -2
- data/deliver/lib/deliver/setup.rb +1 -1
- data/deliver/lib/deliver/submit_for_review.rb +1 -1
- data/fastlane/lib/fastlane/action.rb +2 -2
- data/fastlane/lib/fastlane/actions/actions_helper.rb +5 -5
- data/fastlane/lib/fastlane/actions/add_extra_platforms.rb +2 -2
- data/fastlane/lib/fastlane/actions/add_git_tag.rb +1 -1
- data/fastlane/lib/fastlane/actions/app_store_build_number.rb +1 -1
- data/fastlane/lib/fastlane/actions/appaloosa.rb +4 -4
- data/fastlane/lib/fastlane/actions/appetize.rb +3 -3
- data/fastlane/lib/fastlane/actions/appetize_viewing_url_generator.rb +2 -2
- data/fastlane/lib/fastlane/actions/appium.rb +2 -2
- data/fastlane/lib/fastlane/actions/appledoc.rb +3 -3
- data/fastlane/lib/fastlane/actions/apteligent.rb +2 -2
- data/fastlane/lib/fastlane/actions/artifactory.rb +2 -2
- data/fastlane/lib/fastlane/actions/backup_xcarchive.rb +1 -1
- data/fastlane/lib/fastlane/actions/build_ios_app.rb +1 -1
- data/fastlane/lib/fastlane/actions/capture_ios_screenshots.rb +1 -1
- data/fastlane/lib/fastlane/actions/carthage.rb +4 -4
- data/fastlane/lib/fastlane/actions/changelog_from_git_commits.rb +4 -4
- data/fastlane/lib/fastlane/actions/clean_build_artifacts.rb +1 -1
- data/fastlane/lib/fastlane/actions/clean_cocoapods_cache.rb +1 -1
- data/fastlane/lib/fastlane/actions/cloc.rb +1 -1
- data/fastlane/lib/fastlane/actions/cocoapods.rb +1 -1
- data/fastlane/lib/fastlane/actions/commit_github_file.rb +4 -4
- data/fastlane/lib/fastlane/actions/commit_version_bump.rb +7 -7
- data/fastlane/lib/fastlane/actions/copy_artifacts.rb +1 -1
- data/fastlane/lib/fastlane/actions/crashlytics.rb +2 -2
- data/fastlane/lib/fastlane/actions/debug.rb +2 -2
- data/fastlane/lib/fastlane/actions/delete_keychain.rb +1 -1
- data/fastlane/lib/fastlane/actions/deploygate.rb +7 -7
- data/fastlane/lib/fastlane/actions/docs/cert.md +2 -2
- data/fastlane/lib/fastlane/actions/docs/deliver.md +1 -1
- data/fastlane/lib/fastlane/actions/docs/frameit.md +2 -2
- data/fastlane/lib/fastlane/actions/docs/gym.md +1 -3
- data/fastlane/lib/fastlane/actions/docs/match.md +4 -4
- data/fastlane/lib/fastlane/actions/docs/pem.md +1 -1
- data/fastlane/lib/fastlane/actions/docs/precheck.md +2 -2
- data/fastlane/lib/fastlane/actions/docs/produce.md +1 -1
- data/fastlane/lib/fastlane/actions/docs/scan.md +0 -2
- data/fastlane/lib/fastlane/actions/docs/sigh.md +6 -6
- data/fastlane/lib/fastlane/actions/docs/snapshot.md +4 -4
- data/fastlane/lib/fastlane/actions/download_dsyms.rb +1 -1
- data/fastlane/lib/fastlane/actions/dsym_zip.rb +1 -1
- data/fastlane/lib/fastlane/actions/ensure_no_debug_code.rb +1 -1
- data/fastlane/lib/fastlane/actions/flock.rb +7 -7
- data/fastlane/lib/fastlane/actions/frame_screenshots.rb +1 -1
- data/fastlane/lib/fastlane/actions/gcovr.rb +5 -5
- data/fastlane/lib/fastlane/actions/get_build_number.rb +2 -2
- data/fastlane/lib/fastlane/actions/get_build_number_repository.rb +9 -9
- data/fastlane/lib/fastlane/actions/get_github_release.rb +2 -2
- data/fastlane/lib/fastlane/actions/get_info_plist_value.rb +1 -1
- data/fastlane/lib/fastlane/actions/get_version_number.rb +7 -7
- data/fastlane/lib/fastlane/actions/github_api.rb +2 -2
- data/fastlane/lib/fastlane/actions/hg_commit_version_bump.rb +2 -2
- data/fastlane/lib/fastlane/actions/hockey.rb +5 -5
- data/fastlane/lib/fastlane/actions/ifttt.rb +4 -4
- data/fastlane/lib/fastlane/actions/increment_build_number.rb +3 -3
- data/fastlane/lib/fastlane/actions/increment_version_number.rb +4 -4
- data/fastlane/lib/fastlane/actions/install_on_device.rb +2 -2
- data/fastlane/lib/fastlane/actions/install_xcode_plugin.rb +2 -2
- data/fastlane/lib/fastlane/actions/installr.rb +6 -6
- data/fastlane/lib/fastlane/actions/ipa.rb +1 -1
- data/fastlane/lib/fastlane/actions/latest_testflight_build_number.rb +1 -1
- data/fastlane/lib/fastlane/actions/lcov.rb +1 -1
- data/fastlane/lib/fastlane/actions/mailgun.rb +3 -3
- data/fastlane/lib/fastlane/actions/modify_services.rb +1 -1
- 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/onesignal.rb +1 -1
- data/fastlane/lib/fastlane/actions/pod_push.rb +1 -1
- data/fastlane/lib/fastlane/actions/podio_item.rb +6 -6
- data/fastlane/lib/fastlane/actions/puts.rb +1 -1
- data/fastlane/lib/fastlane/actions/read_podspec.rb +1 -1
- data/fastlane/lib/fastlane/actions/recreate_schemes.rb +1 -1
- data/fastlane/lib/fastlane/actions/reset_git_repo.rb +1 -1
- data/fastlane/lib/fastlane/actions/restore_file.rb +1 -1
- data/fastlane/lib/fastlane/actions/rocket.rb +2 -2
- data/fastlane/lib/fastlane/actions/run_tests.rb +1 -1
- data/fastlane/lib/fastlane/actions/s3.rb +1 -1
- data/fastlane/lib/fastlane/actions/scp.rb +2 -2
- data/fastlane/lib/fastlane/actions/set_build_number_repository.rb +1 -1
- data/fastlane/lib/fastlane/actions/set_changelog.rb +2 -2
- data/fastlane/lib/fastlane/actions/set_github_release.rb +4 -4
- data/fastlane/lib/fastlane/actions/set_info_plist_value.rb +2 -2
- data/fastlane/lib/fastlane/actions/set_pod_key.rb +1 -1
- data/fastlane/lib/fastlane/actions/setup_circle_ci.rb +4 -4
- data/fastlane/lib/fastlane/actions/setup_jenkins.rb +6 -6
- data/fastlane/lib/fastlane/actions/setup_travis.rb +2 -2
- data/fastlane/lib/fastlane/actions/slack.rb +3 -3
- data/fastlane/lib/fastlane/actions/slather.rb +2 -2
- data/fastlane/lib/fastlane/actions/spm.rb +2 -2
- data/fastlane/lib/fastlane/actions/ssh.rb +1 -1
- data/fastlane/lib/fastlane/actions/team_id.rb +1 -1
- data/fastlane/lib/fastlane/actions/team_name.rb +1 -1
- data/fastlane/lib/fastlane/actions/testfairy.rb +7 -7
- data/fastlane/lib/fastlane/actions/tryouts.rb +6 -6
- data/fastlane/lib/fastlane/actions/update_app_group_identifiers.rb +2 -2
- data/fastlane/lib/fastlane/actions/update_fastlane.rb +5 -5
- data/fastlane/lib/fastlane/actions/update_icloud_container_identifiers.rb +10 -10
- data/fastlane/lib/fastlane/actions/update_info_plist.rb +1 -1
- data/fastlane/lib/fastlane/actions/update_project_provisioning.rb +1 -1
- data/fastlane/lib/fastlane/actions/update_url_schemes.rb +1 -1
- data/fastlane/lib/fastlane/actions/upload_symbols_to_crashlytics.rb +4 -4
- data/fastlane/lib/fastlane/actions/upload_symbols_to_sentry.rb +4 -4
- data/fastlane/lib/fastlane/actions/verify_build.rb +6 -6
- data/fastlane/lib/fastlane/actions/verify_pod_keys.rb +1 -1
- data/fastlane/lib/fastlane/actions/version_bump_podspec.rb +3 -3
- data/fastlane/lib/fastlane/actions/version_get_podspec.rb +2 -2
- data/fastlane/lib/fastlane/actions/xcode_select.rb +2 -2
- data/fastlane/lib/fastlane/actions/xcode_server_get_assets.rb +3 -3
- data/fastlane/lib/fastlane/actions/xcov.rb +1 -1
- data/fastlane/lib/fastlane/actions/xctool.rb +1 -1
- data/fastlane/lib/fastlane/actions/xcversion.rb +1 -1
- data/fastlane/lib/fastlane/actions/zip.rb +3 -3
- data/fastlane/lib/fastlane/auto_complete.rb +15 -15
- data/fastlane/lib/fastlane/cli_tools_distributor.rb +15 -15
- data/fastlane/lib/fastlane/command_line_handler.rb +1 -1
- data/fastlane/lib/fastlane/commands_generator.rb +26 -26
- data/fastlane/lib/fastlane/configuration_helper.rb +2 -2
- data/fastlane/lib/fastlane/documentation/actions_list.rb +47 -47
- data/fastlane/lib/fastlane/documentation/docs_generator.rb +1 -1
- data/fastlane/lib/fastlane/environment_printer.rb +5 -5
- data/fastlane/lib/fastlane/fast_file.rb +5 -5
- data/fastlane/lib/fastlane/fastlane_require.rb +2 -2
- data/fastlane/lib/fastlane/helper/crashlytics_helper.rb +3 -3
- data/fastlane/lib/fastlane/helper/podspec_helper.rb +1 -1
- data/fastlane/lib/fastlane/helper/sh_helper.rb +2 -2
- data/fastlane/lib/fastlane/helper/xcversion_helper.rb +1 -1
- data/fastlane/lib/fastlane/lane.rb +6 -6
- data/fastlane/lib/fastlane/lane_list.rb +3 -3
- data/fastlane/lib/fastlane/lane_manager.rb +7 -7
- data/fastlane/lib/fastlane/lane_manager_base.rb +15 -15
- data/fastlane/lib/fastlane/markdown_table_formatter.rb +2 -2
- data/fastlane/lib/fastlane/new_action.rb +5 -5
- data/fastlane/lib/fastlane/one_off.rb +1 -1
- data/fastlane/lib/fastlane/plugins/plugin_generator.rb +5 -5
- data/fastlane/lib/fastlane/plugins/plugin_generator_ui.rb +2 -2
- data/fastlane/lib/fastlane/plugins/plugin_manager.rb +7 -7
- data/fastlane/lib/fastlane/plugins/plugin_search.rb +5 -5
- data/fastlane/lib/fastlane/plugins/plugin_update_manager.rb +4 -4
- data/fastlane/lib/fastlane/plugins/template/%gem_name%.gemspec.erb +9 -8
- data/fastlane/lib/fastlane/plugins/template/.rubocop.yml +37 -2
- data/fastlane/lib/fastlane/plugins/template/Gemfile +1 -1
- data/fastlane/lib/fastlane/plugins/template/Rakefile +1 -1
- data/fastlane/lib/fastlane/plugins/template/lib/fastlane/plugin/%plugin_name%/actions/%plugin_name%_action.rb.erb +3 -0
- data/fastlane/lib/fastlane/plugins/template/lib/fastlane/plugin/%plugin_name%/helper/%plugin_name%_helper.rb.erb +4 -0
- data/fastlane/lib/fastlane/plugins/template/spec/spec_helper.rb.erb +1 -1
- data/fastlane/lib/fastlane/runner.rb +9 -9
- data/fastlane/lib/fastlane/setup/crashlytics_beta.rb +9 -9
- data/fastlane/lib/fastlane/setup/crashlytics_beta_command_line_handler.rb +7 -7
- data/fastlane/lib/fastlane/setup/crashlytics_beta_info_collector.rb +19 -19
- data/fastlane/lib/fastlane/setup/crashlytics_beta_ui.rb +3 -3
- data/fastlane/lib/fastlane/setup/setup_android.rb +4 -4
- data/fastlane/lib/fastlane/setup/setup_ios.rb +9 -9
- data/fastlane/lib/fastlane/supported_platforms.rb +1 -1
- data/fastlane/lib/fastlane/swift_fastlane_api_generator.rb +10 -6
- data/fastlane/lib/fastlane/swift_lane_manager.rb +1 -1
- data/fastlane/lib/fastlane/version.rb +1 -1
- data/fastlane_core/README.md +0 -26
- data/fastlane_core/lib/fastlane_core/analytics/analytics_ingester_client.rb +2 -2
- data/fastlane_core/lib/fastlane_core/build_watcher.rb +1 -1
- data/fastlane_core/lib/fastlane_core/cert_checker.rb +2 -2
- data/fastlane_core/lib/fastlane_core/command_executor.rb +3 -3
- data/fastlane_core/lib/fastlane_core/configuration/config_item.rb +4 -4
- data/fastlane_core/lib/fastlane_core/configuration/configuration.rb +4 -4
- data/fastlane_core/lib/fastlane_core/configuration/configuration_file.rb +4 -4
- data/fastlane_core/lib/fastlane_core/core_ext/cfpropertylist.rb +3 -3
- data/fastlane_core/lib/fastlane_core/device_manager.rb +2 -4
- data/fastlane_core/lib/fastlane_core/fastlane_folder.rb +1 -1
- data/fastlane_core/lib/fastlane_core/globals.rb +3 -3
- data/fastlane_core/lib/fastlane_core/helper.rb +1 -1
- data/fastlane_core/lib/fastlane_core/ipa_file_analyser.rb +1 -1
- data/fastlane_core/lib/fastlane_core/ipa_upload_package_builder.rb +2 -2
- data/fastlane_core/lib/fastlane_core/itunes_transporter.rb +2 -2
- data/fastlane_core/lib/fastlane_core/pkg_file_analyser.rb +1 -1
- data/fastlane_core/lib/fastlane_core/pkg_upload_package_builder.rb +1 -1
- data/fastlane_core/lib/fastlane_core/print_table.rb +5 -5
- data/fastlane_core/lib/fastlane_core/project.rb +7 -7
- data/fastlane_core/lib/fastlane_core/swag.rb +9 -9
- data/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb +49 -49
- data/fastlane_core/lib/fastlane_core/ui/github_issue_inspector_reporter.rb +18 -18
- data/fastlane_core/lib/fastlane_core/ui/implementations/shell.rb +1 -1
- data/fastlane_core/lib/fastlane_core/update_checker/changelog.rb +7 -7
- data/fastlane_core/lib/fastlane_core/update_checker/update_checker.rb +11 -11
- data/frameit/lib/frameit/commands_generator.rb +2 -2
- data/frameit/lib/frameit/config_parser.rb +11 -11
- data/frameit/lib/frameit/dependency_checker.rb +7 -7
- data/frameit/lib/frameit/editor.rb +41 -41
- data/frameit/lib/frameit/frame_downloader.rb +12 -12
- data/frameit/lib/frameit/mac_editor.rb +2 -2
- data/frameit/lib/frameit/options.rb +1 -1
- data/frameit/lib/frameit/runner.rb +7 -7
- data/frameit/lib/frameit/screenshot.rb +5 -5
- data/frameit/lib/frameit/strings_parser.rb +6 -6
- data/frameit/lib/frameit/template_finder.rb +3 -3
- data/gym/lib/gym/commands_generator.rb +4 -4
- data/gym/lib/gym/detect_values.rb +1 -1
- data/gym/lib/gym/error_handler.rb +84 -84
- data/gym/lib/gym/generators/build_command_generator.rb +1 -1
- data/gym/lib/gym/runner.rb +24 -24
- data/gym/lib/gym/xcodebuild_fixes/generic_archive_fix.rb +2 -2
- data/match/lib/assets/READMETemplate.md +3 -3
- data/match/lib/match/commands_generator.rb +3 -3
- data/match/lib/match/encrypt.rb +10 -10
- data/match/lib/match/git_helper.rb +5 -5
- data/match/lib/match/nuke.rb +29 -29
- data/match/lib/match/runner.rb +13 -13
- data/match/lib/match/setup.rb +7 -7
- data/match/lib/match/table_printer.rb +6 -6
- data/match/lib/match/utils.rb +2 -2
- data/pem/lib/pem/commands_generator.rb +1 -1
- data/pem/lib/pem/manager.rb +9 -9
- data/pem/lib/pem/module.rb +1 -1
- data/pilot/lib/pilot/build_manager.rb +8 -8
- data/pilot/lib/pilot/commands_generator.rb +1 -1
- data/pilot/lib/pilot/manager.rb +1 -1
- data/pilot/lib/pilot/options.rb +4 -4
- data/pilot/lib/pilot/tester_manager.rb +10 -10
- data/precheck/lib/precheck/commands_generator.rb +4 -4
- data/precheck/lib/precheck/rule.rb +2 -2
- data/precheck/lib/precheck/rule_processor.rb +7 -7
- data/precheck/lib/precheck/rules/abstract_text_match_rule.rb +2 -2
- data/precheck/lib/precheck/rules/curse_words_rule.rb +3 -3
- data/precheck/lib/precheck/rules/unreachable_urls_rule.rb +3 -3
- data/precheck/lib/precheck/runner.rb +7 -7
- data/produce/lib/produce/commands_generator.rb +48 -48
- data/produce/lib/produce/developer_center.rb +4 -4
- data/produce/lib/produce/group.rb +2 -2
- data/produce/lib/produce/itunes_connect.rb +4 -4
- data/produce/lib/produce/options.rb +3 -3
- data/produce/lib/produce/service.rb +1 -1
- data/scan/lib/scan/commands_generator.rb +2 -2
- data/scan/lib/scan/error_handler.rb +12 -12
- data/scan/lib/scan/runner.rb +3 -3
- data/scan/lib/scan/slack_poster.rb +2 -2
- data/scan/lib/scan/test_command_generator.rb +1 -1
- data/screengrab/lib/screengrab/commands_generator.rb +1 -1
- data/screengrab/lib/screengrab/dependency_checker.rb +9 -9
- data/screengrab/lib/screengrab/options.rb +3 -3
- data/screengrab/lib/screengrab/reports_generator.rb +2 -2
- data/screengrab/lib/screengrab/runner.rb +32 -32
- data/sigh/lib/sigh/commands_generator.rb +18 -18
- data/sigh/lib/sigh/download_all.rb +4 -4
- data/sigh/lib/sigh/local_manage.rb +27 -27
- data/sigh/lib/sigh/manager.rb +1 -1
- data/sigh/lib/sigh/repair.rb +6 -6
- data/sigh/lib/sigh/resign.rb +7 -7
- data/sigh/lib/sigh/runner.rb +26 -26
- data/snapshot/lib/snapshot/collector.rb +7 -7
- data/snapshot/lib/snapshot/commands_generator.rb +7 -7
- data/snapshot/lib/snapshot/dependency_checker.rb +34 -19
- data/snapshot/lib/snapshot/detect_values.rb +2 -0
- data/snapshot/lib/snapshot/error_handler.rb +1 -1
- data/snapshot/lib/snapshot/fixes/hardware_keyboard_fix.rb +1 -1
- data/snapshot/lib/snapshot/fixes/simulator_zoom_fix.rb +1 -1
- data/snapshot/lib/snapshot/reports_generator.rb +2 -2
- data/snapshot/lib/snapshot/reset_simulators.rb +2 -2
- data/snapshot/lib/snapshot/runner.rb +14 -14
- data/snapshot/lib/snapshot/screenshot_flatten.rb +1 -1
- data/snapshot/lib/snapshot/screenshot_rotate.rb +6 -6
- data/snapshot/lib/snapshot/setup.rb +16 -16
- data/snapshot/lib/snapshot/simulator_launchers/simulator_launcher.rb +1 -1
- data/snapshot/lib/snapshot/simulator_launchers/simulator_launcher_base.rb +7 -7
- data/snapshot/lib/snapshot/simulator_launchers/simulator_launcher_xcode_8.rb +4 -4
- data/snapshot/lib/snapshot/update.rb +8 -8
- data/spaceship/lib/spaceship/base.rb +3 -3
- data/spaceship/lib/spaceship/client.rb +17 -17
- data/spaceship/lib/spaceship/commands_generator.rb +1 -1
- data/spaceship/lib/spaceship/du/du_client.rb +6 -3
- data/spaceship/lib/spaceship/globals.rb +1 -1
- data/spaceship/lib/spaceship/playground.rb +18 -18
- data/spaceship/lib/spaceship/portal/certificate.rb +5 -5
- data/spaceship/lib/spaceship/portal/device.rb +2 -2
- data/spaceship/lib/spaceship/portal/portal_client.rb +7 -7
- data/spaceship/lib/spaceship/portal/provisioning_profile.rb +7 -9
- data/spaceship/lib/spaceship/portal/ui/select_team.rb +13 -13
- data/spaceship/lib/spaceship/spaceauth_runner.rb +16 -16
- data/spaceship/lib/spaceship/test_flight/client.rb +9 -9
- data/spaceship/lib/spaceship/tunes/app_details.rb +1 -1
- data/spaceship/lib/spaceship/tunes/app_version.rb +7 -7
- data/spaceship/lib/spaceship/tunes/app_version_common.rb +1 -1
- data/spaceship/lib/spaceship/tunes/application.rb +1 -1
- data/spaceship/lib/spaceship/tunes/device_type.rb +2 -2
- data/spaceship/lib/spaceship/tunes/iap_detail.rb +1 -1
- data/spaceship/lib/spaceship/tunes/tunes_client.rb +54 -54
- data/spaceship/lib/spaceship/two_step_client.rb +19 -19
- data/spaceship/lib/spaceship/ui.rb +1 -1
- data/supply/lib/supply/client.rb +1 -1
- data/supply/lib/supply/commands_generator.rb +1 -1
- data/supply/lib/supply/options.rb +14 -14
- data/supply/lib/supply/uploader.rb +3 -3
- metadata +31 -25
- data/fastlane/lib/.DS_Store +0 -0
- data/fastlane/lib/assets/.DS_Store +0 -0
- data/fastlane/lib/fastlane/.DS_Store +0 -0
- data/fastlane/lib/fastlane/actions/.DS_Store +0 -0
- data/fastlane/lib/fastlane/actions/docs/.DS_Store +0 -0
- data/fastlane/lib/fastlane/setup/.DS_Store +0 -0
- data/fastlane_core/lib/.DS_Store +0 -0
- data/fastlane_core/lib/fastlane_core/.DS_Store +0 -0
@@ -191,7 +191,7 @@ module Spaceship
|
|
191
191
|
# # Use the signing request to create a new distribution certificate
|
192
192
|
# Spaceship.certificate.production.create!(csr: csr)
|
193
193
|
def create_certificate_signing_request
|
194
|
-
key = OpenSSL::PKey::RSA.new
|
194
|
+
key = OpenSSL::PKey::RSA.new(2048)
|
195
195
|
csr = OpenSSL::X509::Request.new
|
196
196
|
csr.version = 0
|
197
197
|
csr.subject = OpenSSL::X509::Name.new([
|
@@ -254,7 +254,7 @@ module Spaceship
|
|
254
254
|
types += OLDER_IOS_CERTIFICATE_TYPES unless mac
|
255
255
|
else
|
256
256
|
types = [CERTIFICATE_TYPE_IDS.key(self)]
|
257
|
-
mac = MAC_CERTIFICATE_TYPE_IDS.values.include?
|
257
|
+
mac = MAC_CERTIFICATE_TYPE_IDS.values.include?(self)
|
258
258
|
end
|
259
259
|
|
260
260
|
client.certificates(types, mac: mac).map do |cert|
|
@@ -285,7 +285,7 @@ module Spaceship
|
|
285
285
|
# @return (Certificate): The newly created certificate
|
286
286
|
def create!(csr: nil, bundle_id: nil)
|
287
287
|
type = CERTIFICATE_TYPE_IDS.key(self)
|
288
|
-
mac = MAC_CERTIFICATE_TYPE_IDS.include?
|
288
|
+
mac = MAC_CERTIFICATE_TYPE_IDS.include?(type)
|
289
289
|
|
290
290
|
# look up the app_id by the bundle_id
|
291
291
|
if bundle_id
|
@@ -324,12 +324,12 @@ module Spaceship
|
|
324
324
|
|
325
325
|
# @return (Bool): Is this certificate a push profile for apps?
|
326
326
|
def is_push?
|
327
|
-
self.kind_of?
|
327
|
+
self.kind_of?(PushCertificate)
|
328
328
|
end
|
329
329
|
|
330
330
|
# @return (Bool) Is this a Mac profile?
|
331
331
|
def mac?
|
332
|
-
MAC_CERTIFICATE_TYPE_IDS.include?
|
332
|
+
MAC_CERTIFICATE_TYPE_IDS.include?(type_display_id)
|
333
333
|
end
|
334
334
|
end
|
335
335
|
end
|
@@ -98,9 +98,9 @@ module Spaceship
|
|
98
98
|
|
99
99
|
# @return (Array) Returns all devices matching the provided profile_type
|
100
100
|
def all_for_profile_type(profile_type)
|
101
|
-
if profile_type.include?
|
101
|
+
if profile_type.include?("tvOS")
|
102
102
|
Spaceship::Portal::Device.all_apple_tvs
|
103
|
-
elsif profile_type.include?
|
103
|
+
elsif profile_type.include?("Mac")
|
104
104
|
Spaceship::Portal::Device.all_macs
|
105
105
|
else
|
106
106
|
Spaceship::Portal::Device.all_ios_profile_devices
|
@@ -54,7 +54,7 @@ module Spaceship
|
|
54
54
|
return @current_team_id if @current_team_id
|
55
55
|
|
56
56
|
if teams.count > 1
|
57
|
-
puts
|
57
|
+
puts("The current user is in #{teams.count} teams. Pass a team ID or call `select_team` to choose a team. Using the first one for now.")
|
58
58
|
end
|
59
59
|
|
60
60
|
if teams.count == 0
|
@@ -378,7 +378,7 @@ module Spaceship
|
|
378
378
|
#####################################################
|
379
379
|
def team_members
|
380
380
|
response = request(:post) do |req|
|
381
|
-
req.url
|
381
|
+
req.url("/services-account/#{PROTOCOL_VERSION}/account/getTeamMembers")
|
382
382
|
req.body = {
|
383
383
|
teamId: team_id
|
384
384
|
}.to_json
|
@@ -389,7 +389,7 @@ module Spaceship
|
|
389
389
|
|
390
390
|
def team_invited
|
391
391
|
response = request(:post) do |req|
|
392
|
-
req.url
|
392
|
+
req.url("/services-account/#{PROTOCOL_VERSION}/account/getInvites")
|
393
393
|
req.body = {
|
394
394
|
teamId: team_id
|
395
395
|
}.to_json
|
@@ -401,7 +401,7 @@ module Spaceship
|
|
401
401
|
def team_set_role(team_member_id, role)
|
402
402
|
ensure_csrf(Spaceship::Portal::Persons)
|
403
403
|
response = request(:post) do |req|
|
404
|
-
req.url
|
404
|
+
req.url("/services-account/#{PROTOCOL_VERSION}/account/setTeamMemberRoles")
|
405
405
|
req.body = {
|
406
406
|
teamId: team_id,
|
407
407
|
role: role,
|
@@ -415,7 +415,7 @@ module Spaceship
|
|
415
415
|
def team_remove_member!(team_member_id)
|
416
416
|
ensure_csrf(Spaceship::Portal::Persons)
|
417
417
|
response = request(:post) do |req|
|
418
|
-
req.url
|
418
|
+
req.url("/services-account/#{PROTOCOL_VERSION}/account/removeTeamMembers")
|
419
419
|
req.body = {
|
420
420
|
teamId: team_id,
|
421
421
|
teamMemberIds: [team_member_id]
|
@@ -428,7 +428,7 @@ module Spaceship
|
|
428
428
|
def team_invite(email, role)
|
429
429
|
ensure_csrf(Spaceship::Portal::Persons)
|
430
430
|
response = request(:post) do |req|
|
431
|
-
req.url
|
431
|
+
req.url("/services-account/#{PROTOCOL_VERSION}/account/sendInvites")
|
432
432
|
req.body = {
|
433
433
|
invites: [
|
434
434
|
{ recipientEmail: email, recipientRole: role }
|
@@ -591,7 +591,7 @@ module Spaceship
|
|
591
591
|
# Use this method over `provisioning_profiles` if possible because no secondary API calls are necessary to populate the ProvisioningProfile data model.
|
592
592
|
def provisioning_profiles_via_xcode_api(mac: false)
|
593
593
|
req = request(:post) do |r|
|
594
|
-
r.url
|
594
|
+
r.url("https://developerservices2.apple.com/services/#{PROTOCOL_VERSION}/#{platform_slug(mac)}/listProvisioningProfiles.action")
|
595
595
|
r.params = {
|
596
596
|
teamId: team_id,
|
597
597
|
includeInactiveProfiles: true,
|
@@ -193,7 +193,6 @@ module Spaceship
|
|
193
193
|
# Create a new object based on a hash.
|
194
194
|
# This is used to create a new object based on the server response.
|
195
195
|
def factory(attrs)
|
196
|
-
# rubocop:disable Lint/MissingRequireStatement
|
197
196
|
# available values of `distributionMethod` at this point: ['adhoc', 'store', 'limited', 'direct']
|
198
197
|
klass = case attrs['distributionMethod']
|
199
198
|
when 'limited'
|
@@ -207,7 +206,6 @@ module Spaceship
|
|
207
206
|
else
|
208
207
|
raise "Can't find class '#{attrs['distributionMethod']}'"
|
209
208
|
end
|
210
|
-
# rubocop:enable Lint/MissingRequireStatement
|
211
209
|
|
212
210
|
# Parse the dates
|
213
211
|
# rubocop:disable Style/RescueModifier
|
@@ -269,19 +267,19 @@ module Spaceship
|
|
269
267
|
# Fill in sensible default values
|
270
268
|
name ||= [bundle_id, self.pretty_type].join(' ')
|
271
269
|
|
272
|
-
if self == AppStore || self == InHouse || self == Direct
|
270
|
+
if self == AppStore || self == InHouse || self == Direct
|
273
271
|
# Distribution Profiles MUST NOT have devices
|
274
272
|
devices = []
|
275
273
|
end
|
276
274
|
|
277
|
-
certificate_parameter = certificate.collect(&:id) if certificate.kind_of?
|
275
|
+
certificate_parameter = certificate.collect(&:id) if certificate.kind_of?(Array)
|
278
276
|
certificate_parameter ||= [certificate.id]
|
279
277
|
|
280
278
|
# Fix https://github.com/KrauseFx/fastlane/issues/349
|
281
279
|
certificate_parameter = certificate_parameter.first if certificate_parameter.count == 1
|
282
280
|
|
283
281
|
if devices.nil? or devices.count == 0
|
284
|
-
if self == Development or self == AdHoc
|
282
|
+
if self == Development or self == AdHoc
|
285
283
|
# For Development and AdHoc we usually want all compatible devices by default
|
286
284
|
if mac
|
287
285
|
devices = Spaceship::Portal::Device.all_macs
|
@@ -444,17 +442,17 @@ module Spaceship
|
|
444
442
|
# This is the minimum protection needed for people using spaceship directly
|
445
443
|
unless certificate_valid?
|
446
444
|
if mac?
|
447
|
-
if self.kind_of?
|
445
|
+
if self.kind_of?(Development)
|
448
446
|
self.certificates = [Spaceship::Portal::Certificate::MacDevelopment.all.first]
|
449
|
-
elsif self.kind_of?
|
447
|
+
elsif self.kind_of?(Direct)
|
450
448
|
self.certificates = [Spaceship::Portal::Certificate::DeveloperIDApplication.all.first]
|
451
449
|
else
|
452
450
|
self.certificates = [Spaceship::Portal::Certificate::MacAppDistribution.all.first]
|
453
451
|
end
|
454
452
|
else
|
455
|
-
if self.kind_of?
|
453
|
+
if self.kind_of?(Development)
|
456
454
|
self.certificates = [Spaceship::Portal::Certificate::Development.all.first]
|
457
|
-
elsif self.kind_of?
|
455
|
+
elsif self.kind_of?(InHouse)
|
458
456
|
self.certificates = [Spaceship::Portal::Certificate::InHouse.all.first]
|
459
457
|
else
|
460
458
|
self.certificates = [Spaceship::Portal::Certificate::Production.all.first]
|
@@ -31,7 +31,7 @@ module Spaceship
|
|
31
31
|
# {...}
|
32
32
|
# ]
|
33
33
|
|
34
|
-
# rubocop:disable
|
34
|
+
# rubocop:disable Require/MissingRequireStatement
|
35
35
|
def self.ci?
|
36
36
|
if Object.const_defined?("FastlaneCore") && FastlaneCore.const_defined?("Helper")
|
37
37
|
return FastlaneCore::Helper.ci?
|
@@ -45,15 +45,15 @@ module Spaceship
|
|
45
45
|
end
|
46
46
|
return true
|
47
47
|
end
|
48
|
-
# rubocop:enable
|
48
|
+
# rubocop:enable Require/MissingRequireStatement
|
49
49
|
|
50
50
|
def select_team
|
51
51
|
teams = client.teams
|
52
52
|
|
53
53
|
if teams.count == 0
|
54
|
-
puts
|
55
|
-
puts
|
56
|
-
puts
|
54
|
+
puts("No teams available on the Developer Portal")
|
55
|
+
puts("You must accept an invitation to a team for it to be available")
|
56
|
+
puts("To learn more about teams and how to use them visit https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/ManagingYourTeam/ManagingYourTeam.html")
|
57
57
|
raise "Your account is in no teams"
|
58
58
|
end
|
59
59
|
|
@@ -67,7 +67,7 @@ module Spaceship
|
|
67
67
|
return team['teamId'] if team['teamId'].strip == team_id
|
68
68
|
return team['teamId'] if team['currentTeamMember']['teamMemberId'].to_s.strip == team_id
|
69
69
|
end
|
70
|
-
puts
|
70
|
+
puts("Couldn't find team with ID '#{team_id}'")
|
71
71
|
end
|
72
72
|
|
73
73
|
if team_name.length > 0
|
@@ -75,17 +75,17 @@ module Spaceship
|
|
75
75
|
teams.each_with_index do |team, i|
|
76
76
|
return team['teamId'] if team['name'].strip == team_name
|
77
77
|
end
|
78
|
-
puts
|
78
|
+
puts("Couldn't find team with Name '#{team_name}'")
|
79
79
|
end
|
80
80
|
|
81
81
|
return teams[0]['teamId'] if teams.count == 1 # user is just in one team
|
82
82
|
|
83
83
|
unless self.class.interactive?
|
84
|
-
puts
|
85
|
-
puts
|
86
|
-
puts
|
84
|
+
puts("Multiple teams found on the Developer Portal, Your Terminal is running in non-interactive mode! Cannot continue from here.")
|
85
|
+
puts("Please check that you set FASTLANE_TEAM_ID or FASTLANE_TEAM_NAME to the right value.")
|
86
|
+
puts("Available Teams:")
|
87
87
|
teams.each_with_index do |team, i|
|
88
|
-
puts
|
88
|
+
puts("#{i + 1}) #{team['teamId']} \"#{team['name']}\" (#{team['type']})")
|
89
89
|
end
|
90
90
|
raise "Multiple Teams found; unable to choose, terminal not ineractive!"
|
91
91
|
end
|
@@ -93,9 +93,9 @@ module Spaceship
|
|
93
93
|
# User Selection
|
94
94
|
loop do
|
95
95
|
# Multiple teams, user has to select
|
96
|
-
puts
|
96
|
+
puts("Multiple teams found on the Developer Portal, please enter the number of the team you want to use: ")
|
97
97
|
teams.each_with_index do |team, i|
|
98
|
-
puts
|
98
|
+
puts("#{i + 1}) #{team['teamId']} \"#{team['name']}\" (#{team['type']})")
|
99
99
|
end
|
100
100
|
|
101
101
|
selected = ($stdin.gets || '').strip.to_i - 1
|
@@ -14,16 +14,16 @@ module Spaceship
|
|
14
14
|
|
15
15
|
def run
|
16
16
|
begin
|
17
|
-
puts
|
17
|
+
puts("Logging into to iTunes Connect (#{@username})...")
|
18
18
|
Spaceship::Tunes.login(@username)
|
19
|
-
puts
|
20
|
-
puts
|
19
|
+
puts("Successfully logged in to iTunes Connect".green)
|
20
|
+
puts("")
|
21
21
|
rescue
|
22
|
-
puts
|
23
|
-
puts
|
24
|
-
puts
|
25
|
-
puts
|
26
|
-
puts
|
22
|
+
puts("Could not login to iTunes Connect".red)
|
23
|
+
puts("Please check your credentials and try again.".yellow)
|
24
|
+
puts("This could be an issue with iTunes Connect,".yellow)
|
25
|
+
puts("Please try unsetting the FASTLANE_SESSION environment variable".yellow)
|
26
|
+
puts("and re-run `fastlane spaceauth`".yellow)
|
27
27
|
raise "Problem connecting to iTunes Connect"
|
28
28
|
end
|
29
29
|
|
@@ -49,14 +49,14 @@ module Spaceship
|
|
49
49
|
|
50
50
|
yaml = cookies.to_yaml.gsub("\n", "\\n")
|
51
51
|
|
52
|
-
puts
|
53
|
-
puts
|
54
|
-
puts
|
55
|
-
puts
|
56
|
-
puts
|
57
|
-
puts
|
58
|
-
puts
|
59
|
-
puts
|
52
|
+
puts("---")
|
53
|
+
puts("")
|
54
|
+
puts("Pass the following via the FASTLANE_SESSION environment variable:")
|
55
|
+
puts(yaml.cyan.underline)
|
56
|
+
puts("")
|
57
|
+
puts("")
|
58
|
+
puts("Example:")
|
59
|
+
puts("export FASTLANE_SESSION='#{yaml}'".cyan.underline)
|
60
60
|
end
|
61
61
|
end
|
62
62
|
end
|
@@ -54,7 +54,7 @@ module Spaceship
|
|
54
54
|
assert_required_params(__method__, binding)
|
55
55
|
|
56
56
|
response = request(:put) do |req|
|
57
|
-
req.url
|
57
|
+
req.url("providers/#{team_id}/apps/#{app_id}/builds/#{build_id}")
|
58
58
|
req.body = build.to_json
|
59
59
|
req.headers['Content-Type'] = 'application/json'
|
60
60
|
end
|
@@ -65,7 +65,7 @@ module Spaceship
|
|
65
65
|
assert_required_params(__method__, binding)
|
66
66
|
|
67
67
|
response = request(:post) do |req|
|
68
|
-
req.url
|
68
|
+
req.url("providers/#{team_id}/apps/#{app_id}/builds/#{build_id}/review")
|
69
69
|
req.body = build.to_json
|
70
70
|
req.headers['Content-Type'] = 'application/json'
|
71
71
|
end
|
@@ -76,7 +76,7 @@ module Spaceship
|
|
76
76
|
assert_required_params(__method__, binding)
|
77
77
|
|
78
78
|
response = request(:post) do |req|
|
79
|
-
req.url
|
79
|
+
req.url("providers/#{team_id}/apps/#{app_id}/builds/#{build_id}/expire")
|
80
80
|
req.body = build.to_json
|
81
81
|
req.headers['Content-Type'] = 'application/json'
|
82
82
|
end
|
@@ -106,7 +106,7 @@ module Spaceship
|
|
106
106
|
}
|
107
107
|
|
108
108
|
response = request(:post) do |req|
|
109
|
-
req.url
|
109
|
+
req.url("providers/#{team_id}/apps/#{app_id}/groups")
|
110
110
|
req.body = body.to_json
|
111
111
|
req.headers['Content-Type'] = 'application/json'
|
112
112
|
end
|
@@ -121,7 +121,7 @@ module Spaceship
|
|
121
121
|
'buildId' => build_id
|
122
122
|
}
|
123
123
|
response = request(:put) do |req|
|
124
|
-
req.url
|
124
|
+
req.url("providers/#{team_id}/apps/#{app_id}/groups/#{group_id}/builds/#{build_id}")
|
125
125
|
req.body = body.to_json
|
126
126
|
req.headers['Content-Type'] = 'application/json'
|
127
127
|
end
|
@@ -212,7 +212,7 @@ module Spaceship
|
|
212
212
|
assert_required_params(__method__, binding)
|
213
213
|
url = "providers/#{team_id}/apps/#{app_id}/testers"
|
214
214
|
response = request(:post) do |req|
|
215
|
-
req.url
|
215
|
+
req.url(url)
|
216
216
|
req.body = {
|
217
217
|
"email" => email,
|
218
218
|
"firstName" => first_name,
|
@@ -230,7 +230,7 @@ module Spaceship
|
|
230
230
|
# This is easy enough, we already have all this data. We don't need any response from the previous request
|
231
231
|
url = "providers/#{team_id}/apps/#{app_id}/groups/#{group_id}/testers"
|
232
232
|
response = request(:post) do |req|
|
233
|
-
req.url
|
233
|
+
req.url(url)
|
234
234
|
req.body = [{
|
235
235
|
"email" => email,
|
236
236
|
"firstName" => first_name,
|
@@ -246,7 +246,7 @@ module Spaceship
|
|
246
246
|
|
247
247
|
url = "providers/#{team_id}/apps/#{app_id}/groups/#{group_id}/testers/#{tester_id}"
|
248
248
|
response = request(:delete) do |req|
|
249
|
-
req.url
|
249
|
+
req.url(url)
|
250
250
|
req.headers['Content-Type'] = 'application/json'
|
251
251
|
end
|
252
252
|
handle_response(response)
|
@@ -267,7 +267,7 @@ module Spaceship
|
|
267
267
|
assert_required_params(__method__, binding)
|
268
268
|
|
269
269
|
response = request(:put) do |req|
|
270
|
-
req.url
|
270
|
+
req.url("providers/#{team_id}/apps/#{app_id}/testInfo")
|
271
271
|
req.body = app_test_info.to_json
|
272
272
|
req.headers['Content-Type'] = 'application/json'
|
273
273
|
end
|
@@ -304,7 +304,7 @@ module Spaceship
|
|
304
304
|
# Important: Due to a bug you have to fetch the `edit_version` again, as it doesn't get refreshed immediately
|
305
305
|
def create_languages(languages)
|
306
306
|
languages = [languages] if languages.kind_of?(String)
|
307
|
-
raise "Please pass an array" unless languages.kind_of?
|
307
|
+
raise "Please pass an array" unless languages.kind_of?(Array)
|
308
308
|
|
309
309
|
copy_from = self.languages.find { |a| a['language'] == 'en-US' } || self.languages.first
|
310
310
|
|
@@ -442,7 +442,7 @@ module Spaceship
|
|
442
442
|
@large_app_icon.reset!
|
443
443
|
return
|
444
444
|
end
|
445
|
-
upload_image = UploadFile.from_path
|
445
|
+
upload_image = UploadFile.from_path(icon_path)
|
446
446
|
image_data = client.upload_large_icon(self, upload_image)
|
447
447
|
|
448
448
|
raw_data["largeAppIcon"]["value"] = generate_image_metadata(image_data, upload_image.file_name)
|
@@ -455,7 +455,7 @@ module Spaceship
|
|
455
455
|
@watch_app_icon.reset!
|
456
456
|
return
|
457
457
|
end
|
458
|
-
upload_image = UploadFile.from_path
|
458
|
+
upload_image = UploadFile.from_path(icon_path)
|
459
459
|
image_data = client.upload_watch_icon(self, upload_image)
|
460
460
|
|
461
461
|
raw_data["watchAppIcon"]["value"] = generate_image_metadata(image_data, upload_image.file_name)
|
@@ -469,7 +469,7 @@ module Spaceship
|
|
469
469
|
@transit_app_file = nil
|
470
470
|
return
|
471
471
|
end
|
472
|
-
upload_file = UploadFile.from_path
|
472
|
+
upload_file = UploadFile.from_path(geojson_path)
|
473
473
|
geojson_data = client.upload_geojson(self, upload_file)
|
474
474
|
|
475
475
|
@transit_app_file = Tunes::TransitAppFile.factory({}) if @transit_app_file.nil?
|
@@ -493,7 +493,7 @@ module Spaceship
|
|
493
493
|
|
494
494
|
existing_sort_orders = device_lang_screenshots.map { |s| s["value"]["sortOrder"] }
|
495
495
|
if screenshot_path # adding / replacing
|
496
|
-
upload_file = UploadFile.from_path
|
496
|
+
upload_file = UploadFile.from_path(screenshot_path)
|
497
497
|
screenshot_data = client.upload_screenshot(self, upload_file, device, is_messages)
|
498
498
|
|
499
499
|
# Since October 2016 we also need to pass the size, height, width and checksum
|
@@ -569,10 +569,10 @@ module Spaceship
|
|
569
569
|
video_preview_resolution = video_preview_resolution_for(device, trailer_path)
|
570
570
|
video_preview_path = Utilities.grab_video_preview(trailer_path, timestamp, video_preview_resolution)
|
571
571
|
end
|
572
|
-
video_preview_file = UploadFile.from_path
|
572
|
+
video_preview_file = UploadFile.from_path(video_preview_path)
|
573
573
|
video_preview_data = client.upload_trailer_preview(self, video_preview_file, device)
|
574
574
|
|
575
|
-
upload_file = UploadFile.from_path
|
575
|
+
upload_file = UploadFile.from_path(trailer_path)
|
576
576
|
trailer_data = client.upload_trailer(self, upload_file)
|
577
577
|
|
578
578
|
ts = "00:00:#{timestamp}"
|
@@ -15,7 +15,7 @@ module Spaceship
|
|
15
15
|
search_platform = search_platform.to_sym if search_platform
|
16
16
|
|
17
17
|
platform = versions.detect do |p|
|
18
|
-
['ios', 'osx', 'appletvos'].include?
|
18
|
+
['ios', 'osx', 'appletvos'].include?(p['platformString'])
|
19
19
|
end
|
20
20
|
|
21
21
|
raise "Could not find platform 'ios', 'osx' or 'appletvos'" unless platform
|