fastlane 1.111.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +76 -111
- data/bin/bin-proxy +19 -0
- data/cert/README.md +163 -0
- data/cert/lib/cert.rb +18 -0
- data/cert/lib/cert/commands_generator.rb +51 -0
- data/cert/lib/cert/options.rb +67 -0
- data/cert/lib/cert/runner.rb +181 -0
- data/credentials_manager/README.md +62 -0
- data/credentials_manager/lib/credentials_manager.rb +12 -0
- data/credentials_manager/lib/credentials_manager/account_manager.rb +104 -0
- data/credentials_manager/lib/credentials_manager/appfile_config.rb +186 -0
- data/credentials_manager/lib/credentials_manager/cli.rb +65 -0
- data/deliver/README.md +271 -0
- data/deliver/lib/assets/DeliverfileDefault +10 -0
- data/deliver/lib/assets/ScreenshotsHelp +7 -0
- data/deliver/lib/assets/summary.html.erb +210 -0
- data/deliver/lib/deliver.rb +31 -0
- data/deliver/lib/deliver/app_screenshot.rb +226 -0
- data/deliver/lib/deliver/commands_generator.rb +150 -0
- data/deliver/lib/deliver/detect_values.rb +69 -0
- data/deliver/lib/deliver/download_screenshots.rb +46 -0
- data/deliver/lib/deliver/generate_summary.rb +9 -0
- data/deliver/lib/deliver/html_generator.rb +58 -0
- data/deliver/lib/deliver/loader.rb +18 -0
- data/deliver/lib/deliver/options.rb +269 -0
- data/deliver/lib/deliver/runner.rb +99 -0
- data/deliver/lib/deliver/setup.rb +78 -0
- data/deliver/lib/deliver/submit_for_review.rb +87 -0
- data/deliver/lib/deliver/upload_assets.rb +22 -0
- data/deliver/lib/deliver/upload_metadata.rb +191 -0
- data/deliver/lib/deliver/upload_price_tier.rb +21 -0
- data/deliver/lib/deliver/upload_screenshots.rb +110 -0
- data/fastlane/README.md +193 -0
- data/{lib → fastlane/lib}/assets/Actions.md.erb +0 -0
- data/{lib → fastlane/lib}/assets/AppfileTemplate +0 -0
- data/{lib → fastlane/lib}/assets/AppfileTemplateAndroid +0 -0
- data/{lib → fastlane/lib}/assets/AvailablePlugins.md.erb +0 -0
- data/{lib → fastlane/lib}/assets/DefaultFastfileTemplate +2 -2
- data/{lib → fastlane/lib}/assets/FastfileTemplateAndroid +2 -2
- data/{lib → fastlane/lib}/assets/completions/completion.bash +0 -0
- data/{lib → fastlane/lib}/assets/completions/completion.sh +0 -0
- data/{lib → fastlane/lib}/assets/completions/completion.zsh +0 -0
- data/{lib → fastlane/lib}/assets/custom_action_template.rb +0 -0
- data/{lib → fastlane/lib}/assets/mailgun_html_template.erb +0 -0
- data/{lib → fastlane/lib}/assets/report_template.xml.erb +0 -0
- data/{lib → fastlane/lib}/assets/s3_html_template.erb +0 -0
- data/{lib → fastlane/lib}/assets/s3_plist_template.erb +0 -0
- data/{lib → fastlane/lib}/assets/s3_version_template.erb +0 -0
- data/{lib → fastlane/lib}/fastlane.rb +3 -3
- data/{lib → fastlane/lib}/fastlane/action.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/action_collector.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/README.md +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/actions_helper.rb +16 -0
- data/{lib → fastlane/lib}/fastlane/actions/adb.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/adb_devices.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/add_git_tag.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/app_store_build_number.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/appaloosa.rb +1 -0
- data/{lib → fastlane/lib}/fastlane/actions/appetize.rb +1 -0
- data/{lib → fastlane/lib}/fastlane/actions/appetize_viewing_url_generator.rb +1 -0
- data/{lib → fastlane/lib}/fastlane/actions/appium.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/appledoc.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/appstore.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/apteligent.rb +1 -0
- data/{lib → fastlane/lib}/fastlane/actions/artifactory.rb +2 -0
- data/{lib → fastlane/lib}/fastlane/actions/backup_file.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/backup_xcarchive.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/badge.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/build_and_upload_to_appetize.rb +1 -0
- data/{lib → fastlane/lib}/fastlane/actions/bundle_install.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/carthage.rb +1 -1
- data/{lib → fastlane/lib}/fastlane/actions/cert.rb +0 -4
- data/{lib → fastlane/lib}/fastlane/actions/changelog_from_git_commits.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/chatwork.rb +1 -0
- data/{lib → fastlane/lib}/fastlane/actions/clean_build_artifacts.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/clean_cocoapods_cache.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/clear_derived_data.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/clipboard.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/cloc.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/cocoapods.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/commit_version_bump.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/copy_artifacts.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/crashlytics.rb +2 -0
- data/{lib → fastlane/lib}/fastlane/actions/create_keychain.rb +1 -0
- data/{lib → fastlane/lib}/fastlane/actions/create_pull_request.rb +1 -0
- data/{lib → fastlane/lib}/fastlane/actions/danger.rb +1 -0
- data/{lib → fastlane/lib}/fastlane/actions/debug.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/default_platform.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/delete_keychain.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/deliver.rb +0 -4
- data/{lib → fastlane/lib}/fastlane/actions/deploygate.rb +34 -19
- data/{lib → fastlane/lib}/fastlane/actions/device_grid/README.md +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/dotgpg_environment.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/download.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/download_dsyms.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/dsym_zip.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/ensure_git_branch.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/ensure_git_status_clean.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/ensure_no_debug_code.rb +10 -2
- data/{lib → fastlane/lib}/fastlane/actions/ensure_xcode_version.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/erb.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/fastlane_version.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/flock.rb +1 -0
- data/{lib → fastlane/lib}/fastlane/actions/frameit.rb +6 -10
- data/{lib → fastlane/lib}/fastlane/actions/gcovr.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/get_build_number.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/get_build_number_repository.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/get_github_release.rb +1 -0
- data/{lib → fastlane/lib}/fastlane/actions/get_info_plist_value.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/get_ipa_info_plist_value.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/get_version_number.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/git_add.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/git_branch.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/git_commit.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/git_pull.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/git_tag_exists.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/gradle.rb +0 -0
- data/fastlane/lib/fastlane/actions/gym.rb +84 -0
- data/{lib → fastlane/lib}/fastlane/actions/hg_add_tag.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/hg_commit_version_bump.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/hg_ensure_clean_status.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/hg_push.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/hipchat.rb +1 -0
- data/{lib → fastlane/lib}/fastlane/actions/hockey.rb +37 -11
- data/{lib → fastlane/lib}/fastlane/actions/ifttt.rb +1 -0
- data/{lib → fastlane/lib}/fastlane/actions/import.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/import_certificate.rb +2 -0
- data/{lib → fastlane/lib}/fastlane/actions/import_from_git.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/increment_build_number.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/increment_version_number.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/install_on_device.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/install_xcode_plugin.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/installr.rb +1 -0
- data/{lib → fastlane/lib}/fastlane/actions/ipa.rb +12 -4
- data/{lib → fastlane/lib}/fastlane/actions/is_ci.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/jazzy.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/jira.rb +1 -0
- data/{lib → fastlane/lib}/fastlane/actions/lane_context.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/last_git_commit.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/last_git_tag.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/latest_testflight_build_number.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/lcov.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/mailgun.rb +2 -0
- data/{lib → fastlane/lib}/fastlane/actions/make_changelog_from_jenkins.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/match.rb +3 -9
- data/{lib → fastlane/lib}/fastlane/actions/nexus_upload.rb +1 -0
- data/{lib → fastlane/lib}/fastlane/actions/notification.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/notify.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/number_of_commits.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/oclint.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/onesignal.rb +3 -0
- data/{lib → fastlane/lib}/fastlane/actions/opt_out_usage.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/pem.rb +9 -15
- data/{lib → fastlane/lib}/fastlane/actions/pilot.rb +6 -12
- data/{lib → fastlane/lib}/fastlane/actions/pod_lib_lint.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/pod_push.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/podio_item.rb +2 -0
- data/{lib → fastlane/lib}/fastlane/actions/produce.rb +7 -11
- data/{lib → fastlane/lib}/fastlane/actions/prompt.rb +5 -2
- data/{lib → fastlane/lib}/fastlane/actions/push_git_tags.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/push_to_git_remote.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/puts.rb +8 -0
- data/{lib → fastlane/lib}/fastlane/actions/read_podspec.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/recreate_schemes.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/register_devices.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/reset_git_repo.rb +0 -0
- data/fastlane/lib/fastlane/actions/reset_simulator_contents.rb +62 -0
- data/{lib → fastlane/lib}/fastlane/actions/resign.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/restore_file.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/rocket.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/rsync.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/s3.rb +2 -1
- data/{lib → fastlane/lib}/fastlane/actions/say.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/scan.rb +0 -4
- data/{lib → fastlane/lib}/fastlane/actions/scp.rb +1 -0
- data/{lib → fastlane/lib}/fastlane/actions/screengrab.rb +7 -13
- data/{lib → fastlane/lib}/fastlane/actions/set_build_number_repository.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/set_changelog.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/set_github_release.rb +1 -0
- data/{lib → fastlane/lib}/fastlane/actions/set_info_plist_value.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/set_pod_key.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/setup_jenkins.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/sigh.rb +9 -15
- data/{lib → fastlane/lib}/fastlane/actions/skip_docs.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/slack.rb +1 -0
- data/{lib → fastlane/lib}/fastlane/actions/slather.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/snapshot.rb +5 -11
- data/{lib → fastlane/lib}/fastlane/actions/sonar.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/splunkmint.rb +3 -0
- data/{lib → fastlane/lib}/fastlane/actions/ssh.rb +1 -0
- data/{lib → fastlane/lib}/fastlane/actions/supply.rb +9 -13
- data/{lib → fastlane/lib}/fastlane/actions/swiftlint.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/team_id.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/team_name.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/testfairy.rb +28 -9
- data/{lib → fastlane/lib}/fastlane/actions/testflight.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/tryouts.rb +1 -0
- data/{lib → fastlane/lib}/fastlane/actions/twitter.rb +4 -0
- data/{lib → fastlane/lib}/fastlane/actions/typetalk.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/unlock_keychain.rb +1 -0
- data/{lib → fastlane/lib}/fastlane/actions/update_app_group_identifiers.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/update_app_identifier.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/update_fastlane.rb +1 -20
- data/{lib → fastlane/lib}/fastlane/actions/update_icloud_container_identifiers.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/update_info_plist.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/update_project_code_signing.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/update_project_provisioning.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/update_project_team.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/update_urban_airship_configuration.rb +4 -0
- data/{lib → fastlane/lib}/fastlane/actions/update_url_schemes.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/upload_symbols_to_crashlytics.rb +1 -0
- data/{lib → fastlane/lib}/fastlane/actions/upload_symbols_to_sentry.rb +2 -0
- data/{lib → fastlane/lib}/fastlane/actions/verify_build.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/verify_pod_keys.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/verify_xcode.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/version_bump_podspec.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/version_get_podspec.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/xcode_install.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/xcode_select.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/xcode_server_get_assets.rb +1 -0
- data/{lib → fastlane/lib}/fastlane/actions/xcodebuild.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/xcov.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/xctool.rb +1 -1
- data/{lib → fastlane/lib}/fastlane/actions/xcversion.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/actions/zip.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/auto_complete.rb +0 -0
- data/fastlane/lib/fastlane/cli_tools_distributor.rb +125 -0
- data/{lib → fastlane/lib}/fastlane/command_line_handler.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/commands_generator.rb +5 -4
- data/{lib → fastlane/lib}/fastlane/configuration_helper.rb +0 -1
- data/{lib → fastlane/lib}/fastlane/core_ext/bundler_monkey_patch.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/documentation/actions_list.rb +1 -1
- data/{lib → fastlane/lib}/fastlane/documentation/docs_generator.rb +1 -1
- data/{lib → fastlane/lib}/fastlane/documentation/markdown_docs_generator.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/environment_printer.rb +1 -1
- data/{lib → fastlane/lib}/fastlane/erb_template_helper.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/fast_file.rb +1 -1
- data/{lib → fastlane/lib}/fastlane/fastlane_require.rb +27 -3
- data/{lib → fastlane/lib}/fastlane/features.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/helper/README.md +0 -0
- data/{lib → fastlane/lib}/fastlane/helper/adb_helper.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/helper/cocoapod_helper.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/helper/crashlytics_helper.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/helper/gem_helper.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/helper/git_helper.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/helper/gradle_helper.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/helper/podspec_helper.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/helper/sh_helper.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/helper/xcversion_helper.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/junit_generator.rb +1 -1
- data/{lib → fastlane/lib}/fastlane/lane.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/lane_list.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/lane_manager.rb +25 -6
- data/{lib → fastlane/lib}/fastlane/markdown_table_formatter.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/new_action.rb +1 -1
- data/{lib → fastlane/lib}/fastlane/one_off.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/other_action.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/plugins/plugin_fetcher.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/plugins/plugin_generator.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/plugins/plugin_generator_ui.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/plugins/plugin_info.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/plugins/plugin_info_collector.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/plugins/plugin_manager.rb +4 -4
- data/{lib → fastlane/lib}/fastlane/plugins/plugin_search.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/plugins/plugin_update_manager.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/plugins/plugins.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/plugins/template/%gem_name%.gemspec.erb +3 -0
- data/{lib → fastlane/lib}/fastlane/plugins/template/.gitignore +0 -0
- data/{lib → fastlane/lib}/fastlane/plugins/template/.rspec +0 -0
- data/{lib → fastlane/lib}/fastlane/plugins/template/.rubocop.yml +0 -0
- data/{lib → fastlane/lib}/fastlane/plugins/template/.travis.yml +0 -0
- data/{lib → fastlane/lib}/fastlane/plugins/template/Gemfile +0 -0
- data/{lib → fastlane/lib}/fastlane/plugins/template/LICENSE.erb +0 -0
- data/{lib → fastlane/lib}/fastlane/plugins/template/README.md.erb +2 -2
- data/{lib → fastlane/lib}/fastlane/plugins/template/Rakefile +0 -0
- data/{lib → fastlane/lib}/fastlane/plugins/template/circle.yml +0 -0
- data/{lib → fastlane/lib}/fastlane/plugins/template/fastlane/Fastfile.erb +0 -0
- data/{lib → fastlane/lib}/fastlane/plugins/template/fastlane/Pluginfile.erb +0 -0
- data/{lib → fastlane/lib}/fastlane/plugins/template/lib/fastlane/plugin/%plugin_name%.rb.erb +0 -0
- data/{lib → fastlane/lib}/fastlane/plugins/template/lib/fastlane/plugin/%plugin_name%/actions/%plugin_name%_action.rb.erb +0 -0
- data/{lib → fastlane/lib}/fastlane/plugins/template/lib/fastlane/plugin/%plugin_name%/helper/%plugin_name%_helper.rb.erb +0 -0
- data/{lib → fastlane/lib}/fastlane/plugins/template/lib/fastlane/plugin/%plugin_name%/version.rb.erb +0 -0
- data/{lib → fastlane/lib}/fastlane/plugins/template/spec/%plugin_name%_action_spec.rb.erb +0 -0
- data/{lib → fastlane/lib}/fastlane/plugins/template/spec/spec_helper.rb.erb +0 -0
- data/{lib → fastlane/lib}/fastlane/runner.rb +25 -2
- data/{lib → fastlane/lib}/fastlane/setup/crashlytics_beta.rb +1 -1
- data/{lib → fastlane/lib}/fastlane/setup/crashlytics_beta_command_line_handler.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/setup/crashlytics_beta_info.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/setup/crashlytics_beta_info_collector.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/setup/crashlytics_beta_ui.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/setup/crashlytics_beta_user_email_fetcher.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/setup/crashlytics_project_parser.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/setup/setup.rb +2 -2
- data/{lib → fastlane/lib}/fastlane/setup/setup_android.rb +2 -2
- data/{lib → fastlane/lib}/fastlane/setup/setup_ios.rb +3 -3
- data/{lib → fastlane/lib}/fastlane/supported_platforms.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/tools.rb +0 -0
- data/{lib → fastlane/lib}/fastlane/version.rb +2 -2
- data/fastlane_core/README.md +54 -0
- data/fastlane_core/lib/assets/XMLTemplate.xml.erb +12 -0
- data/fastlane_core/lib/fastlane_core.rb +48 -0
- data/fastlane_core/lib/fastlane_core/cert_checker.rb +94 -0
- data/fastlane_core/lib/fastlane_core/command_executor.rb +98 -0
- data/fastlane_core/lib/fastlane_core/configuration/commander_generator.rb +82 -0
- data/fastlane_core/lib/fastlane_core/configuration/config_item.rb +133 -0
- data/fastlane_core/lib/fastlane_core/configuration/configuration.rb +266 -0
- data/fastlane_core/lib/fastlane_core/configuration/configuration_file.rb +82 -0
- data/fastlane_core/lib/fastlane_core/core_ext/string.rb +17 -0
- data/fastlane_core/lib/fastlane_core/device_manager.rb +231 -0
- data/fastlane_core/lib/fastlane_core/env.rb +9 -0
- data/{lib/fastlane → fastlane_core/lib/fastlane_core}/fastlane_folder.rb +1 -11
- data/fastlane_core/lib/fastlane_core/feature/feature.rb +49 -0
- data/fastlane_core/lib/fastlane_core/features.rb +2 -0
- data/fastlane_core/lib/fastlane_core/helper.rb +240 -0
- data/fastlane_core/lib/fastlane_core/ipa_file_analyser.rb +55 -0
- data/fastlane_core/lib/fastlane_core/ipa_upload_package_builder.rb +44 -0
- data/fastlane_core/lib/fastlane_core/itunes_search_api.rb +48 -0
- data/fastlane_core/lib/fastlane_core/itunes_transporter.rb +409 -0
- data/fastlane_core/lib/fastlane_core/keychain_importer.rb +27 -0
- data/fastlane_core/lib/fastlane_core/languages.rb +11 -0
- data/fastlane_core/lib/fastlane_core/pkg_file_analyser.rb +42 -0
- data/fastlane_core/lib/fastlane_core/pkg_upload_package_builder.rb +44 -0
- data/fastlane_core/lib/fastlane_core/print_table.rb +63 -0
- data/fastlane_core/lib/fastlane_core/project.rb +450 -0
- data/fastlane_core/lib/fastlane_core/provisioning_profile.rb +69 -0
- data/fastlane_core/lib/fastlane_core/string_filters.rb +34 -0
- data/fastlane_core/lib/fastlane_core/tool_collector.rb +179 -0
- data/fastlane_core/lib/fastlane_core/ui/disable_colors.rb +17 -0
- data/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb +190 -0
- data/fastlane_core/lib/fastlane_core/ui/github_issue_inspector_reporter.rb +50 -0
- data/fastlane_core/lib/fastlane_core/ui/implementations/shell.rb +122 -0
- data/fastlane_core/lib/fastlane_core/ui/interface.rb +159 -0
- data/fastlane_core/lib/fastlane_core/ui/ui.rb +26 -0
- data/fastlane_core/lib/fastlane_core/update_checker/changelog.rb +37 -0
- data/fastlane_core/lib/fastlane_core/update_checker/update_checker.rb +198 -0
- data/fastlane_core/lib/fastlane_core/xcodebuild_list_output_parser.rb +28 -0
- data/frameit/README.md +284 -0
- data/frameit/lib/assets/empty.png +0 -0
- data/frameit/lib/frameit.rb +52 -0
- data/frameit/lib/frameit/commands_generator.rb +99 -0
- data/frameit/lib/frameit/config_parser.rb +98 -0
- data/frameit/lib/frameit/dependency_checker.rb +20 -0
- data/frameit/lib/frameit/device_types.rb +13 -0
- data/frameit/lib/frameit/editor.rb +351 -0
- data/frameit/lib/frameit/frame_downloader.rb +71 -0
- data/frameit/lib/frameit/mac_editor.rb +32 -0
- data/frameit/lib/frameit/offsets.rb +19 -0
- data/frameit/lib/frameit/options.rb +46 -0
- data/frameit/lib/frameit/runner.rb +45 -0
- data/frameit/lib/frameit/screenshot.rb +89 -0
- data/frameit/lib/frameit/strings_parser.rb +35 -0
- data/frameit/lib/frameit/template_finder.rb +36 -0
- data/gym/README.md +288 -0
- data/gym/lib/assets/GymfileTemplate +13 -0
- data/gym/lib/assets/package_application_patches/0001_codesign_args_patch.diff +38 -0
- data/gym/lib/assets/package_application_patches/0002_no_strict_parameter_patch.diff +42 -0
- data/gym/lib/assets/package_application_patches/PackageApplication_MD5 +2 -0
- data/gym/lib/assets/wrap_xcodebuild/xcbuild-safe.sh +58 -0
- data/gym/lib/gym.rb +49 -0
- data/gym/lib/gym/commands_generator.rb +62 -0
- data/gym/lib/gym/detect_values.rb +105 -0
- data/gym/lib/gym/error_handler.rb +186 -0
- data/gym/lib/gym/generators/README.md +1 -0
- data/gym/lib/gym/generators/build_command_generator.rb +136 -0
- data/gym/lib/gym/generators/package_command_generator.rb +58 -0
- data/gym/lib/gym/generators/package_command_generator_legacy.rb +102 -0
- data/gym/lib/gym/generators/package_command_generator_xcode7.rb +191 -0
- data/gym/lib/gym/manager.rb +17 -0
- data/gym/lib/gym/options.rb +254 -0
- data/gym/lib/gym/runner.rb +256 -0
- data/gym/lib/gym/xcode.rb +21 -0
- data/gym/lib/gym/xcodebuild_fixes/README.md +9 -0
- data/gym/lib/gym/xcodebuild_fixes/generic_archive_fix.rb +32 -0
- data/gym/lib/gym/xcodebuild_fixes/package_application_fix.rb +53 -0
- data/gym/lib/gym/xcodebuild_fixes/swift_fix.rb +99 -0
- data/gym/lib/gym/xcodebuild_fixes/watchkit2_fix.rb +35 -0
- data/gym/lib/gym/xcodebuild_fixes/watchkit_fix.rb +40 -0
- data/match/README.md +414 -0
- data/match/lib/assets/MatchfileTemplate +9 -0
- data/match/lib/assets/READMETemplate.md +49 -0
- data/match/lib/match.rb +57 -0
- data/match/lib/match/change_password.rb +30 -0
- data/match/lib/match/commands_generator.rb +120 -0
- data/match/lib/match/encrypt.rb +93 -0
- data/match/lib/match/generator.rb +74 -0
- data/match/lib/match/git_helper.rb +139 -0
- data/match/lib/match/nuke.rb +190 -0
- data/match/lib/match/options.rb +124 -0
- data/match/lib/match/runner.rb +172 -0
- data/match/lib/match/setup.rb +20 -0
- data/match/lib/match/spaceship_ensure.rb +78 -0
- data/match/lib/match/table_printer.rb +43 -0
- data/match/lib/match/utils.rb +59 -0
- data/pem/README.md +175 -0
- data/pem/lib/pem.rb +21 -0
- data/pem/lib/pem/commands_generator.rb +41 -0
- data/pem/lib/pem/manager.rb +93 -0
- data/pem/lib/pem/options.rb +79 -0
- data/pilot/README.md +285 -0
- data/pilot/lib/pilot.rb +22 -0
- data/pilot/lib/pilot/build_manager.rb +209 -0
- data/pilot/lib/pilot/commands_generator.rb +136 -0
- data/pilot/lib/pilot/features.rb +0 -0
- data/pilot/lib/pilot/manager.rb +71 -0
- data/pilot/lib/pilot/options.rb +161 -0
- data/pilot/lib/pilot/tester_exporter.rb +37 -0
- data/pilot/lib/pilot/tester_importer.rb +51 -0
- data/pilot/lib/pilot/tester_manager.rb +212 -0
- data/pilot/lib/pilot/tester_util.rb +23 -0
- data/produce/README.md +232 -0
- data/produce/lib/produce.rb +21 -0
- data/produce/lib/produce/available_default_languages.rb +36 -0
- data/produce/lib/produce/commands_generator.rb +134 -0
- data/produce/lib/produce/developer_center.rb +58 -0
- data/produce/lib/produce/group.rb +89 -0
- data/produce/lib/produce/itunes_connect.rb +87 -0
- data/produce/lib/produce/manager.rb +11 -0
- data/produce/lib/produce/options.rb +114 -0
- data/produce/lib/produce/service.rb +227 -0
- data/scan/README.md +219 -0
- data/scan/lib/assets/ScanfileTemplate +13 -0
- data/scan/lib/scan.rb +40 -0
- data/scan/lib/scan/commands_generator.rb +61 -0
- data/scan/lib/scan/detect_values.rb +184 -0
- data/scan/lib/scan/error_handler.rb +43 -0
- data/scan/lib/scan/manager.rb +17 -0
- data/scan/lib/scan/options.rb +189 -0
- data/scan/lib/scan/report_collector.rb +70 -0
- data/scan/lib/scan/runner.rb +103 -0
- data/scan/lib/scan/slack_poster.rb +59 -0
- data/scan/lib/scan/test_command_generator.rb +130 -0
- data/scan/lib/scan/test_result_parser.rb +21 -0
- data/screengrab/README.md +190 -0
- data/screengrab/lib/assets/ScreengrabfileTemplate +15 -0
- data/screengrab/lib/screengrab.rb +32 -0
- data/screengrab/lib/screengrab/android_environment.rb +88 -0
- data/screengrab/lib/screengrab/commands_generator.rb +60 -0
- data/screengrab/lib/screengrab/dependency_checker.rb +56 -0
- data/screengrab/lib/screengrab/detect_values.rb +16 -0
- data/screengrab/lib/screengrab/options.rb +109 -0
- data/screengrab/lib/screengrab/page.html.erb +206 -0
- data/screengrab/lib/screengrab/runner.rb +336 -0
- data/screengrab/lib/screengrab/setup.rb +16 -0
- data/sigh/README.md +256 -0
- data/sigh/lib/assets/resign.sh +774 -0
- data/sigh/lib/sigh.rb +19 -0
- data/sigh/lib/sigh/commands_generator.rb +133 -0
- data/sigh/lib/sigh/download_all.rb +36 -0
- data/sigh/lib/sigh/local_manage.rb +140 -0
- data/sigh/lib/sigh/manager.rb +44 -0
- data/sigh/lib/sigh/options.rb +117 -0
- data/sigh/lib/sigh/repair.rb +30 -0
- data/sigh/lib/sigh/resign.rb +201 -0
- data/sigh/lib/sigh/runner.rb +235 -0
- data/snapshot/README.md +400 -0
- data/snapshot/lib/assets/SnapfileTemplate +36 -0
- data/snapshot/lib/assets/SnapshotHelper.swift +138 -0
- data/snapshot/lib/assets/SnapshotHelper2-3.swift +140 -0
- data/snapshot/lib/snapshot.rb +59 -0
- data/snapshot/lib/snapshot/collector.rb +92 -0
- data/snapshot/lib/snapshot/commands_generator.rb +108 -0
- data/snapshot/lib/snapshot/dependency_checker.rb +50 -0
- data/snapshot/lib/snapshot/detect_values.rb +53 -0
- data/snapshot/lib/snapshot/error_handler.rb +22 -0
- data/snapshot/lib/snapshot/fixes/README.md +5 -0
- data/snapshot/lib/snapshot/fixes/hardware_keyboard_fix.rb +14 -0
- data/snapshot/lib/snapshot/fixes/simulator_zoom_fix.rb +25 -0
- data/snapshot/lib/snapshot/latest_os_version.rb +31 -0
- data/snapshot/lib/snapshot/options.rb +161 -0
- data/snapshot/lib/snapshot/page.html.erb +206 -0
- data/snapshot/lib/snapshot/reports_generator.rb +64 -0
- data/snapshot/lib/snapshot/reset_simulators.rb +88 -0
- data/snapshot/lib/snapshot/runner.rb +294 -0
- data/snapshot/lib/snapshot/screenshot_flatten.rb +18 -0
- data/snapshot/lib/snapshot/screenshot_rotate.rb +38 -0
- data/snapshot/lib/snapshot/setup.rb +35 -0
- data/snapshot/lib/snapshot/test_command_generator.rb +118 -0
- data/snapshot/lib/snapshot/update.rb +29 -0
- data/spaceship/README.md +191 -0
- data/spaceship/lib/assets/languageMapping.json +240 -0
- data/spaceship/lib/assets/languageMappingReadable.json +30 -0
- data/spaceship/lib/spaceship.rb +31 -0
- data/spaceship/lib/spaceship/babosa_fix.rb +30 -0
- data/spaceship/lib/spaceship/base.rb +236 -0
- data/spaceship/lib/spaceship/client.rb +487 -0
- data/spaceship/lib/spaceship/commands_generator.rb +48 -0
- data/spaceship/lib/spaceship/du/du_client.rb +122 -0
- data/spaceship/lib/spaceship/du/upload_file.rb +56 -0
- data/spaceship/lib/spaceship/du/utilities.rb +81 -0
- data/spaceship/lib/spaceship/helper/net_http_generic_request.rb +14 -0
- data/spaceship/lib/spaceship/helper/plist_middleware.rb +15 -0
- data/spaceship/lib/spaceship/launcher.rb +94 -0
- data/spaceship/lib/spaceship/playground.rb +72 -0
- data/spaceship/lib/spaceship/portal/app.rb +148 -0
- data/spaceship/lib/spaceship/portal/app_group.rb +77 -0
- data/spaceship/lib/spaceship/portal/app_service.rb +278 -0
- data/spaceship/lib/spaceship/portal/certificate.rb +333 -0
- data/spaceship/lib/spaceship/portal/device.rb +192 -0
- data/spaceship/lib/spaceship/portal/portal.rb +8 -0
- data/spaceship/lib/spaceship/portal/portal_base.rb +13 -0
- data/spaceship/lib/spaceship/portal/portal_client.rb +491 -0
- data/spaceship/lib/spaceship/portal/provisioning_profile.rb +467 -0
- data/spaceship/lib/spaceship/portal/spaceship.rb +112 -0
- data/spaceship/lib/spaceship/portal/ui/select_team.rb +83 -0
- data/spaceship/lib/spaceship/spaceauth_runner.rb +50 -0
- data/spaceship/lib/spaceship/tunes/app_details.rb +139 -0
- data/spaceship/lib/spaceship/tunes/app_image.rb +55 -0
- data/spaceship/lib/spaceship/tunes/app_ratings.rb +107 -0
- data/spaceship/lib/spaceship/tunes/app_screenshot.rb +17 -0
- data/spaceship/lib/spaceship/tunes/app_status.rb +60 -0
- data/spaceship/lib/spaceship/tunes/app_submission.rb +136 -0
- data/spaceship/lib/spaceship/tunes/app_trailer.rb +68 -0
- data/spaceship/lib/spaceship/tunes/app_version.rb +766 -0
- data/spaceship/lib/spaceship/tunes/app_version_common.rb +33 -0
- data/spaceship/lib/spaceship/tunes/app_version_generated_promocodes.rb +35 -0
- data/spaceship/lib/spaceship/tunes/app_version_history.rb +59 -0
- data/spaceship/lib/spaceship/tunes/app_version_promocodes.rb +34 -0
- data/spaceship/lib/spaceship/tunes/app_version_ref.rb +19 -0
- data/spaceship/lib/spaceship/tunes/app_version_states_history.rb +34 -0
- data/spaceship/lib/spaceship/tunes/application.rb +437 -0
- data/spaceship/lib/spaceship/tunes/build.rb +269 -0
- data/spaceship/lib/spaceship/tunes/build_details.rb +48 -0
- data/spaceship/lib/spaceship/tunes/build_train.rb +182 -0
- data/spaceship/lib/spaceship/tunes/device_type.rb +14 -0
- data/spaceship/lib/spaceship/tunes/language_converter.rb +63 -0
- data/spaceship/lib/spaceship/tunes/language_item.rb +56 -0
- data/spaceship/lib/spaceship/tunes/pricing_tier.rb +81 -0
- data/spaceship/lib/spaceship/tunes/recovery_device.rb +69 -0
- data/spaceship/lib/spaceship/tunes/spaceship.rb +34 -0
- data/spaceship/lib/spaceship/tunes/tester.rb +283 -0
- data/spaceship/lib/spaceship/tunes/transit_app_file.rb +27 -0
- data/spaceship/lib/spaceship/tunes/tunes.rb +35 -0
- data/spaceship/lib/spaceship/tunes/tunes_base.rb +15 -0
- data/spaceship/lib/spaceship/tunes/tunes_client.rb +1068 -0
- data/spaceship/lib/spaceship/tunes/user_detail.rb +19 -0
- data/spaceship/lib/spaceship/tunes/version_set.rb +35 -0
- data/spaceship/lib/spaceship/two_step_client.rb +195 -0
- data/spaceship/lib/spaceship/ui.rb +27 -0
- data/supply/README.md +214 -0
- data/supply/lib/supply.rb +29 -0
- data/supply/lib/supply/apk_listing.rb +14 -0
- data/supply/lib/supply/client.rb +345 -0
- data/supply/lib/supply/commands_generator.rb +62 -0
- data/supply/lib/supply/listing.rb +32 -0
- data/supply/lib/supply/options.rb +135 -0
- data/supply/lib/supply/setup.rb +102 -0
- data/supply/lib/supply/uploader.rb +221 -0
- metadata +699 -428
- data/bin//360/237/232/200 +0 -5
- data/lib/.DS_Store +0 -0
- data/lib/assets/.DS_Store +0 -0
- data/lib/assets/completions/.DS_Store +0 -0
- data/lib/fastlane/.DS_Store +0 -0
- data/lib/fastlane/actions/gym.rb +0 -90
- data/lib/fastlane/actions/reset_simulators.rb +0 -44
- data/lib/fastlane/cli_tools_distributor.rb +0 -100
- data/lib/fastlane/setup/.DS_Store +0 -0
@@ -0,0 +1,33 @@
|
|
1
|
+
module Spaceship
|
2
|
+
module Tunes
|
3
|
+
# internal to spaceship
|
4
|
+
# Represents the common structure between application['versionSets'] and app_version['platform']
|
5
|
+
class AppVersionCommon
|
6
|
+
class << self
|
7
|
+
def find_version_id(platform, is_live)
|
8
|
+
version = platform[(is_live ? 'deliverableVersion' : 'inFlightVersion')]
|
9
|
+
return nil unless version
|
10
|
+
version['id']
|
11
|
+
end
|
12
|
+
|
13
|
+
def find_platform(versions, search_platform: nil)
|
14
|
+
# We only support platforms that exist ATM
|
15
|
+
platform = versions.detect do |p|
|
16
|
+
['ios', 'osx', 'appletvos'].include? p['platformString']
|
17
|
+
end
|
18
|
+
|
19
|
+
raise "Could not find platform 'ios', 'osx' or 'appletvos'" unless platform
|
20
|
+
|
21
|
+
# If your app has versions for both iOS and tvOS we will default to returning the iOS version for now.
|
22
|
+
# This is intentional as we need to do more work to support apps that have hybrid versions.
|
23
|
+
if versions.length > 1 && search_platform.nil?
|
24
|
+
platform = versions.detect { |p| p['platformString'] == "ios" }
|
25
|
+
elsif !search_platform.nil?
|
26
|
+
platform = versions.detect { |p| p['platformString'] == search_platform }
|
27
|
+
end
|
28
|
+
platform
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
module Spaceship
|
2
|
+
module Tunes
|
3
|
+
# Represents the information about the generation of promocodes
|
4
|
+
class AppVersionGeneratedPromocodes < TunesBase
|
5
|
+
# @return
|
6
|
+
attr_reader :effective_date
|
7
|
+
attr_reader :expiration_date
|
8
|
+
attr_reader :username
|
9
|
+
# the AppVersionPromocodes this relates to
|
10
|
+
attr_reader :version
|
11
|
+
# Array of String
|
12
|
+
attr_reader :codes
|
13
|
+
|
14
|
+
attr_mapping({
|
15
|
+
'effectiveDate' => :effective_date,
|
16
|
+
'expirationDate' => :expiration_date,
|
17
|
+
'username' => :username
|
18
|
+
})
|
19
|
+
|
20
|
+
class << self
|
21
|
+
# Create a new object based on a hash.
|
22
|
+
# This is used to create a new object based on the server response.
|
23
|
+
def factory(attrs)
|
24
|
+
obj = self.new(attrs)
|
25
|
+
return obj
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
def setup
|
30
|
+
@version = Tunes::AppVersionPromocodes.factory(raw_data['version'])
|
31
|
+
@codes = raw_data['codes']
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,59 @@
|
|
1
|
+
module Spaceship
|
2
|
+
module Tunes
|
3
|
+
# Represents a read only version of an iTunes Connect Versions State History
|
4
|
+
class AppVersionHistory < TunesBase
|
5
|
+
# @return (Spaceship::Tunes::Application) A reference to the application
|
6
|
+
# this version is for
|
7
|
+
attr_accessor :application
|
8
|
+
|
9
|
+
# @return (String) The version in string format (e.g. "1.0")
|
10
|
+
attr_reader :version_string
|
11
|
+
|
12
|
+
# @return (String) The platform value of this version.
|
13
|
+
attr_reader :version_id
|
14
|
+
|
15
|
+
# @return ([Spaceship::Tunes::AppVersionStatesHistory]) the array of version states
|
16
|
+
attr_reader :items
|
17
|
+
|
18
|
+
attr_mapping({
|
19
|
+
'versionString' => :version_string,
|
20
|
+
'versionId' => :version_id,
|
21
|
+
'items' => :items
|
22
|
+
})
|
23
|
+
|
24
|
+
class << self
|
25
|
+
# Create a new object based on a hash.
|
26
|
+
# This is used to create a new object based on the server response.
|
27
|
+
def factory(attrs)
|
28
|
+
obj = self.new(attrs)
|
29
|
+
return obj
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
# Returns an array of all builds that can be sent to review
|
34
|
+
def items
|
35
|
+
@items ||= fetch_items
|
36
|
+
end
|
37
|
+
|
38
|
+
# Private methods
|
39
|
+
def setup
|
40
|
+
# Properly parse the AppStatus
|
41
|
+
items = raw_data['items']
|
42
|
+
@items = map_items(items) if items
|
43
|
+
end
|
44
|
+
|
45
|
+
private
|
46
|
+
|
47
|
+
def map_items(items)
|
48
|
+
items.map do |attrs|
|
49
|
+
Tunes::AppVersionStatesHistory.factory(attrs)
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
def fetch_items
|
54
|
+
items = client.version_states_history(application.apple_id, application.platform, version_id)['items']
|
55
|
+
map_items(items)
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
module Spaceship
|
2
|
+
module Tunes
|
3
|
+
# Represents the information about remaining number of promo codes for an app version
|
4
|
+
class AppVersionPromocodes < TunesBase
|
5
|
+
# @return
|
6
|
+
attr_reader :app_id
|
7
|
+
attr_reader :app_name
|
8
|
+
attr_reader :version
|
9
|
+
attr_reader :platform
|
10
|
+
attr_reader :number_of_codes
|
11
|
+
attr_reader :maximum_number_of_codes
|
12
|
+
attr_reader :contract_file_name
|
13
|
+
|
14
|
+
attr_mapping({
|
15
|
+
'id' => :app_id,
|
16
|
+
'appName' => :app_name,
|
17
|
+
'version' => :version,
|
18
|
+
'platform' => :platform,
|
19
|
+
'numberOfCodes' => :number_of_codes,
|
20
|
+
'maximumNumberOfCodes' => :maximum_number_of_codes,
|
21
|
+
'contractFileName' => :contract_file_name
|
22
|
+
})
|
23
|
+
|
24
|
+
class << self
|
25
|
+
# Create a new object based on a hash.
|
26
|
+
# This is used to create a new object based on the server response.
|
27
|
+
def factory(attrs)
|
28
|
+
obj = self.new(attrs)
|
29
|
+
return obj
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module Spaceship
|
2
|
+
module Tunes
|
3
|
+
class AppVersionRef < TunesBase
|
4
|
+
attr_accessor :sso_token_for_image
|
5
|
+
attr_accessor :sso_token_for_video
|
6
|
+
|
7
|
+
attr_mapping(
|
8
|
+
'ssoTokenForImage' => :sso_token_for_image,
|
9
|
+
'ssoTokenForVideo' => :sso_token_for_video
|
10
|
+
)
|
11
|
+
|
12
|
+
class << self
|
13
|
+
def factory(attrs)
|
14
|
+
self.new(attrs)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
module Spaceship
|
2
|
+
module Tunes
|
3
|
+
# Represents a read only version of an iTunes Connect Versions State History
|
4
|
+
class AppVersionStatesHistory < TunesBase
|
5
|
+
# @return (String) the state
|
6
|
+
attr_reader :state_key
|
7
|
+
|
8
|
+
# @return (String) The name of the user who made the change
|
9
|
+
attr_reader :user_name
|
10
|
+
|
11
|
+
# @return (String) the email of the user or nil
|
12
|
+
attr_reader :user_email
|
13
|
+
|
14
|
+
# @return (Integer) the date of the state
|
15
|
+
attr_reader :date
|
16
|
+
|
17
|
+
attr_mapping({
|
18
|
+
'stateKey' => :state_key,
|
19
|
+
'userName' => :user_name,
|
20
|
+
'userEmail' => :user_email,
|
21
|
+
'date' => :date
|
22
|
+
})
|
23
|
+
|
24
|
+
class << self
|
25
|
+
# Create a new object based on a hash.
|
26
|
+
# This is used to create a new object based on the server response.
|
27
|
+
def factory(attrs)
|
28
|
+
obj = self.new(attrs)
|
29
|
+
return obj
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
@@ -0,0 +1,437 @@
|
|
1
|
+
module Spaceship
|
2
|
+
module Tunes
|
3
|
+
class Application < TunesBase
|
4
|
+
# @return (String) The App identifier of this app, provided by iTunes Connect
|
5
|
+
# @example
|
6
|
+
# "1013943394"
|
7
|
+
attr_accessor :apple_id
|
8
|
+
|
9
|
+
# @return (String) The name you provided for this app (in the default language)
|
10
|
+
# @example
|
11
|
+
# "Spaceship App"
|
12
|
+
attr_accessor :name
|
13
|
+
|
14
|
+
# @return (String) The Vendor ID provided by iTunes Connect
|
15
|
+
# @example
|
16
|
+
# "1435592086"
|
17
|
+
attr_accessor :vendor_id
|
18
|
+
|
19
|
+
# @return (String) The bundle_id (app identifier) of your app
|
20
|
+
# @example
|
21
|
+
# "com.krausefx.app"
|
22
|
+
attr_accessor :bundle_id
|
23
|
+
|
24
|
+
# @return (String) Last modified
|
25
|
+
attr_accessor :last_modified
|
26
|
+
|
27
|
+
# @return (Integer) The number of issues provided by iTunes Connect
|
28
|
+
attr_accessor :issues_count
|
29
|
+
|
30
|
+
# @return (String) The URL to a low resolution app icon of this app (340x340px). Might be nil
|
31
|
+
# @example
|
32
|
+
# "https://is1-ssl.mzstatic.com/image/thumb/Purple7/v4/cd/a3/e2/cda3e2ac-4034-c6af-ee0c-3e4d9a0bafaa/pr_source.png/340x340bb-80.png"
|
33
|
+
# @example
|
34
|
+
# nil
|
35
|
+
attr_accessor :app_icon_preview_url
|
36
|
+
|
37
|
+
# @return (Array) An array of all versions sets
|
38
|
+
attr_accessor :version_sets
|
39
|
+
|
40
|
+
attr_mapping(
|
41
|
+
'adamId' => :apple_id,
|
42
|
+
'name' => :name,
|
43
|
+
'vendorId' => :vendor_id,
|
44
|
+
'bundleId' => :bundle_id,
|
45
|
+
'lastModifiedDate' => :last_modified,
|
46
|
+
'issuesCount' => :issues_count,
|
47
|
+
'iconUrl' => :app_icon_preview_url
|
48
|
+
)
|
49
|
+
|
50
|
+
class << self
|
51
|
+
# Create a new object based on a hash.
|
52
|
+
# This is used to create a new object based on the server response.
|
53
|
+
def factory(attrs)
|
54
|
+
return self.new(attrs)
|
55
|
+
end
|
56
|
+
|
57
|
+
# @return (Array) Returns all apps available for this account
|
58
|
+
def all
|
59
|
+
client.applications.map { |application| self.factory(application) }
|
60
|
+
end
|
61
|
+
|
62
|
+
# @return (Spaceship::Tunes::Application) Returns the application matching the parameter
|
63
|
+
# as either the App ID or the bundle identifier
|
64
|
+
def find(identifier, mac: false)
|
65
|
+
all.find do |app|
|
66
|
+
(app.apple_id == identifier.to_s || app.bundle_id == identifier) &&
|
67
|
+
app.version_sets.any? { |v| v.platform == (mac ? "osx" : "ios") }
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
# Creates a new application on iTunes Connect
|
72
|
+
# @param name (String): The name of your app as it will appear on the App Store.
|
73
|
+
# This can't be longer than 255 characters.
|
74
|
+
# @param primary_language (String): If localized app information isn't available in an
|
75
|
+
# App Store territory, the information from your primary language will be used instead.
|
76
|
+
# @param version (String): The version number is shown on the App Store and should
|
77
|
+
# match the one you used in Xcode.
|
78
|
+
# @param sku (String): A unique ID for your app that is not visible on the App Store.
|
79
|
+
# @param bundle_id (String): The bundle ID must match the one you used in Xcode. It
|
80
|
+
# can't be changed after you submit your first build.
|
81
|
+
# @param company_name (String): The company name or developer name to display on the App Store for your apps.
|
82
|
+
# It cannot be changed after you create your first app.
|
83
|
+
# @param platform (String): Platform one of (ios,osx)
|
84
|
+
# should it be an ios or an osx app
|
85
|
+
|
86
|
+
def create!(name: nil, primary_language: nil, version: nil, sku: nil, bundle_id: nil, bundle_id_suffix: nil, company_name: nil, platform: nil)
|
87
|
+
client.create_application!(name: name,
|
88
|
+
primary_language: primary_language,
|
89
|
+
version: version,
|
90
|
+
sku: sku,
|
91
|
+
bundle_id: bundle_id,
|
92
|
+
bundle_id_suffix: bundle_id_suffix,
|
93
|
+
company_name: company_name,
|
94
|
+
platform: platform)
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
#####################################################
|
99
|
+
# @!group Getting information
|
100
|
+
#####################################################
|
101
|
+
|
102
|
+
def version_set_for_platform(platform)
|
103
|
+
version_sets.each do |version_set|
|
104
|
+
return version_set if version_set.platform == platform
|
105
|
+
end
|
106
|
+
nil
|
107
|
+
end
|
108
|
+
|
109
|
+
# @return (Spaceship::AppVersion) Receive the version that is currently live on the
|
110
|
+
# App Store. You can't modify all values there, so be careful.
|
111
|
+
def live_version(platform: nil)
|
112
|
+
Spaceship::AppVersion.find(self, self.apple_id, true, platform: platform)
|
113
|
+
end
|
114
|
+
|
115
|
+
# @return (Spaceship::AppVersion) Receive the version that can fully be edited
|
116
|
+
def edit_version(platform: nil)
|
117
|
+
Spaceship::AppVersion.find(self, self.apple_id, false, platform: platform)
|
118
|
+
end
|
119
|
+
|
120
|
+
# @return (Spaceship::AppVersion) This will return the `edit_version` if available
|
121
|
+
# and fallback to the `live_version`. Use this to just access the latest data
|
122
|
+
def latest_version(platform: nil)
|
123
|
+
edit_version(platform: platform) || live_version(platform: platform)
|
124
|
+
end
|
125
|
+
|
126
|
+
# @return (String) An URL to this specific resource. You can enter this URL into your browser
|
127
|
+
def url
|
128
|
+
"https://itunesconnect.apple.com/WebObjects/iTunesConnect.woa/ra/ng/app/#{self.apple_id}"
|
129
|
+
end
|
130
|
+
|
131
|
+
# @return (Hash) Contains the reason for rejection.
|
132
|
+
# if everything is alright, the result will be
|
133
|
+
# `{"sectionErrorKeys"=>[], "sectionInfoKeys"=>[], "sectionWarningKeys"=>[], "replyConstraints"=>{"minLength"=>1, "maxLength"=>4000}, "appNotes"=>{"threads"=>[]}, "betaNotes"=>{"threads"=>[]}, "appMessages"=>{"threads"=>[]}}`
|
134
|
+
def resolution_center
|
135
|
+
client.get_resolution_center(apple_id, platform)
|
136
|
+
end
|
137
|
+
|
138
|
+
def ratings
|
139
|
+
attrs = client.get_rating_summary(apple_id, platform)
|
140
|
+
attrs[:application] = self
|
141
|
+
Tunes::AppRatings.factory(attrs)
|
142
|
+
end
|
143
|
+
|
144
|
+
def platforms
|
145
|
+
platforms = []
|
146
|
+
version_sets.each do |version_set|
|
147
|
+
platforms << version_set.platform
|
148
|
+
end
|
149
|
+
platforms
|
150
|
+
end
|
151
|
+
|
152
|
+
def type
|
153
|
+
if self.version_sets.nil?
|
154
|
+
raise 'The application has no version sets and Spaceship does not know what to do here.'
|
155
|
+
end
|
156
|
+
|
157
|
+
if self.version_sets.length == 1
|
158
|
+
version_sets[0].platform
|
159
|
+
end
|
160
|
+
platform = Spaceship::Tunes::AppVersionCommon.find_platform(raw_data['versionSets'])
|
161
|
+
platform['type']
|
162
|
+
end
|
163
|
+
|
164
|
+
# kept for backward compatibility
|
165
|
+
# tries to guess the platform of the currently submitted apps
|
166
|
+
# note that as ITC now supports multiple app types, this might break
|
167
|
+
# if your app supports more than one
|
168
|
+
def platform
|
169
|
+
if self.version_sets.nil?
|
170
|
+
raise 'The application has no version sets and Spaceship does not know what to do here.'
|
171
|
+
end
|
172
|
+
|
173
|
+
if self.version_sets.length == 1
|
174
|
+
version_sets[0].platform
|
175
|
+
elsif self.platforms == %w(ios appletvos)
|
176
|
+
'ios'
|
177
|
+
end
|
178
|
+
Spaceship::Tunes::AppVersionCommon.find_platform(raw_data['versionSets'])['platformString']
|
179
|
+
end
|
180
|
+
|
181
|
+
def details
|
182
|
+
attrs = client.app_details(apple_id)
|
183
|
+
attrs[:application] = self
|
184
|
+
Tunes::AppDetails.factory(attrs)
|
185
|
+
end
|
186
|
+
|
187
|
+
def versions_history
|
188
|
+
ensure_not_a_bundle
|
189
|
+
versions = client.versions_history(apple_id, platform)
|
190
|
+
versions.map do |attrs|
|
191
|
+
attrs[:application] = self
|
192
|
+
Tunes::AppVersionHistory.factory(attrs)
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
196
|
+
#####################################################
|
197
|
+
# @!group Modifying
|
198
|
+
#####################################################
|
199
|
+
|
200
|
+
# Create a new version of your app
|
201
|
+
# Since we have stored the outdated raw_data, we need to refresh this object
|
202
|
+
# otherwise `edit_version` will return nil
|
203
|
+
def create_version!(version_number, platform: nil)
|
204
|
+
if edit_version(platform: platform)
|
205
|
+
raise "Cannot create a new version for this app as there already is an `edit_version` available"
|
206
|
+
end
|
207
|
+
|
208
|
+
client.create_version!(apple_id, version_number, platform.nil? ? 'ios' : platform)
|
209
|
+
|
210
|
+
# Future: implemented -reload method
|
211
|
+
end
|
212
|
+
|
213
|
+
# Will make sure the current edit_version matches the given version number
|
214
|
+
# This will either create a new version or change the version number
|
215
|
+
# from an existing version
|
216
|
+
# @return (Bool) Was something changed?
|
217
|
+
def ensure_version!(version_number, platform: nil)
|
218
|
+
if (e = edit_version(platform: platform))
|
219
|
+
if e.version.to_s != version_number.to_s
|
220
|
+
# Update an existing version
|
221
|
+
e.version = version_number
|
222
|
+
e.save!
|
223
|
+
return true
|
224
|
+
end
|
225
|
+
return false
|
226
|
+
else
|
227
|
+
create_version!(version_number, platform: platform)
|
228
|
+
return true
|
229
|
+
end
|
230
|
+
end
|
231
|
+
|
232
|
+
# set the price tier. This method doesn't require `save` to be called
|
233
|
+
def update_price_tier!(price_tier)
|
234
|
+
client.update_price_tier!(self.apple_id, price_tier)
|
235
|
+
end
|
236
|
+
|
237
|
+
# The current price tier
|
238
|
+
def price_tier
|
239
|
+
client.price_tier(self.apple_id)
|
240
|
+
end
|
241
|
+
|
242
|
+
#####################################################
|
243
|
+
# @!group Builds
|
244
|
+
#####################################################
|
245
|
+
|
246
|
+
# TestFlight: A reference to all the build trains
|
247
|
+
# @return [Hash] a hash, the version number and platform being the key
|
248
|
+
def build_trains(platform: nil)
|
249
|
+
Tunes::BuildTrain.all(self, self.apple_id, platform: platform)
|
250
|
+
end
|
251
|
+
|
252
|
+
# The numbers of all build trains that were uploaded
|
253
|
+
# @return [Array] An array of train version numbers
|
254
|
+
def all_build_train_numbers(platform: nil)
|
255
|
+
client.all_build_trains(app_id: self.apple_id, platform: platform).fetch("trains").collect do |current|
|
256
|
+
current["versionString"]
|
257
|
+
end
|
258
|
+
end
|
259
|
+
|
260
|
+
# Receive the build details for a specific build
|
261
|
+
# useful if the app is not listed in the TestFlight build list
|
262
|
+
# which might happen if you don't use TestFlight
|
263
|
+
# This is used to receive dSYM files from Apple
|
264
|
+
def all_builds_for_train(train: nil, platform: nil)
|
265
|
+
client.all_builds_for_train(app_id: self.apple_id, train: train, platform: platform).fetch("items", []).collect do |attrs|
|
266
|
+
attrs[:apple_id] = self.apple_id
|
267
|
+
Tunes::Build.factory(attrs)
|
268
|
+
end
|
269
|
+
end
|
270
|
+
|
271
|
+
# @return [Array]A list of binaries which are in the invalid state
|
272
|
+
def all_invalid_builds(platform: nil)
|
273
|
+
builds = []
|
274
|
+
|
275
|
+
self.build_trains(platform: platform).values.each do |train|
|
276
|
+
builds.concat(train.invalid_builds)
|
277
|
+
end
|
278
|
+
|
279
|
+
return builds
|
280
|
+
end
|
281
|
+
|
282
|
+
# @return [Array] This will return an array of *all* processing builds
|
283
|
+
# this include pre-processing or standard processing
|
284
|
+
def all_processing_builds(platform: nil)
|
285
|
+
builds = []
|
286
|
+
|
287
|
+
self.build_trains(platform: platform).each do |version_number, train|
|
288
|
+
builds.concat(train.processing_builds)
|
289
|
+
end
|
290
|
+
|
291
|
+
return builds
|
292
|
+
end
|
293
|
+
|
294
|
+
# Get all builds that are already processed for all build trains
|
295
|
+
# You can either use the return value (array) or pass a block
|
296
|
+
def builds(platform: nil)
|
297
|
+
all_builds = []
|
298
|
+
self.build_trains(platform: platform).each do |version_number, train|
|
299
|
+
train.builds.each do |build|
|
300
|
+
yield(build) if block_given?
|
301
|
+
all_builds << build unless block_given?
|
302
|
+
end
|
303
|
+
end
|
304
|
+
all_builds
|
305
|
+
end
|
306
|
+
|
307
|
+
#####################################################
|
308
|
+
# @!group Submit for Review
|
309
|
+
#####################################################
|
310
|
+
|
311
|
+
def create_submission
|
312
|
+
version = self.latest_version
|
313
|
+
if version.nil?
|
314
|
+
raise "Could not find a valid version to submit for review"
|
315
|
+
end
|
316
|
+
|
317
|
+
Spaceship::AppSubmission.create(self, version)
|
318
|
+
end
|
319
|
+
|
320
|
+
# Cancels all ongoing TestFlight beta submission for this application
|
321
|
+
def cancel_all_testflight_submissions!
|
322
|
+
self.builds do |build|
|
323
|
+
begin
|
324
|
+
build.cancel_beta_review!
|
325
|
+
rescue
|
326
|
+
# We really don't care about any errors here
|
327
|
+
end
|
328
|
+
end
|
329
|
+
true
|
330
|
+
end
|
331
|
+
|
332
|
+
#####################################################
|
333
|
+
# @!group release
|
334
|
+
#####################################################
|
335
|
+
|
336
|
+
def release!
|
337
|
+
version = self.edit_version
|
338
|
+
if version.nil?
|
339
|
+
raise "Could not find a valid version to release"
|
340
|
+
end
|
341
|
+
version.release!
|
342
|
+
end
|
343
|
+
|
344
|
+
#####################################################
|
345
|
+
# @!group General
|
346
|
+
#####################################################
|
347
|
+
def setup
|
348
|
+
super
|
349
|
+
@version_sets = (self.raw_data['versionSets'] || []).map do |attrs|
|
350
|
+
attrs[:application] = self
|
351
|
+
Tunes::VersionSet.factory(attrs)
|
352
|
+
end
|
353
|
+
end
|
354
|
+
|
355
|
+
#####################################################
|
356
|
+
# @!group Testers
|
357
|
+
#####################################################
|
358
|
+
|
359
|
+
# Add all testers (internal and external) to the current app list
|
360
|
+
def add_all_testers!
|
361
|
+
Tunes::Tester.external.add_all_to_app!(self.apple_id)
|
362
|
+
Tunes::Tester.internal.add_all_to_app!(self.apple_id)
|
363
|
+
end
|
364
|
+
|
365
|
+
# @return (Array) Returns all external testers available for this app
|
366
|
+
def external_testers
|
367
|
+
Tunes::Tester.external.all_by_app(self.apple_id)
|
368
|
+
end
|
369
|
+
|
370
|
+
# @return (Array) Returns all internal testers available for this app
|
371
|
+
def internal_testers
|
372
|
+
Tunes::Tester.internal.all_by_app(self.apple_id)
|
373
|
+
end
|
374
|
+
|
375
|
+
# @return (Spaceship::Tunes::Tester.external) Returns the external tester matching the parameter
|
376
|
+
# as either the Tester id or email
|
377
|
+
# @param identifier (String) (required): Value used to filter the tester
|
378
|
+
def find_external_tester(identifier)
|
379
|
+
Tunes::Tester.external.find_by_app(self.apple_id, identifier)
|
380
|
+
end
|
381
|
+
|
382
|
+
# @return (Spaceship::Tunes::Tester.internal) Returns the internal tester matching the parameter
|
383
|
+
# as either the Tester id or email
|
384
|
+
# @param identifier (String) (required): Value used to filter the tester
|
385
|
+
def find_internal_tester(identifier)
|
386
|
+
Tunes::Tester.internal.find_by_app(self.apple_id, identifier)
|
387
|
+
end
|
388
|
+
|
389
|
+
# Add external tester to the current app list, if it doesn't exist will be created
|
390
|
+
# @param email (String) (required): The email of the tester
|
391
|
+
# @param first_name (String) (optional): The first name of the tester (Ignored if user already exist)
|
392
|
+
# @param last_name (String) (optional): The last name of the tester (Ignored if user already exist)
|
393
|
+
def add_external_tester!(email: nil, first_name: nil, last_name: nil)
|
394
|
+
raise "Tester is already on #{self.name} betatesters" if find_external_tester(email)
|
395
|
+
|
396
|
+
tester = Tunes::Tester.external.find(email) || Tunes::Tester.external.create!(email: email,
|
397
|
+
first_name: first_name,
|
398
|
+
last_name: last_name)
|
399
|
+
tester.add_to_app!(self.apple_id)
|
400
|
+
end
|
401
|
+
|
402
|
+
# Remove external tester from the current app list that matching the parameter
|
403
|
+
# as either the Tester id or email
|
404
|
+
# @param identifier (String) (required): Value used to filter the tester
|
405
|
+
def remove_external_tester!(identifier)
|
406
|
+
tester = find_external_tester(identifier)
|
407
|
+
|
408
|
+
raise "Tester is not on #{self.name} betatesters" unless tester
|
409
|
+
|
410
|
+
tester.remove_from_app!(self.apple_id)
|
411
|
+
end
|
412
|
+
|
413
|
+
#####################################################
|
414
|
+
# @!group Promo codes
|
415
|
+
#####################################################
|
416
|
+
def promocodes
|
417
|
+
data = client.app_promocodes(app_id: self.apple_id)
|
418
|
+
data.map do |attrs|
|
419
|
+
Tunes::AppVersionPromocodes.factory(attrs)
|
420
|
+
end
|
421
|
+
end
|
422
|
+
|
423
|
+
def promocodes_history
|
424
|
+
data = client.app_promocodes_history(app_id: self.apple_id)
|
425
|
+
data.map do |attrs|
|
426
|
+
Tunes::AppVersionGeneratedPromocodes.factory(attrs)
|
427
|
+
end
|
428
|
+
end
|
429
|
+
|
430
|
+
# private to module
|
431
|
+
def ensure_not_a_bundle
|
432
|
+
# we only support applications
|
433
|
+
raise "We do not support BUNDLE types right now" if self.type == 'BUNDLE'
|
434
|
+
end
|
435
|
+
end
|
436
|
+
end
|
437
|
+
end
|