fastlane_pricing_fix 2.212.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +1 -0
- data/LICENSE +21 -0
- data/README.md +235 -0
- data/bin/bin-proxy +19 -0
- data/bin/fastlane +23 -0
- data/cert/README.md +17 -0
- data/cert/lib/cert/commands_generator.rb +61 -0
- data/cert/lib/cert/module.rb +16 -0
- data/cert/lib/cert/options.rb +133 -0
- data/cert/lib/cert/runner.rb +250 -0
- data/cert/lib/cert.rb +4 -0
- data/credentials_manager/README.md +64 -0
- data/credentials_manager/lib/credentials_manager/account_manager.rb +157 -0
- data/credentials_manager/lib/credentials_manager/appfile_config.rb +196 -0
- data/credentials_manager/lib/credentials_manager/cli.rb +69 -0
- data/credentials_manager/lib/credentials_manager.rb +7 -0
- data/deliver/README.md +17 -0
- data/deliver/lib/assets/DeliverfileDefault +3 -0
- data/deliver/lib/assets/DeliverfileDefault.swift +13 -0
- data/deliver/lib/assets/ScreenshotsHelp +30 -0
- data/deliver/lib/assets/summary.html.erb +299 -0
- data/deliver/lib/deliver/app_screenshot.rb +387 -0
- data/deliver/lib/deliver/app_screenshot_iterator.rb +95 -0
- data/deliver/lib/deliver/app_screenshot_validator.rb +108 -0
- data/deliver/lib/deliver/commands_generator.rb +191 -0
- data/deliver/lib/deliver/detect_values.rb +104 -0
- data/deliver/lib/deliver/download_screenshots.rb +75 -0
- data/deliver/lib/deliver/generate_summary.rb +13 -0
- data/deliver/lib/deliver/html_generator.rb +78 -0
- data/deliver/lib/deliver/languages.rb +7 -0
- data/deliver/lib/deliver/loader.rb +157 -0
- data/deliver/lib/deliver/module.rb +24 -0
- data/deliver/lib/deliver/options.rb +461 -0
- data/deliver/lib/deliver/runner.rb +310 -0
- data/deliver/lib/deliver/screenshot_comparable.rb +62 -0
- data/deliver/lib/deliver/setup.rb +203 -0
- data/deliver/lib/deliver/submit_for_review.rb +236 -0
- data/deliver/lib/deliver/sync_screenshots.rb +200 -0
- data/deliver/lib/deliver/upload_metadata.rb +699 -0
- data/deliver/lib/deliver/upload_price_tier.rb +42 -0
- data/deliver/lib/deliver/upload_screenshots.rb +271 -0
- data/deliver/lib/deliver.rb +15 -0
- data/fastlane/README.md +11 -0
- data/fastlane/lib/assets/ActionDetails.md.erb +106 -0
- data/fastlane/lib/assets/Actions.md.erb +43 -0
- data/fastlane/lib/assets/AppfileTemplate +6 -0
- data/fastlane/lib/assets/AppfileTemplate.swift +7 -0
- data/fastlane/lib/assets/AppfileTemplateAndroid +2 -0
- data/fastlane/lib/assets/DefaultFastfileTemplate +20 -0
- data/fastlane/lib/assets/DefaultFastfileTemplate.swift +13 -0
- data/fastlane/lib/assets/completions/completion.bash +26 -0
- data/fastlane/lib/assets/completions/completion.fish +39 -0
- data/fastlane/lib/assets/completions/completion.sh +12 -0
- data/fastlane/lib/assets/completions/completion.zsh +24 -0
- data/fastlane/lib/assets/custom_action_template.rb +82 -0
- data/fastlane/lib/assets/mailgun_html_template.erb +142 -0
- data/fastlane/lib/assets/report_template.xml.erb +15 -0
- data/fastlane/lib/assets/s3_html_template.erb +105 -0
- data/fastlane/lib/assets/s3_plist_template.erb +31 -0
- data/fastlane/lib/assets/s3_version_template.erb +4 -0
- data/fastlane/lib/fastlane/action.rb +198 -0
- data/fastlane/lib/fastlane/action_collector.rb +35 -0
- data/fastlane/lib/fastlane/actions/README.md +5 -0
- data/fastlane/lib/fastlane/actions/actions_helper.rb +185 -0
- data/fastlane/lib/fastlane/actions/adb.rb +75 -0
- data/fastlane/lib/fastlane/actions/adb_devices.rb +70 -0
- data/fastlane/lib/fastlane/actions/add_extra_platforms.rb +45 -0
- data/fastlane/lib/fastlane/actions/add_git_tag.rb +138 -0
- data/fastlane/lib/fastlane/actions/app_store_build_number.rb +255 -0
- data/fastlane/lib/fastlane/actions/app_store_connect_api_key.rb +148 -0
- data/fastlane/lib/fastlane/actions/appaloosa.rb +271 -0
- data/fastlane/lib/fastlane/actions/appetize.rb +193 -0
- data/fastlane/lib/fastlane/actions/appetize_viewing_url_generator.rb +135 -0
- data/fastlane/lib/fastlane/actions/appium.rb +181 -0
- data/fastlane/lib/fastlane/actions/appledoc.rb +226 -0
- data/fastlane/lib/fastlane/actions/appstore.rb +14 -0
- data/fastlane/lib/fastlane/actions/apteligent.rb +106 -0
- data/fastlane/lib/fastlane/actions/artifactory.rb +189 -0
- data/fastlane/lib/fastlane/actions/automatic_code_signing.rb +220 -0
- data/fastlane/lib/fastlane/actions/backup_file.rb +41 -0
- data/fastlane/lib/fastlane/actions/backup_xcarchive.rb +135 -0
- data/fastlane/lib/fastlane/actions/badge.rb +151 -0
- data/fastlane/lib/fastlane/actions/build_and_upload_to_appetize.rb +113 -0
- data/fastlane/lib/fastlane/actions/build_android_app.rb +14 -0
- data/fastlane/lib/fastlane/actions/build_app.rb +171 -0
- data/fastlane/lib/fastlane/actions/build_ios_app.rb +47 -0
- data/fastlane/lib/fastlane/actions/build_mac_app.rb +46 -0
- data/fastlane/lib/fastlane/actions/bundle_install.rb +166 -0
- data/fastlane/lib/fastlane/actions/capture_android_screenshots.rb +63 -0
- data/fastlane/lib/fastlane/actions/capture_ios_screenshots.rb +61 -0
- data/fastlane/lib/fastlane/actions/capture_screenshots.rb +14 -0
- data/fastlane/lib/fastlane/actions/carthage.rb +238 -0
- data/fastlane/lib/fastlane/actions/cert.rb +14 -0
- data/fastlane/lib/fastlane/actions/changelog_from_git_commits.rb +188 -0
- data/fastlane/lib/fastlane/actions/chatwork.rb +95 -0
- data/fastlane/lib/fastlane/actions/check_app_store_metadata.rb +62 -0
- data/fastlane/lib/fastlane/actions/clean_build_artifacts.rb +71 -0
- data/fastlane/lib/fastlane/actions/clean_cocoapods_cache.rb +75 -0
- data/fastlane/lib/fastlane/actions/clear_derived_data.rb +70 -0
- data/fastlane/lib/fastlane/actions/clipboard.rb +49 -0
- data/fastlane/lib/fastlane/actions/cloc.rb +85 -0
- data/fastlane/lib/fastlane/actions/cocoapods.rb +178 -0
- data/fastlane/lib/fastlane/actions/commit_github_file.rb +194 -0
- data/fastlane/lib/fastlane/actions/commit_version_bump.rb +300 -0
- data/fastlane/lib/fastlane/actions/copy_artifacts.rb +113 -0
- data/fastlane/lib/fastlane/actions/create_app_on_managed_play_store.rb +168 -0
- data/fastlane/lib/fastlane/actions/create_app_online.rb +75 -0
- data/fastlane/lib/fastlane/actions/create_keychain.rb +179 -0
- data/fastlane/lib/fastlane/actions/create_pull_request.rb +271 -0
- data/fastlane/lib/fastlane/actions/create_xcframework.rb +203 -0
- data/fastlane/lib/fastlane/actions/danger.rb +146 -0
- data/fastlane/lib/fastlane/actions/debug.rb +32 -0
- data/fastlane/lib/fastlane/actions/default_platform.rb +47 -0
- data/fastlane/lib/fastlane/actions/delete_keychain.rb +68 -0
- data/fastlane/lib/fastlane/actions/deliver.rb +14 -0
- data/fastlane/lib/fastlane/actions/deploygate.rb +209 -0
- data/fastlane/lib/fastlane/actions/device_grid/README.md +157 -0
- data/fastlane/lib/fastlane/actions/docs/build_app.md +245 -0
- data/fastlane/lib/fastlane/actions/docs/capture_android_screenshots.md +349 -0
- data/fastlane/lib/fastlane/actions/docs/capture_ios_screenshots.md +375 -0
- data/fastlane/lib/fastlane/actions/docs/check_app_store_metadata.md +103 -0
- data/fastlane/lib/fastlane/actions/docs/create_app_online.md +386 -0
- data/fastlane/lib/fastlane/actions/docs/frame_screenshots.md +366 -0
- data/fastlane/lib/fastlane/actions/docs/get_certificates.md +86 -0
- data/fastlane/lib/fastlane/actions/docs/get_provisioning_profile.md +223 -0
- data/fastlane/lib/fastlane/actions/docs/get_push_certificate.md +134 -0
- data/fastlane/lib/fastlane/actions/docs/run_tests.md +151 -0
- data/fastlane/lib/fastlane/actions/docs/sync_code_signing.md +579 -0
- data/fastlane/lib/fastlane/actions/docs/upload_to_app_store.md.erb +748 -0
- data/fastlane/lib/fastlane/actions/docs/upload_to_play_store.md +204 -0
- data/fastlane/lib/fastlane/actions/docs/upload_to_testflight.md +260 -0
- data/fastlane/lib/fastlane/actions/dotgpg_environment.rb +57 -0
- data/fastlane/lib/fastlane/actions/download.rb +76 -0
- data/fastlane/lib/fastlane/actions/download_app_privacy_details_from_app_store.rb +142 -0
- data/fastlane/lib/fastlane/actions/download_dsyms.rb +373 -0
- data/fastlane/lib/fastlane/actions/download_from_play_store.rb +61 -0
- data/fastlane/lib/fastlane/actions/dsym_zip.rb +93 -0
- data/fastlane/lib/fastlane/actions/echo.rb +14 -0
- data/fastlane/lib/fastlane/actions/ensure_bundle_exec.rb +59 -0
- data/fastlane/lib/fastlane/actions/ensure_env_vars.rb +54 -0
- data/fastlane/lib/fastlane/actions/ensure_git_branch.rb +68 -0
- data/fastlane/lib/fastlane/actions/ensure_git_status_clean.rb +102 -0
- data/fastlane/lib/fastlane/actions/ensure_no_debug_code.rb +133 -0
- data/fastlane/lib/fastlane/actions/ensure_xcode_version.rb +124 -0
- data/fastlane/lib/fastlane/actions/environment_variable.rb +69 -0
- data/fastlane/lib/fastlane/actions/erb.rb +93 -0
- data/fastlane/lib/fastlane/actions/fastlane_version.rb +15 -0
- data/fastlane/lib/fastlane/actions/flock.rb +82 -0
- data/fastlane/lib/fastlane/actions/frame_screenshots.rb +64 -0
- data/fastlane/lib/fastlane/actions/frameit.rb +14 -0
- data/fastlane/lib/fastlane/actions/gcovr.rb +163 -0
- data/fastlane/lib/fastlane/actions/get_build_number.rb +106 -0
- data/fastlane/lib/fastlane/actions/get_build_number_repository.rb +120 -0
- data/fastlane/lib/fastlane/actions/get_certificates.rb +81 -0
- data/fastlane/lib/fastlane/actions/get_github_release.rb +176 -0
- data/fastlane/lib/fastlane/actions/get_info_plist_value.rb +78 -0
- data/fastlane/lib/fastlane/actions/get_ipa_info_plist_value.rb +81 -0
- data/fastlane/lib/fastlane/actions/get_managed_play_store_publishing_rights.rb +117 -0
- data/fastlane/lib/fastlane/actions/get_provisioning_profile.rb +109 -0
- data/fastlane/lib/fastlane/actions/get_push_certificate.rb +87 -0
- data/fastlane/lib/fastlane/actions/get_version_number.rb +212 -0
- data/fastlane/lib/fastlane/actions/git_add.rb +88 -0
- data/fastlane/lib/fastlane/actions/git_branch.rb +55 -0
- data/fastlane/lib/fastlane/actions/git_commit.rb +80 -0
- data/fastlane/lib/fastlane/actions/git_pull.rb +58 -0
- data/fastlane/lib/fastlane/actions/git_remote_branch.rb +57 -0
- data/fastlane/lib/fastlane/actions/git_submodule_update.rb +60 -0
- data/fastlane/lib/fastlane/actions/git_tag_exists.rb +78 -0
- data/fastlane/lib/fastlane/actions/github_api.rb +271 -0
- data/fastlane/lib/fastlane/actions/google_play_track_release_names.rb +74 -0
- data/fastlane/lib/fastlane/actions/google_play_track_version_codes.rb +77 -0
- data/fastlane/lib/fastlane/actions/gradle.rb +334 -0
- data/fastlane/lib/fastlane/actions/gym.rb +10 -0
- data/fastlane/lib/fastlane/actions/hg_add_tag.rb +48 -0
- data/fastlane/lib/fastlane/actions/hg_commit_version_bump.rb +183 -0
- data/fastlane/lib/fastlane/actions/hg_ensure_clean_status.rb +53 -0
- data/fastlane/lib/fastlane/actions/hg_push.rb +64 -0
- data/fastlane/lib/fastlane/actions/hipchat.rb +200 -0
- data/fastlane/lib/fastlane/actions/hockey.rb +399 -0
- data/fastlane/lib/fastlane/actions/ifttt.rb +93 -0
- data/fastlane/lib/fastlane/actions/import.rb +49 -0
- data/fastlane/lib/fastlane/actions/import_certificate.rb +77 -0
- data/fastlane/lib/fastlane/actions/import_from_git.rb +81 -0
- data/fastlane/lib/fastlane/actions/increment_build_number.rb +123 -0
- data/fastlane/lib/fastlane/actions/increment_version_number.rb +180 -0
- data/fastlane/lib/fastlane/actions/install_on_device.rb +92 -0
- data/fastlane/lib/fastlane/actions/install_provisioning_profile.rb +62 -0
- data/fastlane/lib/fastlane/actions/install_xcode_plugin.rb +91 -0
- data/fastlane/lib/fastlane/actions/installr.rb +129 -0
- data/fastlane/lib/fastlane/actions/ipa.rb +246 -0
- data/fastlane/lib/fastlane/actions/is_ci.rb +51 -0
- data/fastlane/lib/fastlane/actions/jazzy.rb +59 -0
- data/fastlane/lib/fastlane/actions/jira.rb +162 -0
- data/fastlane/lib/fastlane/actions/lane_context.rb +60 -0
- data/fastlane/lib/fastlane/actions/last_git_commit.rb +58 -0
- data/fastlane/lib/fastlane/actions/last_git_tag.rb +60 -0
- data/fastlane/lib/fastlane/actions/latest_testflight_build_number.rb +154 -0
- data/fastlane/lib/fastlane/actions/lcov.rb +98 -0
- data/fastlane/lib/fastlane/actions/mailgun.rb +191 -0
- data/fastlane/lib/fastlane/actions/make_changelog_from_jenkins.rb +81 -0
- data/fastlane/lib/fastlane/actions/match.rb +14 -0
- data/fastlane/lib/fastlane/actions/match_nuke.rb +59 -0
- data/fastlane/lib/fastlane/actions/min_fastlane_version.rb +57 -0
- data/fastlane/lib/fastlane/actions/modify_services.rb +208 -0
- data/fastlane/lib/fastlane/actions/nexus_upload.rb +231 -0
- data/fastlane/lib/fastlane/actions/notarize.rb +340 -0
- data/fastlane/lib/fastlane/actions/notification.rb +75 -0
- data/fastlane/lib/fastlane/actions/notify.rb +40 -0
- data/fastlane/lib/fastlane/actions/number_of_commits.rb +75 -0
- data/fastlane/lib/fastlane/actions/oclint.rb +270 -0
- data/fastlane/lib/fastlane/actions/onesignal.rb +196 -0
- data/fastlane/lib/fastlane/actions/opt_out_crash_reporting.rb +33 -0
- data/fastlane/lib/fastlane/actions/opt_out_usage.rb +40 -0
- data/fastlane/lib/fastlane/actions/pem.rb +14 -0
- data/fastlane/lib/fastlane/actions/pilot.rb +14 -0
- data/fastlane/lib/fastlane/actions/pod_lib_lint.rb +189 -0
- data/fastlane/lib/fastlane/actions/pod_push.rb +198 -0
- data/fastlane/lib/fastlane/actions/podio_item.rb +210 -0
- data/fastlane/lib/fastlane/actions/precheck.rb +14 -0
- data/fastlane/lib/fastlane/actions/println.rb +14 -0
- data/fastlane/lib/fastlane/actions/produce.rb +14 -0
- data/fastlane/lib/fastlane/actions/prompt.rb +118 -0
- data/fastlane/lib/fastlane/actions/push_git_tags.rb +76 -0
- data/fastlane/lib/fastlane/actions/push_to_git_remote.rb +138 -0
- data/fastlane/lib/fastlane/actions/puts.rb +67 -0
- data/fastlane/lib/fastlane/actions/read_podspec.rb +90 -0
- data/fastlane/lib/fastlane/actions/recreate_schemes.rb +46 -0
- data/fastlane/lib/fastlane/actions/register_device.rb +148 -0
- data/fastlane/lib/fastlane/actions/register_devices.rb +211 -0
- data/fastlane/lib/fastlane/actions/reset_git_repo.rb +118 -0
- data/fastlane/lib/fastlane/actions/reset_simulator_contents.rb +90 -0
- data/fastlane/lib/fastlane/actions/resign.rb +125 -0
- data/fastlane/lib/fastlane/actions/restore_file.rb +44 -0
- data/fastlane/lib/fastlane/actions/rocket.rb +83 -0
- data/fastlane/lib/fastlane/actions/rsync.rb +71 -0
- data/fastlane/lib/fastlane/actions/ruby_version.rb +56 -0
- data/fastlane/lib/fastlane/actions/run_tests.rb +124 -0
- data/fastlane/lib/fastlane/actions/s3.rb +174 -0
- data/fastlane/lib/fastlane/actions/say.rb +55 -0
- data/fastlane/lib/fastlane/actions/scan.rb +14 -0
- data/fastlane/lib/fastlane/actions/scp.rb +108 -0
- data/fastlane/lib/fastlane/actions/screengrab.rb +14 -0
- data/fastlane/lib/fastlane/actions/set_build_number_repository.rb +76 -0
- data/fastlane/lib/fastlane/actions/set_changelog.rb +201 -0
- data/fastlane/lib/fastlane/actions/set_github_release.rb +287 -0
- data/fastlane/lib/fastlane/actions/set_info_plist_value.rb +92 -0
- data/fastlane/lib/fastlane/actions/set_pod_key.rb +77 -0
- data/fastlane/lib/fastlane/actions/setup_ci.rb +140 -0
- data/fastlane/lib/fastlane/actions/setup_circle_ci.rb +58 -0
- data/fastlane/lib/fastlane/actions/setup_jenkins.rb +197 -0
- data/fastlane/lib/fastlane/actions/setup_travis.rb +57 -0
- data/fastlane/lib/fastlane/actions/sh.rb +69 -0
- data/fastlane/lib/fastlane/actions/sigh.rb +14 -0
- data/fastlane/lib/fastlane/actions/skip_docs.rb +52 -0
- data/fastlane/lib/fastlane/actions/slack.rb +307 -0
- data/fastlane/lib/fastlane/actions/slather.rb +319 -0
- data/fastlane/lib/fastlane/actions/snapshot.rb +14 -0
- data/fastlane/lib/fastlane/actions/sonar.rb +170 -0
- data/fastlane/lib/fastlane/actions/sourcedocs.rb +128 -0
- data/fastlane/lib/fastlane/actions/spaceship_logs.rb +135 -0
- data/fastlane/lib/fastlane/actions/spaceship_stats.rb +73 -0
- data/fastlane/lib/fastlane/actions/splunkmint.rb +156 -0
- data/fastlane/lib/fastlane/actions/spm.rb +144 -0
- data/fastlane/lib/fastlane/actions/ssh.rb +157 -0
- data/fastlane/lib/fastlane/actions/supply.rb +14 -0
- data/fastlane/lib/fastlane/actions/swiftlint.rb +242 -0
- data/fastlane/lib/fastlane/actions/sync_code_signing.rb +114 -0
- data/fastlane/lib/fastlane/actions/team_id.rb +42 -0
- data/fastlane/lib/fastlane/actions/team_name.rb +42 -0
- data/fastlane/lib/fastlane/actions/testfairy.rb +284 -0
- data/fastlane/lib/fastlane/actions/testflight.rb +14 -0
- data/fastlane/lib/fastlane/actions/trainer.rb +49 -0
- data/fastlane/lib/fastlane/actions/tryouts.rb +148 -0
- data/fastlane/lib/fastlane/actions/twitter.rb +84 -0
- data/fastlane/lib/fastlane/actions/typetalk.rb +93 -0
- data/fastlane/lib/fastlane/actions/unlock_keychain.rb +132 -0
- data/fastlane/lib/fastlane/actions/update_app_group_identifiers.rb +88 -0
- data/fastlane/lib/fastlane/actions/update_app_identifier.rb +124 -0
- data/fastlane/lib/fastlane/actions/update_code_signing_settings.rb +223 -0
- data/fastlane/lib/fastlane/actions/update_fastlane.rb +158 -0
- data/fastlane/lib/fastlane/actions/update_icloud_container_identifiers.rb +96 -0
- data/fastlane/lib/fastlane/actions/update_info_plist.rb +143 -0
- data/fastlane/lib/fastlane/actions/update_keychain_access_groups.rb +91 -0
- data/fastlane/lib/fastlane/actions/update_plist.rb +115 -0
- data/fastlane/lib/fastlane/actions/update_project_code_signing.rb +76 -0
- data/fastlane/lib/fastlane/actions/update_project_provisioning.rb +181 -0
- data/fastlane/lib/fastlane/actions/update_project_team.rb +95 -0
- data/fastlane/lib/fastlane/actions/update_urban_airship_configuration.rb +90 -0
- data/fastlane/lib/fastlane/actions/update_url_schemes.rb +112 -0
- data/fastlane/lib/fastlane/actions/upload_app_privacy_details_to_app_store.rb +290 -0
- data/fastlane/lib/fastlane/actions/upload_symbols_to_crashlytics.rb +232 -0
- data/fastlane/lib/fastlane/actions/upload_symbols_to_sentry.rb +158 -0
- data/fastlane/lib/fastlane/actions/upload_to_app_store.rb +71 -0
- data/fastlane/lib/fastlane/actions/upload_to_play_store.rb +80 -0
- data/fastlane/lib/fastlane/actions/upload_to_play_store_internal_app_sharing.rb +78 -0
- data/fastlane/lib/fastlane/actions/upload_to_testflight.rb +126 -0
- data/fastlane/lib/fastlane/actions/validate_play_store_json_key.rb +100 -0
- data/fastlane/lib/fastlane/actions/verify_build.rb +199 -0
- data/fastlane/lib/fastlane/actions/verify_pod_keys.rb +67 -0
- data/fastlane/lib/fastlane/actions/verify_xcode.rb +159 -0
- data/fastlane/lib/fastlane/actions/version_bump_podspec.rb +105 -0
- data/fastlane/lib/fastlane/actions/version_get_podspec.rb +70 -0
- data/fastlane/lib/fastlane/actions/xcode_install.rb +112 -0
- data/fastlane/lib/fastlane/actions/xcode_select.rb +68 -0
- data/fastlane/lib/fastlane/actions/xcode_server_get_assets.rb +312 -0
- data/fastlane/lib/fastlane/actions/xcodebuild.rb +647 -0
- data/fastlane/lib/fastlane/actions/xcodes.rb +152 -0
- data/fastlane/lib/fastlane/actions/xcov.rb +71 -0
- data/fastlane/lib/fastlane/actions/xctool.rb +55 -0
- data/fastlane/lib/fastlane/actions/xcversion.rb +65 -0
- data/fastlane/lib/fastlane/actions/zip.rb +185 -0
- data/fastlane/lib/fastlane/auto_complete.rb +82 -0
- data/fastlane/lib/fastlane/boolean.rb +5 -0
- data/fastlane/lib/fastlane/cli_tools_distributor.rb +215 -0
- data/fastlane/lib/fastlane/command_line_handler.rb +49 -0
- data/fastlane/lib/fastlane/commands_generator.rb +371 -0
- data/fastlane/lib/fastlane/configuration_helper.rb +26 -0
- data/fastlane/lib/fastlane/core_ext/bundler_monkey_patch.rb +14 -0
- data/fastlane/lib/fastlane/documentation/actions_list.rb +214 -0
- data/fastlane/lib/fastlane/documentation/docs_generator.rb +94 -0
- data/fastlane/lib/fastlane/documentation/markdown_docs_generator.rb +234 -0
- data/fastlane/lib/fastlane/environment_printer.rb +304 -0
- data/fastlane/lib/fastlane/erb_template_helper.rb +36 -0
- data/fastlane/lib/fastlane/fast_file.rb +464 -0
- data/fastlane/lib/fastlane/fastlane_require.rb +81 -0
- data/fastlane/lib/fastlane/features.rb +10 -0
- data/fastlane/lib/fastlane/helper/README.md +29 -0
- data/fastlane/lib/fastlane/helper/adb_helper.rb +66 -0
- data/fastlane/lib/fastlane/helper/dotenv_helper.rb +50 -0
- data/fastlane/lib/fastlane/helper/gem_helper.rb +26 -0
- data/fastlane/lib/fastlane/helper/git_helper.rb +166 -0
- data/fastlane/lib/fastlane/helper/gradle_helper.rb +62 -0
- data/fastlane/lib/fastlane/helper/lane_helper.rb +13 -0
- data/fastlane/lib/fastlane/helper/podspec_helper.rb +75 -0
- data/fastlane/lib/fastlane/helper/s3_client_helper.rb +78 -0
- data/fastlane/lib/fastlane/helper/sh_helper.rb +134 -0
- data/fastlane/lib/fastlane/helper/xcodebuild_formatter_helper.rb +9 -0
- data/fastlane/lib/fastlane/helper/xcodeproj_helper.rb +12 -0
- data/fastlane/lib/fastlane/helper/xcodes_helper.rb +28 -0
- data/fastlane/lib/fastlane/helper/xcversion_helper.rb +16 -0
- data/fastlane/lib/fastlane/junit_generator.rb +27 -0
- data/fastlane/lib/fastlane/lane.rb +97 -0
- data/fastlane/lib/fastlane/lane_list.rb +137 -0
- data/fastlane/lib/fastlane/lane_manager.rb +131 -0
- data/fastlane/lib/fastlane/lane_manager_base.rb +92 -0
- data/fastlane/lib/fastlane/markdown_table_formatter.rb +62 -0
- data/fastlane/lib/fastlane/new_action.rb +47 -0
- data/fastlane/lib/fastlane/notification/slack.rb +56 -0
- data/fastlane/lib/fastlane/one_off.rb +45 -0
- data/fastlane/lib/fastlane/other_action.rb +29 -0
- data/fastlane/lib/fastlane/plugins/plugin_fetcher.rb +54 -0
- data/fastlane/lib/fastlane/plugins/plugin_generator.rb +86 -0
- data/fastlane/lib/fastlane/plugins/plugin_generator_ui.rb +19 -0
- data/fastlane/lib/fastlane/plugins/plugin_info.rb +49 -0
- data/fastlane/lib/fastlane/plugins/plugin_info_collector.rb +158 -0
- data/fastlane/lib/fastlane/plugins/plugin_manager.rb +398 -0
- data/fastlane/lib/fastlane/plugins/plugin_search.rb +46 -0
- data/fastlane/lib/fastlane/plugins/plugin_update_manager.rb +70 -0
- data/fastlane/lib/fastlane/plugins/plugins.rb +12 -0
- data/fastlane/lib/fastlane/plugins/template/%gem_name%.gemspec.erb +36 -0
- data/fastlane/lib/fastlane/plugins/template/.circleci/config.yml +43 -0
- data/fastlane/lib/fastlane/plugins/template/.github/workflows/test.yml +29 -0
- data/fastlane/lib/fastlane/plugins/template/.gitignore +12 -0
- data/fastlane/lib/fastlane/plugins/template/.rspec +5 -0
- data/fastlane/lib/fastlane/plugins/template/.rubocop.yml +188 -0
- data/fastlane/lib/fastlane/plugins/template/.travis.yml +4 -0
- data/fastlane/lib/fastlane/plugins/template/Gemfile +6 -0
- data/fastlane/lib/fastlane/plugins/template/LICENSE.erb +21 -0
- data/fastlane/lib/fastlane/plugins/template/README.md.erb +52 -0
- data/fastlane/lib/fastlane/plugins/template/Rakefile +9 -0
- data/fastlane/lib/fastlane/plugins/template/fastlane/Fastfile.erb +3 -0
- data/fastlane/lib/fastlane/plugins/template/fastlane/Pluginfile.erb +1 -0
- data/fastlane/lib/fastlane/plugins/template/lib/fastlane/plugin/%plugin_name%/actions/%plugin_name%_action.rb.erb +47 -0
- data/fastlane/lib/fastlane/plugins/template/lib/fastlane/plugin/%plugin_name%/helper/%plugin_name%_helper.rb.erb +16 -0
- data/fastlane/lib/fastlane/plugins/template/lib/fastlane/plugin/%plugin_name%/version.rb.erb +5 -0
- data/fastlane/lib/fastlane/plugins/template/lib/fastlane/plugin/%plugin_name%.rb.erb +16 -0
- data/fastlane/lib/fastlane/plugins/template/spec/%plugin_name%_action_spec.rb.erb +9 -0
- data/fastlane/lib/fastlane/plugins/template/spec/spec_helper.rb.erb +15 -0
- data/fastlane/lib/fastlane/runner.rb +378 -0
- data/fastlane/lib/fastlane/server/action_command.rb +61 -0
- data/fastlane/lib/fastlane/server/action_command_return.rb +14 -0
- data/fastlane/lib/fastlane/server/command_executor.rb +7 -0
- data/fastlane/lib/fastlane/server/command_parser.rb +44 -0
- data/fastlane/lib/fastlane/server/control_command.rb +23 -0
- data/fastlane/lib/fastlane/server/json_return_value_processor.rb +72 -0
- data/fastlane/lib/fastlane/server/socket_server.rb +238 -0
- data/fastlane/lib/fastlane/server/socket_server_action_command_executor.rb +101 -0
- data/fastlane/lib/fastlane/setup/setup.rb +368 -0
- data/fastlane/lib/fastlane/setup/setup_android.rb +97 -0
- data/fastlane/lib/fastlane/setup/setup_ios.rb +504 -0
- data/fastlane/lib/fastlane/shells.rb +6 -0
- data/fastlane/lib/fastlane/supported_platforms.rb +28 -0
- data/fastlane/lib/fastlane/swift_fastlane_api_generator.rb +480 -0
- data/fastlane/lib/fastlane/swift_fastlane_function.rb +447 -0
- data/fastlane/lib/fastlane/swift_lane_manager.rb +304 -0
- data/fastlane/lib/fastlane/swift_runner_upgrader.rb +265 -0
- data/fastlane/lib/fastlane/tools.rb +50 -0
- data/fastlane/lib/fastlane/version.rb +6 -0
- data/fastlane/lib/fastlane.rb +53 -0
- data/fastlane/swift/Actions.swift +16 -0
- data/fastlane/swift/Appfile.swift +15 -0
- data/fastlane/swift/ArgumentProcessor.swift +89 -0
- data/fastlane/swift/Atomic.swift +150 -0
- data/fastlane/swift/ControlCommand.swift +74 -0
- data/fastlane/swift/Deliverfile.swift +20 -0
- data/fastlane/swift/DeliverfileProtocol.swift +267 -0
- data/fastlane/swift/Fastfile.swift +16 -0
- data/fastlane/swift/Fastlane.swift +13576 -0
- data/fastlane/swift/FastlaneSwiftRunner/FastlaneSwiftRunner.xcodeproj/project.pbxproj +448 -0
- data/fastlane/swift/FastlaneSwiftRunner/FastlaneSwiftRunner.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- data/fastlane/swift/FastlaneSwiftRunner/FastlaneSwiftRunner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- data/fastlane/swift/FastlaneSwiftRunner/FastlaneSwiftRunner.xcodeproj/xcshareddata/xcschemes/FastlaneRunner.xcscheme +97 -0
- data/fastlane/swift/FastlaneSwiftRunner/README.txt +10 -0
- data/fastlane/swift/Gymfile.swift +20 -0
- data/fastlane/swift/GymfileProtocol.swift +211 -0
- data/fastlane/swift/LaneFileProtocol.swift +155 -0
- data/fastlane/swift/MainProcess.swift +79 -0
- data/fastlane/swift/Matchfile.swift +20 -0
- data/fastlane/swift/MatchfileProtocol.swift +211 -0
- data/fastlane/swift/OptionalConfigValue.swift +101 -0
- data/fastlane/swift/Plugins.swift +16 -0
- data/fastlane/swift/Precheckfile.swift +20 -0
- data/fastlane/swift/PrecheckfileProtocol.swift +55 -0
- data/fastlane/swift/RubyCommand.swift +157 -0
- data/fastlane/swift/RubyCommandable.swift +43 -0
- data/fastlane/swift/Runner.swift +279 -0
- data/fastlane/swift/RunnerArgument.swift +20 -0
- data/fastlane/swift/Scanfile.swift +20 -0
- data/fastlane/swift/ScanfileProtocol.swift +319 -0
- data/fastlane/swift/Screengrabfile.swift +20 -0
- data/fastlane/swift/ScreengrabfileProtocol.swift +99 -0
- data/fastlane/swift/Snapshotfile.swift +20 -0
- data/fastlane/swift/SnapshotfileProtocol.swift +207 -0
- data/fastlane/swift/SocketClient.swift +332 -0
- data/fastlane/swift/SocketClientDelegateProtocol.swift +21 -0
- data/fastlane/swift/SocketResponse.swift +84 -0
- data/fastlane/swift/formatting/Brewfile +1 -0
- data/fastlane/swift/formatting/Brewfile.lock.json +86 -0
- data/fastlane/swift/formatting/Rakefile +18 -0
- data/fastlane/swift/main.swift +47 -0
- data/fastlane/swift/upgrade_manifest.json +1 -0
- data/fastlane_core/README.md +80 -0
- data/fastlane_core/lib/assets/XMLTemplate.xml.erb +12 -0
- data/fastlane_core/lib/fastlane_core/analytics/action_completion_context.rb +34 -0
- data/fastlane_core/lib/fastlane_core/analytics/action_launch_context.rb +38 -0
- data/fastlane_core/lib/fastlane_core/analytics/analytics_event_builder.rb +23 -0
- data/fastlane_core/lib/fastlane_core/analytics/analytics_ingester_client.rb +54 -0
- data/fastlane_core/lib/fastlane_core/analytics/analytics_session.rb +70 -0
- data/fastlane_core/lib/fastlane_core/analytics/app_identifier_guesser.rb +64 -0
- data/fastlane_core/lib/fastlane_core/android_package_name_guesser.rb +79 -0
- data/fastlane_core/lib/fastlane_core/build_watcher.rb +192 -0
- data/fastlane_core/lib/fastlane_core/cert_checker.rb +211 -0
- data/fastlane_core/lib/fastlane_core/clipboard.rb +20 -0
- data/fastlane_core/lib/fastlane_core/command_executor.rb +94 -0
- data/fastlane_core/lib/fastlane_core/configuration/commander_generator.rb +108 -0
- data/fastlane_core/lib/fastlane_core/configuration/config_item.rb +359 -0
- data/fastlane_core/lib/fastlane_core/configuration/configuration.rb +338 -0
- data/fastlane_core/lib/fastlane_core/configuration/configuration_file.rb +182 -0
- data/fastlane_core/lib/fastlane_core/core_ext/cfpropertylist.rb +23 -0
- data/fastlane_core/lib/fastlane_core/core_ext/shellwords.rb +63 -0
- data/fastlane_core/lib/fastlane_core/core_ext/string.rb +17 -0
- data/fastlane_core/lib/fastlane_core/device_manager.rb +378 -0
- data/fastlane_core/lib/fastlane_core/env.rb +9 -0
- data/fastlane_core/lib/fastlane_core/fastlane_folder.rb +72 -0
- data/fastlane_core/lib/fastlane_core/fastlane_pty.rb +57 -0
- data/fastlane_core/lib/fastlane_core/feature/feature.rb +51 -0
- data/fastlane_core/lib/fastlane_core/features.rb +4 -0
- data/fastlane_core/lib/fastlane_core/globals.rb +27 -0
- data/fastlane_core/lib/fastlane_core/helper.rb +501 -0
- data/fastlane_core/lib/fastlane_core/ios_app_identifier_guesser.rb +112 -0
- data/fastlane_core/lib/fastlane_core/ipa_file_analyser.rb +93 -0
- data/fastlane_core/lib/fastlane_core/ipa_upload_package_builder.rb +53 -0
- data/fastlane_core/lib/fastlane_core/itunes_transporter.rb +983 -0
- data/fastlane_core/lib/fastlane_core/keychain_importer.rb +128 -0
- data/fastlane_core/lib/fastlane_core/languages.rb +16 -0
- data/fastlane_core/lib/fastlane_core/module.rb +31 -0
- data/fastlane_core/lib/fastlane_core/pkg_file_analyser.rb +56 -0
- data/fastlane_core/lib/fastlane_core/pkg_upload_package_builder.rb +49 -0
- data/fastlane_core/lib/fastlane_core/print_table.rb +133 -0
- data/fastlane_core/lib/fastlane_core/project.rb +546 -0
- data/fastlane_core/lib/fastlane_core/provisioning_profile.rb +126 -0
- data/fastlane_core/lib/fastlane_core/queue_worker.rb +49 -0
- data/fastlane_core/lib/fastlane_core/string_filters.rb +51 -0
- data/fastlane_core/lib/fastlane_core/swag.rb +85 -0
- data/fastlane_core/lib/fastlane_core/tag_version.rb +31 -0
- data/fastlane_core/lib/fastlane_core/test_parser.rb +107 -0
- data/fastlane_core/lib/fastlane_core/ui/disable_colors.rb +26 -0
- data/fastlane_core/lib/fastlane_core/ui/errors/fastlane_common_error.rb +19 -0
- data/fastlane_core/lib/fastlane_core/ui/errors/fastlane_crash.rb +11 -0
- data/fastlane_core/lib/fastlane_core/ui/errors/fastlane_error.rb +25 -0
- data/fastlane_core/lib/fastlane_core/ui/errors/fastlane_exception.rb +19 -0
- data/fastlane_core/lib/fastlane_core/ui/errors/fastlane_shell_error.rb +11 -0
- data/fastlane_core/lib/fastlane_core/ui/errors.rb +1 -0
- data/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb +342 -0
- data/fastlane_core/lib/fastlane_core/ui/github_issue_inspector_reporter.rb +62 -0
- data/fastlane_core/lib/fastlane_core/ui/help.erb +35 -0
- data/fastlane_core/lib/fastlane_core/ui/help_formatter.rb +16 -0
- data/fastlane_core/lib/fastlane_core/ui/implementations/shell.rb +175 -0
- data/fastlane_core/lib/fastlane_core/ui/interface.rb +205 -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 +109 -0
- data/fastlane_core/lib/fastlane_core.rb +48 -0
- data/frameit/README.md +17 -0
- data/frameit/lib/assets/empty.png +0 -0
- data/frameit/lib/frameit/commands_generator.rb +141 -0
- data/frameit/lib/frameit/config_parser.rb +136 -0
- data/frameit/lib/frameit/dependency_checker.rb +22 -0
- data/frameit/lib/frameit/device.rb +90 -0
- data/frameit/lib/frameit/device_types.rb +159 -0
- data/frameit/lib/frameit/editor.rb +558 -0
- data/frameit/lib/frameit/frame_downloader.rb +86 -0
- data/frameit/lib/frameit/mac_editor.rb +35 -0
- data/frameit/lib/frameit/module.rb +42 -0
- data/frameit/lib/frameit/offsets.rb +28 -0
- data/frameit/lib/frameit/options.rb +112 -0
- data/frameit/lib/frameit/runner.rb +97 -0
- data/frameit/lib/frameit/screenshot.rb +134 -0
- data/frameit/lib/frameit/strings_parser.rb +46 -0
- data/frameit/lib/frameit/template_finder.rb +45 -0
- data/frameit/lib/frameit/trim_box.rb +41 -0
- data/frameit/lib/frameit.rb +13 -0
- data/gym/README.md +17 -0
- data/gym/lib/assets/GymfileTemplate +13 -0
- data/gym/lib/assets/GymfileTemplate.swift +13 -0
- data/gym/lib/assets/wrap_xcodebuild/xcbuild-safe.sh +61 -0
- data/gym/lib/gym/code_signing_mapping.rb +210 -0
- data/gym/lib/gym/commands_generator.rb +79 -0
- data/gym/lib/gym/detect_values.rb +206 -0
- data/gym/lib/gym/error_handler.rb +314 -0
- data/gym/lib/gym/generators/README.md +1 -0
- data/gym/lib/gym/generators/build_command_generator.rb +197 -0
- data/gym/lib/gym/generators/package_command_generator.rb +72 -0
- data/gym/lib/gym/generators/package_command_generator_xcode7.rb +238 -0
- data/gym/lib/gym/manager.rb +22 -0
- data/gym/lib/gym/module.rb +74 -0
- data/gym/lib/gym/options.rb +327 -0
- data/gym/lib/gym/runner.rb +376 -0
- data/gym/lib/gym/xcode.rb +27 -0
- data/gym/lib/gym/xcodebuild_fixes/README.md +9 -0
- data/gym/lib/gym/xcodebuild_fixes/generic_archive_fix.rb +35 -0
- data/gym/lib/gym.rb +9 -0
- data/match/README.md +17 -0
- data/match/lib/assets/MatchfileTemplate +11 -0
- data/match/lib/assets/MatchfileTemplate.swift +9 -0
- data/match/lib/assets/READMETemplate.md +59 -0
- data/match/lib/match/change_password.rb +55 -0
- data/match/lib/match/commands_generator.rb +192 -0
- data/match/lib/match/encryption/interface.rb +17 -0
- data/match/lib/match/encryption/openssl.rb +163 -0
- data/match/lib/match/encryption.rb +52 -0
- data/match/lib/match/generator.rb +124 -0
- data/match/lib/match/importer.rb +165 -0
- data/match/lib/match/migrate.rb +109 -0
- data/match/lib/match/module.rb +85 -0
- data/match/lib/match/nuke.rb +421 -0
- data/match/lib/match/options.rb +347 -0
- data/match/lib/match/runner.rb +472 -0
- data/match/lib/match/setup.rb +40 -0
- data/match/lib/match/spaceship_ensure.rb +103 -0
- data/match/lib/match/storage/git_storage.rb +254 -0
- data/match/lib/match/storage/gitlab/client.rb +102 -0
- data/match/lib/match/storage/gitlab/secure_file.rb +65 -0
- data/match/lib/match/storage/gitlab_secure_files.rb +182 -0
- data/match/lib/match/storage/google_cloud_storage.rb +383 -0
- data/match/lib/match/storage/interface.rb +119 -0
- data/match/lib/match/storage/s3_storage.rb +205 -0
- data/match/lib/match/storage.rb +50 -0
- data/match/lib/match/table_printer.rb +52 -0
- data/match/lib/match/utils.rb +88 -0
- data/match/lib/match.rb +14 -0
- data/pem/README.md +17 -0
- data/pem/lib/pem/commands_generator.rb +48 -0
- data/pem/lib/pem/manager.rb +136 -0
- data/pem/lib/pem/module.rb +19 -0
- data/pem/lib/pem/options.rb +112 -0
- data/pem/lib/pem.rb +4 -0
- data/pilot/README.md +17 -0
- data/pilot/lib/pilot/build_manager.rb +602 -0
- data/pilot/lib/pilot/commands_generator.rb +175 -0
- data/pilot/lib/pilot/manager.rb +95 -0
- data/pilot/lib/pilot/module.rb +11 -0
- data/pilot/lib/pilot/options.rb +336 -0
- data/pilot/lib/pilot/tester_exporter.rb +57 -0
- data/pilot/lib/pilot/tester_importer.rb +53 -0
- data/pilot/lib/pilot/tester_manager.rb +167 -0
- data/pilot/lib/pilot.rb +8 -0
- data/precheck/README.md +17 -0
- data/precheck/lib/assets/PrecheckfileTemplate +27 -0
- data/precheck/lib/assets/PrecheckfileTemplate.swift +19 -0
- data/precheck/lib/precheck/commands_generator.rb +75 -0
- data/precheck/lib/precheck/item_to_check.rb +58 -0
- data/precheck/lib/precheck/module.rb +23 -0
- data/precheck/lib/precheck/options.rb +110 -0
- data/precheck/lib/precheck/rule.rb +171 -0
- data/precheck/lib/precheck/rule_check_result.rb +19 -0
- data/precheck/lib/precheck/rule_processor.rb +265 -0
- data/precheck/lib/precheck/rules/abstract_text_match_rule.rb +80 -0
- data/precheck/lib/precheck/rules/all.rb +1 -0
- data/precheck/lib/precheck/rules/copyright_date_rule.rb +37 -0
- data/precheck/lib/precheck/rules/curse_words_rule.rb +62 -0
- data/precheck/lib/precheck/rules/custom_text_rule.rb +35 -0
- data/precheck/lib/precheck/rules/free_stuff_iap_rule.rb +31 -0
- data/precheck/lib/precheck/rules/future_functionality_rule.rb +33 -0
- data/precheck/lib/precheck/rules/negative_apple_sentiment_rule.rb +37 -0
- data/precheck/lib/precheck/rules/other_platforms_rule.rb +43 -0
- data/precheck/lib/precheck/rules/placeholder_words_rule.rb +31 -0
- data/precheck/lib/precheck/rules/rules_data/curse_word_hashes/en_us.txt +349 -0
- data/precheck/lib/precheck/rules/test_words_rule.rb +30 -0
- data/precheck/lib/precheck/rules/unreachable_urls_rule.rb +47 -0
- data/precheck/lib/precheck/runner.rb +202 -0
- data/precheck/lib/precheck.rb +3 -0
- data/produce/README.md +17 -0
- data/produce/lib/produce/available_default_languages.rb +51 -0
- data/produce/lib/produce/cloud_container.rb +82 -0
- data/produce/lib/produce/commands_generator.rb +337 -0
- data/produce/lib/produce/developer_center.rb +181 -0
- data/produce/lib/produce/group.rb +90 -0
- data/produce/lib/produce/itunes_connect.rb +139 -0
- data/produce/lib/produce/manager.rb +15 -0
- data/produce/lib/produce/merchant.rb +121 -0
- data/produce/lib/produce/module.rb +14 -0
- data/produce/lib/produce/options.rb +184 -0
- data/produce/lib/produce/service.rb +425 -0
- data/produce/lib/produce.rb +6 -0
- data/scan/README.md +17 -0
- data/scan/lib/assets/ScanfileTemplate +16 -0
- data/scan/lib/assets/ScanfileTemplate.swift +13 -0
- data/scan/lib/scan/commands_generator.rb +79 -0
- data/scan/lib/scan/detect_values.rb +244 -0
- data/scan/lib/scan/error_handler.rb +66 -0
- data/scan/lib/scan/manager.rb +38 -0
- data/scan/lib/scan/module.rb +37 -0
- data/scan/lib/scan/options.rb +541 -0
- data/scan/lib/scan/runner.rb +428 -0
- data/scan/lib/scan/slack_poster.rb +63 -0
- data/scan/lib/scan/test_command_generator.rb +262 -0
- data/scan/lib/scan/test_result_parser.rb +33 -0
- data/scan/lib/scan/xcpretty_reporter_options_generator.rb +85 -0
- data/scan/lib/scan.rb +10 -0
- data/screengrab/README.md +17 -0
- data/screengrab/lib/assets/ScreengrabfileTemplate +15 -0
- data/screengrab/lib/assets/ScreengrabfileTemplate.swift +15 -0
- data/screengrab/lib/screengrab/android_environment.rb +43 -0
- data/screengrab/lib/screengrab/commands_generator.rb +71 -0
- data/screengrab/lib/screengrab/dependency_checker.rb +38 -0
- data/screengrab/lib/screengrab/detect_values.rb +16 -0
- data/screengrab/lib/screengrab/module.rb +26 -0
- data/screengrab/lib/screengrab/options.rb +151 -0
- data/screengrab/lib/screengrab/page.html.erb +190 -0
- data/screengrab/lib/screengrab/reports_generator.rb +36 -0
- data/screengrab/lib/screengrab/runner.rb +452 -0
- data/screengrab/lib/screengrab/setup.rb +24 -0
- data/screengrab/lib/screengrab.rb +7 -0
- data/sigh/README.md +17 -0
- data/sigh/lib/assets/resign.sh +932 -0
- data/sigh/lib/sigh/commands_generator.rb +155 -0
- data/sigh/lib/sigh/download_all.rb +120 -0
- data/sigh/lib/sigh/local_manage.rb +145 -0
- data/sigh/lib/sigh/manager.rb +47 -0
- data/sigh/lib/sigh/module.rb +44 -0
- data/sigh/lib/sigh/options.rb +199 -0
- data/sigh/lib/sigh/repair.rb +34 -0
- data/sigh/lib/sigh/resign.rb +220 -0
- data/sigh/lib/sigh/runner.rb +412 -0
- data/sigh/lib/sigh.rb +4 -0
- data/snapshot/README.md +17 -0
- data/snapshot/lib/assets/SnapfileTemplate +38 -0
- data/snapshot/lib/assets/SnapfileTemplate.swift +42 -0
- data/snapshot/lib/assets/SnapshotHelper.swift +309 -0
- data/snapshot/lib/assets/SnapshotHelperXcode8.swift +172 -0
- data/snapshot/lib/snapshot/collector.rb +140 -0
- data/snapshot/lib/snapshot/commands_generator.rb +117 -0
- data/snapshot/lib/snapshot/dependency_checker.rb +69 -0
- data/snapshot/lib/snapshot/detect_values.rb +86 -0
- data/snapshot/lib/snapshot/error_handler.rb +24 -0
- data/snapshot/lib/snapshot/fixes/README.md +5 -0
- data/snapshot/lib/snapshot/fixes/hardware_keyboard_fix.rb +27 -0
- data/snapshot/lib/snapshot/fixes/simulator_shared_pasteboard.rb +16 -0
- data/snapshot/lib/snapshot/fixes/simulator_zoom_fix.rb +27 -0
- data/snapshot/lib/snapshot/latest_os_version.rb +34 -0
- data/snapshot/lib/snapshot/module.rb +44 -0
- data/snapshot/lib/snapshot/options.rb +326 -0
- data/snapshot/lib/snapshot/page.html.erb +285 -0
- data/snapshot/lib/snapshot/reports_generator.rb +154 -0
- data/snapshot/lib/snapshot/reset_simulators.rb +122 -0
- data/snapshot/lib/snapshot/runner.rb +146 -0
- data/snapshot/lib/snapshot/screenshot_flatten.rb +20 -0
- data/snapshot/lib/snapshot/screenshot_rotate.rb +36 -0
- data/snapshot/lib/snapshot/setup.rb +58 -0
- data/snapshot/lib/snapshot/simulator_launchers/launcher_configuration.rb +64 -0
- data/snapshot/lib/snapshot/simulator_launchers/simulator_launcher.rb +219 -0
- data/snapshot/lib/snapshot/simulator_launchers/simulator_launcher_base.rb +220 -0
- data/snapshot/lib/snapshot/simulator_launchers/simulator_launcher_xcode_8.rb +113 -0
- data/snapshot/lib/snapshot/test_command_generator.rb +157 -0
- data/snapshot/lib/snapshot/test_command_generator_base.rb +130 -0
- data/snapshot/lib/snapshot/test_command_generator_xcode_8.rb +70 -0
- data/snapshot/lib/snapshot/update.rb +38 -0
- data/snapshot/lib/snapshot.rb +19 -0
- data/spaceship/README.md +173 -0
- data/spaceship/lib/assets/displayFamilies.json +181 -0
- data/spaceship/lib/assets/languageMapping.json +306 -0
- data/spaceship/lib/assets/languageMappingReadable.json +30 -0
- data/spaceship/lib/spaceship/base.rb +310 -0
- data/spaceship/lib/spaceship/client.rb +988 -0
- data/spaceship/lib/spaceship/commands_generator.rb +55 -0
- data/spaceship/lib/spaceship/connect_api/api_client.rb +356 -0
- data/spaceship/lib/spaceship/connect_api/client.rb +216 -0
- data/spaceship/lib/spaceship/connect_api/file_uploader.rb +99 -0
- data/spaceship/lib/spaceship/connect_api/model.rb +172 -0
- data/spaceship/lib/spaceship/connect_api/models/actor.rb +26 -0
- data/spaceship/lib/spaceship/connect_api/models/age_rating_declaration.rb +147 -0
- data/spaceship/lib/spaceship/connect_api/models/app.rb +482 -0
- data/spaceship/lib/spaceship/connect_api/models/app_category.rb +94 -0
- data/spaceship/lib/spaceship/connect_api/models/app_data_usage.rb +59 -0
- data/spaceship/lib/spaceship/connect_api/models/app_data_usage_category.rb +65 -0
- data/spaceship/lib/spaceship/connect_api/models/app_data_usage_data_protection.rb +27 -0
- data/spaceship/lib/spaceship/connect_api/models/app_data_usage_grouping.rb +18 -0
- data/spaceship/lib/spaceship/connect_api/models/app_data_usage_purposes.rb +37 -0
- data/spaceship/lib/spaceship/connect_api/models/app_data_usages_publish_state.rb +36 -0
- data/spaceship/lib/spaceship/connect_api/models/app_info.rb +112 -0
- data/spaceship/lib/spaceship/connect_api/models/app_info_localization.rb +48 -0
- data/spaceship/lib/spaceship/connect_api/models/app_preview.rb +135 -0
- data/spaceship/lib/spaceship/connect_api/models/app_preview_set.rb +109 -0
- data/spaceship/lib/spaceship/connect_api/models/app_price.rb +22 -0
- data/spaceship/lib/spaceship/connect_api/models/app_price_point.rb +26 -0
- data/spaceship/lib/spaceship/connect_api/models/app_price_tier.rb +12 -0
- data/spaceship/lib/spaceship/connect_api/models/app_screenshot.rb +189 -0
- data/spaceship/lib/spaceship/connect_api/models/app_screenshot_set.rb +169 -0
- data/spaceship/lib/spaceship/connect_api/models/app_store_review_attachment.rb +73 -0
- data/spaceship/lib/spaceship/connect_api/models/app_store_review_detail.rb +53 -0
- data/spaceship/lib/spaceship/connect_api/models/app_store_version.rb +241 -0
- data/spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb +115 -0
- data/spaceship/lib/spaceship/connect_api/models/app_store_version_phased_release.rb +57 -0
- data/spaceship/lib/spaceship/connect_api/models/app_store_version_release_request.rb +12 -0
- data/spaceship/lib/spaceship/connect_api/models/app_store_version_submission.rb +27 -0
- data/spaceship/lib/spaceship/connect_api/models/beta_app_localization.rb +28 -0
- data/spaceship/lib/spaceship/connect_api/models/beta_app_review_detail.rb +32 -0
- data/spaceship/lib/spaceship/connect_api/models/beta_app_review_submission.rb +27 -0
- data/spaceship/lib/spaceship/connect_api/models/beta_build_localization.rb +20 -0
- data/spaceship/lib/spaceship/connect_api/models/beta_build_metric.rb +24 -0
- data/spaceship/lib/spaceship/connect_api/models/beta_feedback.rb +77 -0
- data/spaceship/lib/spaceship/connect_api/models/beta_group.rb +67 -0
- data/spaceship/lib/spaceship/connect_api/models/beta_screenshot.rb +18 -0
- data/spaceship/lib/spaceship/connect_api/models/beta_tester.rb +63 -0
- data/spaceship/lib/spaceship/connect_api/models/beta_tester_metric.rb +44 -0
- data/spaceship/lib/spaceship/connect_api/models/build.rb +195 -0
- data/spaceship/lib/spaceship/connect_api/models/build_beta_detail.rb +69 -0
- data/spaceship/lib/spaceship/connect_api/models/build_bundle.rb +68 -0
- data/spaceship/lib/spaceship/connect_api/models/build_bundle_file_sizes.rb +34 -0
- data/spaceship/lib/spaceship/connect_api/models/build_delivery.rb +38 -0
- data/spaceship/lib/spaceship/connect_api/models/bundle_id.rb +93 -0
- data/spaceship/lib/spaceship/connect_api/models/bundle_id_capability.rb +136 -0
- data/spaceship/lib/spaceship/connect_api/models/capabilities.rb +27 -0
- data/spaceship/lib/spaceship/connect_api/models/certificate.rb +110 -0
- data/spaceship/lib/spaceship/connect_api/models/custom_app_organization.rb +43 -0
- data/spaceship/lib/spaceship/connect_api/models/custom_app_user.rb +41 -0
- data/spaceship/lib/spaceship/connect_api/models/device.rb +133 -0
- data/spaceship/lib/spaceship/connect_api/models/idfa_declaration.rb +43 -0
- data/spaceship/lib/spaceship/connect_api/models/pre_release_version.rb +20 -0
- data/spaceship/lib/spaceship/connect_api/models/profile.rb +111 -0
- data/spaceship/lib/spaceship/connect_api/models/reset_ratings_request.rb +27 -0
- data/spaceship/lib/spaceship/connect_api/models/resolution_center_message.rb +29 -0
- data/spaceship/lib/spaceship/connect_api/models/resolution_center_thread.rb +67 -0
- data/spaceship/lib/spaceship/connect_api/models/review_rejection.rb +19 -0
- data/spaceship/lib/spaceship/connect_api/models/review_submission.rb +86 -0
- data/spaceship/lib/spaceship/connect_api/models/review_submission_item.rb +40 -0
- data/spaceship/lib/spaceship/connect_api/models/sandbox_tester.rb +67 -0
- data/spaceship/lib/spaceship/connect_api/models/territory.rb +28 -0
- data/spaceship/lib/spaceship/connect_api/models/user.rb +72 -0
- data/spaceship/lib/spaceship/connect_api/models/user_invitation.rb +96 -0
- data/spaceship/lib/spaceship/connect_api/provisioning/client.rb +92 -0
- data/spaceship/lib/spaceship/connect_api/provisioning/provisioning.rb +264 -0
- data/spaceship/lib/spaceship/connect_api/response.rb +86 -0
- data/spaceship/lib/spaceship/connect_api/spaceship.rb +102 -0
- data/spaceship/lib/spaceship/connect_api/testflight/client.rb +27 -0
- data/spaceship/lib/spaceship/connect_api/testflight/testflight.rb +513 -0
- data/spaceship/lib/spaceship/connect_api/token.rb +120 -0
- data/spaceship/lib/spaceship/connect_api/token_refresh_middleware.rb +24 -0
- data/spaceship/lib/spaceship/connect_api/tunes/client.rb +27 -0
- data/spaceship/lib/spaceship/connect_api/tunes/tunes.rb +1281 -0
- data/spaceship/lib/spaceship/connect_api/users/client.rb +27 -0
- data/spaceship/lib/spaceship/connect_api/users/users.rb +135 -0
- data/spaceship/lib/spaceship/connect_api.rb +132 -0
- data/spaceship/lib/spaceship/du/du_client.rb +138 -0
- data/spaceship/lib/spaceship/du/upload_file.rb +58 -0
- data/spaceship/lib/spaceship/du/utilities.rb +99 -0
- data/spaceship/lib/spaceship/errors.rb +135 -0
- data/spaceship/lib/spaceship/globals.rb +21 -0
- data/spaceship/lib/spaceship/hashcash.rb +52 -0
- data/spaceship/lib/spaceship/helper/net_http_generic_request.rb +20 -0
- data/spaceship/lib/spaceship/helper/plist_middleware.rb +16 -0
- data/spaceship/lib/spaceship/helper/rels_middleware.rb +28 -0
- data/spaceship/lib/spaceship/launcher.rb +99 -0
- data/spaceship/lib/spaceship/module.rb +8 -0
- data/spaceship/lib/spaceship/playground.rb +75 -0
- data/spaceship/lib/spaceship/portal/app.rb +201 -0
- data/spaceship/lib/spaceship/portal/app_group.rb +73 -0
- data/spaceship/lib/spaceship/portal/app_service.rb +87 -0
- data/spaceship/lib/spaceship/portal/certificate.rb +366 -0
- data/spaceship/lib/spaceship/portal/cloud_container.rb +74 -0
- data/spaceship/lib/spaceship/portal/device.rb +191 -0
- data/spaceship/lib/spaceship/portal/invite.rb +53 -0
- data/spaceship/lib/spaceship/portal/key.rb +101 -0
- data/spaceship/lib/spaceship/portal/legacy_wrapper.rb +21 -0
- data/spaceship/lib/spaceship/portal/merchant.rb +86 -0
- data/spaceship/lib/spaceship/portal/passbook.rb +78 -0
- data/spaceship/lib/spaceship/portal/person.rb +62 -0
- data/spaceship/lib/spaceship/portal/persons.rb +67 -0
- data/spaceship/lib/spaceship/portal/portal.rb +17 -0
- data/spaceship/lib/spaceship/portal/portal_base.rb +16 -0
- data/spaceship/lib/spaceship/portal/portal_client.rb +862 -0
- data/spaceship/lib/spaceship/portal/provisioning_profile.rb +559 -0
- data/spaceship/lib/spaceship/portal/provisioning_profile_template.rb +52 -0
- data/spaceship/lib/spaceship/portal/spaceship.rb +154 -0
- data/spaceship/lib/spaceship/portal/ui/select_team.rb +116 -0
- data/spaceship/lib/spaceship/portal/website_push.rb +88 -0
- data/spaceship/lib/spaceship/provider.rb +13 -0
- data/spaceship/lib/spaceship/spaceauth_runner.rb +97 -0
- data/spaceship/lib/spaceship/stats_middleware.rb +65 -0
- data/spaceship/lib/spaceship/test_flight/app_test_info.rb +40 -0
- data/spaceship/lib/spaceship/test_flight/base.rb +39 -0
- data/spaceship/lib/spaceship/test_flight/beta_review_info.rb +19 -0
- data/spaceship/lib/spaceship/test_flight/build.rb +242 -0
- data/spaceship/lib/spaceship/test_flight/build_trains.rb +50 -0
- data/spaceship/lib/spaceship/test_flight/client.rb +361 -0
- data/spaceship/lib/spaceship/test_flight/export_compliance.rb +12 -0
- data/spaceship/lib/spaceship/test_flight/group.rb +131 -0
- data/spaceship/lib/spaceship/test_flight/test_info.rb +56 -0
- data/spaceship/lib/spaceship/test_flight/tester.rb +136 -0
- data/spaceship/lib/spaceship/test_flight.rb +10 -0
- data/spaceship/lib/spaceship/tunes/app_analytics.rb +168 -0
- data/spaceship/lib/spaceship/tunes/app_details.rb +147 -0
- data/spaceship/lib/spaceship/tunes/app_image.rb +51 -0
- data/spaceship/lib/spaceship/tunes/app_ratings.rb +58 -0
- data/spaceship/lib/spaceship/tunes/app_review.rb +55 -0
- data/spaceship/lib/spaceship/tunes/app_review_attachment.rb +49 -0
- data/spaceship/lib/spaceship/tunes/app_screenshot.rb +12 -0
- data/spaceship/lib/spaceship/tunes/app_status.rb +63 -0
- data/spaceship/lib/spaceship/tunes/app_submission.rb +161 -0
- data/spaceship/lib/spaceship/tunes/app_trailer.rb +64 -0
- data/spaceship/lib/spaceship/tunes/app_version.rb +970 -0
- data/spaceship/lib/spaceship/tunes/app_version_common.rb +35 -0
- data/spaceship/lib/spaceship/tunes/app_version_generated_promocodes.rb +28 -0
- data/spaceship/lib/spaceship/tunes/app_version_history.rb +52 -0
- data/spaceship/lib/spaceship/tunes/app_version_promocodes.rb +27 -0
- data/spaceship/lib/spaceship/tunes/app_version_ref.rb +15 -0
- data/spaceship/lib/spaceship/tunes/app_version_states_history.rb +27 -0
- data/spaceship/lib/spaceship/tunes/application.rb +453 -0
- data/spaceship/lib/spaceship/tunes/availability.rb +164 -0
- data/spaceship/lib/spaceship/tunes/b2b_organization.rb +50 -0
- data/spaceship/lib/spaceship/tunes/b2b_user.rb +30 -0
- data/spaceship/lib/spaceship/tunes/build.rb +263 -0
- data/spaceship/lib/spaceship/tunes/build_details.rb +184 -0
- data/spaceship/lib/spaceship/tunes/build_train.rb +181 -0
- data/spaceship/lib/spaceship/tunes/developer_response.rb +23 -0
- data/spaceship/lib/spaceship/tunes/device_type.rb +17 -0
- data/spaceship/lib/spaceship/tunes/display_family.rb +84 -0
- data/spaceship/lib/spaceship/tunes/errors.rb +17 -0
- data/spaceship/lib/spaceship/tunes/iap.rb +168 -0
- data/spaceship/lib/spaceship/tunes/iap_detail.rb +264 -0
- data/spaceship/lib/spaceship/tunes/iap_families.rb +68 -0
- data/spaceship/lib/spaceship/tunes/iap_family_details.rb +90 -0
- data/spaceship/lib/spaceship/tunes/iap_family_list.rb +28 -0
- data/spaceship/lib/spaceship/tunes/iap_list.rb +76 -0
- data/spaceship/lib/spaceship/tunes/iap_status.rb +56 -0
- data/spaceship/lib/spaceship/tunes/iap_subscription_pricing_info.rb +46 -0
- data/spaceship/lib/spaceship/tunes/iap_subscription_pricing_tier.rb +25 -0
- data/spaceship/lib/spaceship/tunes/iap_type.rb +45 -0
- data/spaceship/lib/spaceship/tunes/language_converter.rb +65 -0
- data/spaceship/lib/spaceship/tunes/language_item.rb +61 -0
- data/spaceship/lib/spaceship/tunes/legacy_wrapper.rb +13 -0
- data/spaceship/lib/spaceship/tunes/member.rb +84 -0
- data/spaceship/lib/spaceship/tunes/members.rb +35 -0
- data/spaceship/lib/spaceship/tunes/pricing_info.rb +42 -0
- data/spaceship/lib/spaceship/tunes/pricing_tier.rb +25 -0
- data/spaceship/lib/spaceship/tunes/sandbox_tester.rb +74 -0
- data/spaceship/lib/spaceship/tunes/spaceship.rb +39 -0
- data/spaceship/lib/spaceship/tunes/territory.rb +39 -0
- data/spaceship/lib/spaceship/tunes/transit_app_file.rb +23 -0
- data/spaceship/lib/spaceship/tunes/tunes.rb +34 -0
- data/spaceship/lib/spaceship/tunes/tunes_base.rb +17 -0
- data/spaceship/lib/spaceship/tunes/tunes_client.rb +1705 -0
- data/spaceship/lib/spaceship/tunes/version_set.rb +26 -0
- data/spaceship/lib/spaceship/two_step_or_factor_client.rb +380 -0
- data/spaceship/lib/spaceship/ui.rb +27 -0
- data/spaceship/lib/spaceship/upgrade_2fa_later_client.rb +91 -0
- data/spaceship/lib/spaceship.rb +31 -0
- data/supply/README.md +17 -0
- data/supply/lib/supply/apk_listing.rb +14 -0
- data/supply/lib/supply/client.rb +587 -0
- data/supply/lib/supply/commands_generator.rb +68 -0
- data/supply/lib/supply/languages.rb +88 -0
- data/supply/lib/supply/listing.rb +32 -0
- data/supply/lib/supply/options.rb +344 -0
- data/supply/lib/supply/reader.rb +41 -0
- data/supply/lib/supply/release_listing.rb +18 -0
- data/supply/lib/supply/setup.rb +122 -0
- data/supply/lib/supply/uploader.rb +489 -0
- data/supply/lib/supply.rb +53 -0
- data/trainer/lib/assets/junit.xml.erb +28 -0
- data/trainer/lib/trainer/commands_generator.rb +51 -0
- data/trainer/lib/trainer/junit_generator.rb +31 -0
- data/trainer/lib/trainer/module.rb +10 -0
- data/trainer/lib/trainer/options.rb +66 -0
- data/trainer/lib/trainer/test_parser.rb +398 -0
- data/trainer/lib/trainer/xcresult.rb +403 -0
- data/trainer/lib/trainer.rb +7 -0
- metadata +1909 -0
@@ -0,0 +1,326 @@
|
|
1
|
+
require 'fastlane_core/configuration/config_item'
|
2
|
+
require 'fastlane_core/device_manager'
|
3
|
+
require 'fastlane/helper/xcodebuild_formatter_helper'
|
4
|
+
require 'credentials_manager/appfile_config'
|
5
|
+
require_relative 'module'
|
6
|
+
|
7
|
+
module Snapshot
|
8
|
+
class Options
|
9
|
+
def self.verify_type(item_name, acceptable_types, value)
|
10
|
+
type_ok = [Array, String].any? { |type| value.kind_of?(type) }
|
11
|
+
UI.user_error!("'#{item_name}' should be of type #{acceptable_types.join(' or ')} but found: #{value.class.name}") unless type_ok
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.available_options
|
15
|
+
@options ||= plain_options
|
16
|
+
end
|
17
|
+
|
18
|
+
def self.plain_options
|
19
|
+
output_directory = (File.directory?("fastlane") ? "fastlane/screenshots" : "screenshots")
|
20
|
+
|
21
|
+
[
|
22
|
+
FastlaneCore::ConfigItem.new(key: :workspace,
|
23
|
+
short_option: "-w",
|
24
|
+
env_name: "SNAPSHOT_WORKSPACE",
|
25
|
+
optional: true,
|
26
|
+
description: "Path the workspace file",
|
27
|
+
verify_block: proc do |value|
|
28
|
+
v = File.expand_path(value.to_s)
|
29
|
+
UI.user_error!("Workspace file not found at path '#{v}'") unless File.exist?(v)
|
30
|
+
UI.user_error!("Workspace file invalid") unless File.directory?(v)
|
31
|
+
UI.user_error!("Workspace file is not a workspace, must end with .xcworkspace") unless v.include?(".xcworkspace")
|
32
|
+
end),
|
33
|
+
FastlaneCore::ConfigItem.new(key: :project,
|
34
|
+
short_option: "-p",
|
35
|
+
optional: true,
|
36
|
+
env_name: "SNAPSHOT_PROJECT",
|
37
|
+
description: "Path the project file",
|
38
|
+
verify_block: proc do |value|
|
39
|
+
v = File.expand_path(value.to_s)
|
40
|
+
UI.user_error!("Project file not found at path '#{v}'") unless File.exist?(v)
|
41
|
+
UI.user_error!("Project file invalid") unless File.directory?(v)
|
42
|
+
UI.user_error!("Project file is not a project file, must end with .xcodeproj") unless v.include?(".xcodeproj")
|
43
|
+
end),
|
44
|
+
FastlaneCore::ConfigItem.new(key: :xcargs,
|
45
|
+
short_option: "-X",
|
46
|
+
env_name: "SNAPSHOT_XCARGS",
|
47
|
+
description: "Pass additional arguments to xcodebuild for the test phase. Be sure to quote the setting names and values e.g. OTHER_LDFLAGS=\"-ObjC -lstdc++\"",
|
48
|
+
optional: true,
|
49
|
+
type: :shell_string),
|
50
|
+
FastlaneCore::ConfigItem.new(key: :xcconfig,
|
51
|
+
short_option: "-y",
|
52
|
+
env_name: "SNAPSHOT_XCCONFIG",
|
53
|
+
description: "Use an extra XCCONFIG file to build your app",
|
54
|
+
optional: true,
|
55
|
+
verify_block: proc do |value|
|
56
|
+
UI.user_error!("File not found at path '#{File.expand_path(value)}'") unless File.exist?(value)
|
57
|
+
end),
|
58
|
+
FastlaneCore::ConfigItem.new(key: :devices,
|
59
|
+
description: "A list of devices you want to take the screenshots from",
|
60
|
+
short_option: "-d",
|
61
|
+
type: Array,
|
62
|
+
optional: true,
|
63
|
+
verify_block: proc do |value|
|
64
|
+
available = FastlaneCore::DeviceManager.simulators
|
65
|
+
value.each do |current|
|
66
|
+
device = current.strip
|
67
|
+
unless available.any? { |d| d.name.strip == device } || device == "Mac"
|
68
|
+
UI.user_error!("Device '#{device}' not in list of available simulators '#{available.join(', ')}'")
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end),
|
72
|
+
FastlaneCore::ConfigItem.new(key: :languages,
|
73
|
+
description: "A list of languages which should be used",
|
74
|
+
short_option: "-g",
|
75
|
+
type: Array,
|
76
|
+
default_value: ['en-US']),
|
77
|
+
FastlaneCore::ConfigItem.new(key: :launch_arguments,
|
78
|
+
env_name: 'SNAPSHOT_LAUNCH_ARGUMENTS',
|
79
|
+
description: "A list of launch arguments which should be used",
|
80
|
+
short_option: "-m",
|
81
|
+
type: Array,
|
82
|
+
default_value: ['']),
|
83
|
+
FastlaneCore::ConfigItem.new(key: :output_directory,
|
84
|
+
short_option: "-o",
|
85
|
+
env_name: "SNAPSHOT_OUTPUT_DIRECTORY",
|
86
|
+
description: "The directory where to store the screenshots",
|
87
|
+
default_value: output_directory,
|
88
|
+
default_value_dynamic: true),
|
89
|
+
FastlaneCore::ConfigItem.new(key: :output_simulator_logs,
|
90
|
+
env_name: "SNAPSHOT_OUTPUT_SIMULATOR_LOGS",
|
91
|
+
description: "If the logs generated by the app (e.g. using NSLog, perror, etc.) in the Simulator should be written to the output_directory",
|
92
|
+
type: Boolean,
|
93
|
+
default_value: false,
|
94
|
+
optional: true),
|
95
|
+
FastlaneCore::ConfigItem.new(key: :ios_version,
|
96
|
+
description: "By default, the latest version should be used automatically. If you want to change it, do it here",
|
97
|
+
short_option: "-i",
|
98
|
+
optional: true),
|
99
|
+
FastlaneCore::ConfigItem.new(key: :skip_open_summary,
|
100
|
+
env_name: 'SNAPSHOT_SKIP_OPEN_SUMMARY',
|
101
|
+
description: "Don't open the HTML summary after running _snapshot_",
|
102
|
+
default_value: false,
|
103
|
+
is_string: false),
|
104
|
+
FastlaneCore::ConfigItem.new(key: :skip_helper_version_check,
|
105
|
+
env_name: 'SNAPSHOT_SKIP_SKIP_HELPER_VERSION_CHECK',
|
106
|
+
description: "Do not check for most recent SnapshotHelper code",
|
107
|
+
default_value: false,
|
108
|
+
is_string: false),
|
109
|
+
FastlaneCore::ConfigItem.new(key: :clear_previous_screenshots,
|
110
|
+
env_name: 'SNAPSHOT_CLEAR_PREVIOUS_SCREENSHOTS',
|
111
|
+
description: "Enabling this option will automatically clear previously generated screenshots before running snapshot",
|
112
|
+
default_value: false,
|
113
|
+
is_string: false),
|
114
|
+
FastlaneCore::ConfigItem.new(key: :reinstall_app,
|
115
|
+
env_name: 'SNAPSHOT_REINSTALL_APP',
|
116
|
+
description: "Enabling this option will automatically uninstall the application before running it",
|
117
|
+
default_value: false,
|
118
|
+
is_string: false),
|
119
|
+
FastlaneCore::ConfigItem.new(key: :erase_simulator,
|
120
|
+
env_name: 'SNAPSHOT_ERASE_SIMULATOR',
|
121
|
+
description: "Enabling this option will automatically erase the simulator before running the application",
|
122
|
+
default_value: false,
|
123
|
+
is_string: false),
|
124
|
+
FastlaneCore::ConfigItem.new(key: :headless,
|
125
|
+
env_name: 'SNAPSHOT_HEADLESS',
|
126
|
+
description: "Enabling this option will prevent displaying the simulator window",
|
127
|
+
default_value: true,
|
128
|
+
type: Boolean),
|
129
|
+
FastlaneCore::ConfigItem.new(key: :override_status_bar,
|
130
|
+
env_name: 'SNAPSHOT_OVERRIDE_STATUS_BAR',
|
131
|
+
description: "Enabling this option will automatically override the status bar to show 9:41 AM, full battery, and full reception (Adjust 'SNAPSHOT_SIMULATOR_WAIT_FOR_BOOT_TIMEOUT' environment variable if override status bar is not working. Might be because simulator is not fully booted. Defaults to 10 seconds)",
|
132
|
+
default_value: false,
|
133
|
+
is_string: false),
|
134
|
+
FastlaneCore::ConfigItem.new(key: :override_status_bar_arguments,
|
135
|
+
env_name: 'SNAPSHOT_OVERRIDE_STATUS_BAR_ARGUMENTS',
|
136
|
+
description: "Fully customize the status bar by setting each option here. Requires `override_status_bar` to be set to `true`. See `xcrun simctl status_bar --help`",
|
137
|
+
optional: true,
|
138
|
+
type: String),
|
139
|
+
FastlaneCore::ConfigItem.new(key: :localize_simulator,
|
140
|
+
env_name: 'SNAPSHOT_LOCALIZE_SIMULATOR',
|
141
|
+
description: "Enabling this option will configure the Simulator's system language",
|
142
|
+
default_value: false,
|
143
|
+
is_string: false),
|
144
|
+
FastlaneCore::ConfigItem.new(key: :dark_mode,
|
145
|
+
env_name: 'SNAPSHOT_DARK_MODE',
|
146
|
+
description: "Enabling this option will configure the Simulator to be in dark mode (false for light, true for dark)",
|
147
|
+
optional: true,
|
148
|
+
type: Boolean),
|
149
|
+
FastlaneCore::ConfigItem.new(key: :app_identifier,
|
150
|
+
env_name: 'SNAPSHOT_APP_IDENTIFIER',
|
151
|
+
short_option: "-a",
|
152
|
+
optional: true,
|
153
|
+
description: "The bundle identifier of the app to uninstall (only needed when enabling reinstall_app)",
|
154
|
+
code_gen_sensitive: true,
|
155
|
+
# This incorrect env name is here for backwards compatibility
|
156
|
+
default_value: ENV["SNAPSHOT_APP_IDENTITIFER"] || CredentialsManager::AppfileConfig.try_fetch_value(:app_identifier),
|
157
|
+
default_value_dynamic: true),
|
158
|
+
FastlaneCore::ConfigItem.new(key: :add_photos,
|
159
|
+
env_name: 'SNAPSHOT_PHOTOS',
|
160
|
+
short_option: "-j",
|
161
|
+
description: "A list of photos that should be added to the simulator before running the application",
|
162
|
+
type: Array,
|
163
|
+
optional: true),
|
164
|
+
FastlaneCore::ConfigItem.new(key: :add_videos,
|
165
|
+
env_name: 'SNAPSHOT_VIDEOS',
|
166
|
+
short_option: "-u",
|
167
|
+
description: "A list of videos that should be added to the simulator before running the application",
|
168
|
+
type: Array,
|
169
|
+
optional: true),
|
170
|
+
FastlaneCore::ConfigItem.new(key: :html_template,
|
171
|
+
env_name: 'SNAPSHOT_HTML_TEMPLATE',
|
172
|
+
short_option: "-e",
|
173
|
+
description: "A path to screenshots.html template",
|
174
|
+
optional: true),
|
175
|
+
|
176
|
+
# Everything around building
|
177
|
+
FastlaneCore::ConfigItem.new(key: :buildlog_path,
|
178
|
+
short_option: "-l",
|
179
|
+
env_name: "SNAPSHOT_BUILDLOG_PATH",
|
180
|
+
description: "The directory where to store the build log",
|
181
|
+
default_value: "#{FastlaneCore::Helper.buildlog_path}/snapshot",
|
182
|
+
default_value_dynamic: true),
|
183
|
+
FastlaneCore::ConfigItem.new(key: :clean,
|
184
|
+
short_option: "-c",
|
185
|
+
env_name: "SNAPSHOT_CLEAN",
|
186
|
+
description: "Should the project be cleaned before building it?",
|
187
|
+
is_string: false,
|
188
|
+
default_value: false),
|
189
|
+
FastlaneCore::ConfigItem.new(key: :test_without_building,
|
190
|
+
short_option: "-T",
|
191
|
+
env_name: "SNAPSHOT_TEST_WITHOUT_BUILDING",
|
192
|
+
description: "Test without building, requires a derived data path",
|
193
|
+
is_string: false,
|
194
|
+
type: Boolean,
|
195
|
+
optional: true),
|
196
|
+
FastlaneCore::ConfigItem.new(key: :configuration,
|
197
|
+
short_option: "-q",
|
198
|
+
env_name: "SNAPSHOT_CONFIGURATION",
|
199
|
+
description: "The configuration to use when building the app. Defaults to 'Release'",
|
200
|
+
default_value_dynamic: true,
|
201
|
+
optional: true),
|
202
|
+
FastlaneCore::ConfigItem.new(key: :sdk,
|
203
|
+
short_option: "-k",
|
204
|
+
env_name: "SNAPSHOT_SDK",
|
205
|
+
description: "The SDK that should be used for building the application",
|
206
|
+
optional: true),
|
207
|
+
FastlaneCore::ConfigItem.new(key: :scheme,
|
208
|
+
short_option: "-s",
|
209
|
+
env_name: 'SNAPSHOT_SCHEME',
|
210
|
+
description: "The scheme you want to use, this must be the scheme for the UI Tests",
|
211
|
+
optional: true), # optional true because we offer a picker to the user
|
212
|
+
FastlaneCore::ConfigItem.new(key: :number_of_retries,
|
213
|
+
short_option: "-n",
|
214
|
+
env_name: 'SNAPSHOT_NUMBER_OF_RETRIES',
|
215
|
+
description: "The number of times a test can fail before snapshot should stop retrying",
|
216
|
+
type: Integer,
|
217
|
+
default_value: 1),
|
218
|
+
FastlaneCore::ConfigItem.new(key: :stop_after_first_error,
|
219
|
+
env_name: 'SNAPSHOT_BREAK_ON_FIRST_ERROR',
|
220
|
+
description: "Should snapshot stop immediately after the tests completely failed on one device?",
|
221
|
+
default_value: false,
|
222
|
+
is_string: false),
|
223
|
+
FastlaneCore::ConfigItem.new(key: :derived_data_path,
|
224
|
+
short_option: "-f",
|
225
|
+
env_name: "SNAPSHOT_DERIVED_DATA_PATH",
|
226
|
+
description: "The directory where build products and other derived data will go",
|
227
|
+
optional: true),
|
228
|
+
FastlaneCore::ConfigItem.new(key: :result_bundle,
|
229
|
+
short_option: "-z",
|
230
|
+
env_name: "SNAPSHOT_RESULT_BUNDLE",
|
231
|
+
is_string: false,
|
232
|
+
description: "Should an Xcode result bundle be generated in the output directory",
|
233
|
+
default_value: false,
|
234
|
+
optional: true),
|
235
|
+
FastlaneCore::ConfigItem.new(key: :test_target_name,
|
236
|
+
env_name: "SNAPSHOT_TEST_TARGET_NAME",
|
237
|
+
description: "The name of the target you want to test (if you desire to override the Target Application from Xcode)",
|
238
|
+
optional: true),
|
239
|
+
FastlaneCore::ConfigItem.new(key: :namespace_log_files,
|
240
|
+
env_name: "SNAPSHOT_NAMESPACE_LOG_FILES",
|
241
|
+
description: "Separate the log files per device and per language",
|
242
|
+
optional: true,
|
243
|
+
is_string: false),
|
244
|
+
FastlaneCore::ConfigItem.new(key: :concurrent_simulators,
|
245
|
+
env_name: "SNAPSHOT_EXECUTE_CONCURRENT_SIMULATORS",
|
246
|
+
description: "Take snapshots on multiple simulators concurrently. Note: This option is only applicable when running against Xcode 9",
|
247
|
+
default_value: true,
|
248
|
+
is_string: false),
|
249
|
+
FastlaneCore::ConfigItem.new(key: :disable_slide_to_type,
|
250
|
+
env_name: "SNAPSHOT_DISABLE_SLIDE_TO_TYPE",
|
251
|
+
description: "Disable the simulator from showing the 'Slide to type' prompt",
|
252
|
+
default_value: false,
|
253
|
+
optional: true,
|
254
|
+
is_string: false),
|
255
|
+
FastlaneCore::ConfigItem.new(key: :cloned_source_packages_path,
|
256
|
+
env_name: "SNAPSHOT_CLONED_SOURCE_PACKAGES_PATH",
|
257
|
+
description: "Sets a custom path for Swift Package Manager dependencies",
|
258
|
+
type: String,
|
259
|
+
optional: true),
|
260
|
+
FastlaneCore::ConfigItem.new(key: :skip_package_dependencies_resolution,
|
261
|
+
env_name: "SNAPSHOT_SKIP_PACKAGE_DEPENDENCIES_RESOLUTION",
|
262
|
+
description: "Skips resolution of Swift Package Manager dependencies",
|
263
|
+
type: Boolean,
|
264
|
+
default_value: false),
|
265
|
+
FastlaneCore::ConfigItem.new(key: :disable_package_automatic_updates,
|
266
|
+
env_name: "SNAPSHOT_DISABLE_PACKAGE_AUTOMATIC_UPDATES",
|
267
|
+
description: "Prevents packages from automatically being resolved to versions other than those recorded in the `Package.resolved` file",
|
268
|
+
type: Boolean,
|
269
|
+
default_value: false),
|
270
|
+
FastlaneCore::ConfigItem.new(key: :testplan,
|
271
|
+
env_name: "SNAPSHOT_TESTPLAN",
|
272
|
+
description: "The testplan associated with the scheme that should be used for testing",
|
273
|
+
is_string: true,
|
274
|
+
optional: true),
|
275
|
+
FastlaneCore::ConfigItem.new(key: :only_testing,
|
276
|
+
env_name: "SNAPSHOT_ONLY_TESTING",
|
277
|
+
description: "Array of strings matching Test Bundle/Test Suite/Test Cases to run",
|
278
|
+
optional: true,
|
279
|
+
is_string: false,
|
280
|
+
verify_block: proc do |value|
|
281
|
+
verify_type('only_testing', [Array, String], value)
|
282
|
+
end),
|
283
|
+
FastlaneCore::ConfigItem.new(key: :skip_testing,
|
284
|
+
env_name: "SNAPSHOT_SKIP_TESTING",
|
285
|
+
description: "Array of strings matching Test Bundle/Test Suite/Test Cases to skip",
|
286
|
+
optional: true,
|
287
|
+
is_string: false,
|
288
|
+
verify_block: proc do |value|
|
289
|
+
verify_type('skip_testing', [Array, String], value)
|
290
|
+
end),
|
291
|
+
|
292
|
+
FastlaneCore::ConfigItem.new(key: :xcodebuild_formatter,
|
293
|
+
env_names: ["SNAPSHOT_XCODEBUILD_FORMATTER", "FASTLANE_XCODEBUILD_FORMATTER"],
|
294
|
+
description: "xcodebuild formatter to use (ex: 'xcbeautify', 'xcbeautify --quieter', 'xcpretty', 'xcpretty -test'). Use empty string (ex: '') to disable any formatter (More information: https://docs.fastlane.tools/best-practices/xcodebuild-formatters/)",
|
295
|
+
type: String,
|
296
|
+
default_value: Fastlane::Helper::XcodebuildFormatterHelper.xcbeautify_installed? ? 'xcbeautify' : 'xcpretty',
|
297
|
+
default_value_dynamic: true),
|
298
|
+
|
299
|
+
# xcpretty
|
300
|
+
FastlaneCore::ConfigItem.new(key: :xcpretty_args,
|
301
|
+
short_option: "-x",
|
302
|
+
env_name: "SNAPSHOT_XCPRETTY_ARGS",
|
303
|
+
deprecated: "Use `xcodebuild_formatter: ''` instead",
|
304
|
+
description: "Additional xcpretty arguments",
|
305
|
+
is_string: true,
|
306
|
+
optional: true),
|
307
|
+
FastlaneCore::ConfigItem.new(key: :disable_xcpretty,
|
308
|
+
env_name: "SNAPSHOT_DISABLE_XCPRETTY",
|
309
|
+
description: "Disable xcpretty formatting of build",
|
310
|
+
type: Boolean,
|
311
|
+
optional: true),
|
312
|
+
|
313
|
+
FastlaneCore::ConfigItem.new(key: :suppress_xcode_output,
|
314
|
+
env_name: "SNAPSHOT_SUPPRESS_XCODE_OUTPUT",
|
315
|
+
description: "Suppress the output of xcodebuild to stdout. Output is still saved in buildlog_path",
|
316
|
+
type: Boolean,
|
317
|
+
optional: true),
|
318
|
+
FastlaneCore::ConfigItem.new(key: :use_system_scm,
|
319
|
+
env_name: "SNAPSHOT_USE_SYSTEM_SCM",
|
320
|
+
description: "Lets xcodebuild use system's scm configuration",
|
321
|
+
type: Boolean,
|
322
|
+
default_value: false)
|
323
|
+
]
|
324
|
+
end
|
325
|
+
end
|
326
|
+
end
|
@@ -0,0 +1,285 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>fastlane/snapshot</title>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
<style type="text/css">
|
7
|
+
* {
|
8
|
+
font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
|
9
|
+
font-weight: 300;
|
10
|
+
}
|
11
|
+
#sortMenu {
|
12
|
+
overflow: hidden;
|
13
|
+
border: 1px solid #ccc;
|
14
|
+
background-color: #f1f1f1;
|
15
|
+
display: none;
|
16
|
+
}
|
17
|
+
#sortMenu button {
|
18
|
+
background-color: inherit;
|
19
|
+
float: left;
|
20
|
+
border: none;
|
21
|
+
outline: none;
|
22
|
+
cursor: pointer;
|
23
|
+
padding: 14px 16px;
|
24
|
+
font-size: 17px;
|
25
|
+
}
|
26
|
+
#sortMenu button:hover {
|
27
|
+
background-color: #ddd;
|
28
|
+
}
|
29
|
+
#sortMenu button.active {
|
30
|
+
background-color: #ccc;
|
31
|
+
}
|
32
|
+
.deviceName {
|
33
|
+
display: block;
|
34
|
+
font-size: 30px;
|
35
|
+
padding-bottom: 24px;
|
36
|
+
padding-top: 45px;
|
37
|
+
}
|
38
|
+
.screenshot {
|
39
|
+
cursor: pointer;
|
40
|
+
border: 1px #EEE solid;
|
41
|
+
z-index: 0;
|
42
|
+
}
|
43
|
+
.caption {
|
44
|
+
font-size: 24px;
|
45
|
+
padding-bottom: 24px;
|
46
|
+
padding-top: 30px;
|
47
|
+
}
|
48
|
+
h1, h2 {
|
49
|
+
font-weight: bold;
|
50
|
+
}
|
51
|
+
th {
|
52
|
+
text-align: left;
|
53
|
+
}
|
54
|
+
td {
|
55
|
+
text-align: center;
|
56
|
+
min-width: 200px;
|
57
|
+
}
|
58
|
+
#overlay {
|
59
|
+
position:fixed;
|
60
|
+
top:0;
|
61
|
+
left:0;
|
62
|
+
background:rgba(0,0,0,0.8);
|
63
|
+
z-index:5;
|
64
|
+
width:100%;
|
65
|
+
height:100%;
|
66
|
+
display:none;
|
67
|
+
cursor: zoom-out;
|
68
|
+
text-align: center;
|
69
|
+
}
|
70
|
+
#imageDisplay {
|
71
|
+
height: auto;
|
72
|
+
width: auto;
|
73
|
+
z-index: 10;
|
74
|
+
cursor: pointer;
|
75
|
+
}
|
76
|
+
#imageInfo {
|
77
|
+
background: none repeat scroll 0 0 rgba(0, 0, 0, 0.2);
|
78
|
+
border-radius: 5px;
|
79
|
+
color: white;
|
80
|
+
margin: 20px;
|
81
|
+
padding: 10px;
|
82
|
+
position: absolute;
|
83
|
+
right: 0;
|
84
|
+
top: 0;
|
85
|
+
width: 250px;
|
86
|
+
z-index: -1;
|
87
|
+
}
|
88
|
+
#imageInfo:hover {
|
89
|
+
z-index: 20;
|
90
|
+
}
|
91
|
+
</style>
|
92
|
+
</head>
|
93
|
+
<body>
|
94
|
+
<div id="sortMenu">
|
95
|
+
<button id="defaultTab" class="tabLink" onclick="openTab(event, 'byLanguage')">By Language</button>
|
96
|
+
<button class="tabLink" onclick="openTab(event, 'byScreen')">By Screen</button>
|
97
|
+
</div>
|
98
|
+
<div id="byLanguage" class="tabContent"><h1 class="tabTitle">By Language:</h1><% image_counter = 0 %><% @data_by_language.each do |language, content| %>
|
99
|
+
<h2 id="<%= language %>"><%= language %></h2>
|
100
|
+
<hr>
|
101
|
+
<table><% content.each do |device_name, screens| %>
|
102
|
+
<tr>
|
103
|
+
<th colspan="<%= screens.count %>">
|
104
|
+
<a id="<%= language %>-<%= device_name %>" class="deviceName" href="#<%= language %>-<%= device_name %>"><%= device_name %></a>
|
105
|
+
</th>
|
106
|
+
</tr>
|
107
|
+
<tr><% screens.each do |screen_path| %><% next if screen_path.include?"_framed.png" %>
|
108
|
+
<td><% image_counter += 1 %>
|
109
|
+
<a href="<%= screen_path %>" target="_blank" class="screenshotLink">
|
110
|
+
<img class="screenshot" src="<%= screen_path %>" style="width: 100%;" alt="<%= language %> <%= device_name %>" data-tab="1" data-counter="<%= image_counter %>">
|
111
|
+
</a>
|
112
|
+
</td><% end %>
|
113
|
+
</tr><% end %>
|
114
|
+
</table><% end %>
|
115
|
+
</div>
|
116
|
+
<div id="byScreen" class="tabContent"><h1 class="tabTitle">By Screen:</h1><% image_counter = 0 %><% @data_by_screen.each do |screen, content| %>
|
117
|
+
<h2 id="<%= screen %>" class="screen"><%= screen %></h2>
|
118
|
+
<hr>
|
119
|
+
<table><% content.each do |device_name, screens| %>
|
120
|
+
<tr>
|
121
|
+
<th colspan="<%= screens.count %>">
|
122
|
+
<a id="<%= screen %>-<%= device_name %>" class="deviceName" href="#<%= screen %>-<%= device_name %>"><%= device_name %></a>
|
123
|
+
</th>
|
124
|
+
</tr>
|
125
|
+
<tr><% screens.each do |language, screen_path| %><% next if screen_path.include?"_framed.png" %>
|
126
|
+
<td><% image_counter += 1 %>
|
127
|
+
<a href="<%= screen_path %>" target="_blank" class="screenshotLink">
|
128
|
+
<img class="screenshot" src="<%= screen_path %>" style="width: 100%;" alt="<%= language %> <%= device_name %>" data-tab="2" data-counter="<%= image_counter %>">
|
129
|
+
</a>
|
130
|
+
<div class="caption"><%= language %></div>
|
131
|
+
</td><% end %>
|
132
|
+
</tr><% end %>
|
133
|
+
</table><% end %>
|
134
|
+
</div>
|
135
|
+
<div id="overlay">
|
136
|
+
<img id="imageDisplay" src="" alt="" />
|
137
|
+
<div id="imageInfo"></div>
|
138
|
+
</div>
|
139
|
+
<script type="text/javascript">
|
140
|
+
var overlay = document.getElementById('overlay');
|
141
|
+
var imageDisplay = document.getElementById('imageDisplay');
|
142
|
+
var imageInfo = document.getElementById('imageInfo');
|
143
|
+
var screenshotLink = document.getElementsByClassName('screenshotLink');
|
144
|
+
|
145
|
+
window.onload = setup();
|
146
|
+
|
147
|
+
function setup() {
|
148
|
+
var i, menu, tabTitles;
|
149
|
+
|
150
|
+
// Since JS is enabled, show sort menu and hide tab titles
|
151
|
+
menu = document.getElementById("sortMenu");
|
152
|
+
menu.style.display = "block";
|
153
|
+
|
154
|
+
tabTitles = document.getElementsByClassName("tabTitle");
|
155
|
+
for (i = 0; i < tabTitles.length; i++) {
|
156
|
+
tabTitles[i].style.display = "none";
|
157
|
+
}
|
158
|
+
|
159
|
+
doClick(document.getElementById("defaultTab"));
|
160
|
+
}
|
161
|
+
|
162
|
+
function getCurrentTab() {
|
163
|
+
var i, tabs;
|
164
|
+
tabs = document.getElementsByClassName("tabContent");
|
165
|
+
for (i = 0; i < tabs.length; i++) {
|
166
|
+
if (tabs[i].style.display != "none") {
|
167
|
+
return i + 1;
|
168
|
+
}
|
169
|
+
}
|
170
|
+
return 1; // fallback
|
171
|
+
}
|
172
|
+
|
173
|
+
function openTab(evt, tabName) {
|
174
|
+
var i, tabContent, tabLinks;
|
175
|
+
tabs = document.getElementsByClassName("tabContent");
|
176
|
+
for (i = 0; i < tabs.length; i++) {
|
177
|
+
tabs[i].style.display = "none";
|
178
|
+
}
|
179
|
+
tabLinks = document.getElementsByClassName("tabLink");
|
180
|
+
for (i = 0; i < tabLinks.length; i++) {
|
181
|
+
tabLinks[i].className = tabLinks[i].className.replace(" active", "");
|
182
|
+
}
|
183
|
+
document.getElementById(tabName).style.display = "block";
|
184
|
+
evt.currentTarget.className += " active";
|
185
|
+
}
|
186
|
+
|
187
|
+
function doClick(el) {
|
188
|
+
if (document.createEvent) {
|
189
|
+
var evObj = document.createEvent('MouseEvents', true);
|
190
|
+
evObj.initMouseEvent("click", false, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
|
191
|
+
el.dispatchEvent(evObj);
|
192
|
+
} else if (document.createEventObject) { //IE
|
193
|
+
var evObj = document.createEventObject();
|
194
|
+
el.fireEvent('onclick', evObj);
|
195
|
+
}
|
196
|
+
}
|
197
|
+
|
198
|
+
for (index = 0; index < screenshotLink.length; ++index) {
|
199
|
+
screenshotLink[index].addEventListener('click', function(e) {
|
200
|
+
e.preventDefault();
|
201
|
+
|
202
|
+
var img = e.target;
|
203
|
+
if (e.target.tagName == 'A') {
|
204
|
+
img = e.target.children[0];
|
205
|
+
}
|
206
|
+
|
207
|
+
// beautify
|
208
|
+
var tmpImg = new Image();
|
209
|
+
tmpImg.src = img.src;
|
210
|
+
imageDisplay.style.height = 'auto';
|
211
|
+
imageDisplay.style.width = 'auto';
|
212
|
+
imageDisplay.style.paddingTop = 0;
|
213
|
+
if (window.innerHeight < tmpImg.height) {
|
214
|
+
imageDisplay.style.height = document.documentElement.clientHeight+'px';
|
215
|
+
} else if (window.innerWidth < tmpImg.width) {
|
216
|
+
imageDisplay.style.width = document.documentElement.clientWidth;+'px';
|
217
|
+
} else {
|
218
|
+
imageDisplay.style.paddingTop = parseInt((window.innerHeight - tmpImg.height) / 2)+'px';
|
219
|
+
}
|
220
|
+
|
221
|
+
imageDisplay.src = img.src;
|
222
|
+
imageDisplay.alt = img.alt;
|
223
|
+
imageDisplay.dataset.counter = img.dataset.counter;
|
224
|
+
|
225
|
+
imageInfo.innerHTML = '<h3>'+img.alt+'</h3>';
|
226
|
+
imageInfo.innerHTML += decodeURI(img.src.split("/").pop());
|
227
|
+
imageInfo.innerHTML += '<br />'+tmpImg.height+'×'+tmpImg.width+'px';
|
228
|
+
|
229
|
+
overlay.style.display = "block";
|
230
|
+
});
|
231
|
+
}
|
232
|
+
|
233
|
+
imageDisplay.addEventListener('click', function(e) {
|
234
|
+
e.stopPropagation(); // !
|
235
|
+
|
236
|
+
overlay.style.display = "none";
|
237
|
+
|
238
|
+
img_tab = parseInt(getCurrentTab());
|
239
|
+
img_counter = parseInt(e.target.dataset.counter) + 1;
|
240
|
+
try {
|
241
|
+
link = document.body.querySelector('img[data-tab="'+img_tab+'"][data-counter="'+img_counter+'"]').parentNode;
|
242
|
+
} catch (e) {
|
243
|
+
try {
|
244
|
+
link = document.body.querySelector('img[data-tab="'+img_tab+'"][data-counter="0"]').parentNode;
|
245
|
+
} catch (e) {
|
246
|
+
return false;
|
247
|
+
}
|
248
|
+
}
|
249
|
+
doClick(link);
|
250
|
+
});
|
251
|
+
|
252
|
+
overlay.addEventListener('click', function(e) {
|
253
|
+
overlay.style.display = "none";
|
254
|
+
})
|
255
|
+
|
256
|
+
function keyPressed(e) {
|
257
|
+
e = e || window.event;
|
258
|
+
var charCode = e.keyCode || e.which;
|
259
|
+
switch(charCode) {
|
260
|
+
case 27: // Esc
|
261
|
+
overlay.style.display = "none";
|
262
|
+
break;
|
263
|
+
case 34: // Page Down
|
264
|
+
case 39: // Right arrow
|
265
|
+
case 54: // Keypad right
|
266
|
+
case 76: // l
|
267
|
+
case 102: // Keypad right
|
268
|
+
e.preventDefault();
|
269
|
+
doClick(imageDisplay);
|
270
|
+
break;
|
271
|
+
case 33: // Page up
|
272
|
+
case 37: // Left arrow
|
273
|
+
case 52: // Keypad left
|
274
|
+
case 72: // h
|
275
|
+
case 100: // Keypad left
|
276
|
+
e.preventDefault();
|
277
|
+
document.getElementById('imageDisplay').dataset.counter -= 2; // hacky
|
278
|
+
doClick(imageDisplay);
|
279
|
+
break;
|
280
|
+
}
|
281
|
+
};
|
282
|
+
document.body.addEventListener('keydown', keyPressed);
|
283
|
+
</script>
|
284
|
+
</body>
|
285
|
+
</html>
|