fastlane 2.74.0.beta.20180106010004 → 2.74.0.beta.20180107010004
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/cert/lib/cert.rb +3 -17
- data/cert/lib/cert/commands_generator.rb +5 -0
- data/cert/lib/cert/module.rb +14 -0
- data/cert/lib/cert/options.rb +4 -2
- data/cert/lib/cert/runner.rb +7 -0
- data/credentials_manager/lib/credentials_manager.rb +3 -9
- data/credentials_manager/lib/credentials_manager/account_manager.rb +2 -0
- data/credentials_manager/lib/credentials_manager/appfile_config.rb +2 -0
- data/credentials_manager/lib/credentials_manager/cli.rb +2 -0
- data/deliver/lib/deliver.rb +15 -31
- data/deliver/lib/deliver/app_screenshot.rb +2 -0
- data/deliver/lib/deliver/commands_generator.rb +6 -1
- data/deliver/lib/deliver/detect_values.rb +9 -1
- data/deliver/lib/deliver/download_screenshots.rb +2 -0
- data/deliver/lib/deliver/generate_summary.rb +4 -0
- data/deliver/lib/deliver/html_generator.rb +2 -0
- data/deliver/lib/deliver/loader.rb +4 -0
- data/deliver/lib/deliver/module.rb +16 -0
- data/deliver/lib/deliver/options.rb +5 -2
- data/deliver/lib/deliver/runner.rb +14 -1
- data/deliver/lib/deliver/setup.rb +6 -2
- data/deliver/lib/deliver/submit_for_review.rb +2 -0
- data/deliver/lib/deliver/upload_assets.rb +2 -0
- data/deliver/lib/deliver/upload_metadata.rb +4 -0
- data/deliver/lib/deliver/upload_price_tier.rb +2 -0
- data/deliver/lib/deliver/upload_screenshots.rb +6 -0
- data/fastlane/lib/fastlane/actions/slack.rb +16 -11
- data/fastlane/lib/fastlane/plugins/template/.rubocop.yml +3 -0
- data/fastlane/lib/fastlane/version.rb +1 -1
- data/fastlane_core/lib/fastlane_core.rb +42 -77
- data/fastlane_core/lib/fastlane_core/analytics/action_completion_context.rb +2 -0
- data/fastlane_core/lib/fastlane_core/analytics/action_launch_context.rb +2 -1
- data/fastlane_core/lib/fastlane_core/analytics/analytics_ingester_client.rb +4 -0
- data/fastlane_core/lib/fastlane_core/analytics/analytics_session.rb +3 -1
- data/fastlane_core/lib/fastlane_core/analytics/app_identifier_guesser.rb +3 -3
- data/fastlane_core/lib/fastlane_core/android_package_name_guesser.rb +5 -0
- data/fastlane_core/lib/fastlane_core/build_watcher.rb +4 -0
- data/fastlane_core/lib/fastlane_core/cert_checker.rb +2 -0
- data/fastlane_core/lib/fastlane_core/command_executor.rb +4 -0
- data/fastlane_core/lib/fastlane_core/configuration/commander_generator.rb +4 -2
- data/fastlane_core/lib/fastlane_core/configuration/config_item.rb +6 -1
- data/fastlane_core/lib/fastlane_core/configuration/configuration.rb +5 -3
- data/fastlane_core/lib/fastlane_core/configuration/configuration_file.rb +3 -0
- data/fastlane_core/lib/fastlane_core/crash_reporter/crash_report_generator.rb +2 -0
- data/fastlane_core/lib/fastlane_core/crash_reporter/crash_reporter.rb +7 -1
- data/fastlane_core/lib/fastlane_core/device_manager.rb +6 -0
- data/fastlane_core/lib/fastlane_core/fastlane_folder.rb +2 -0
- data/fastlane_core/lib/fastlane_core/feature/feature.rb +2 -0
- data/fastlane_core/lib/fastlane_core/features.rb +2 -0
- data/fastlane_core/lib/fastlane_core/helper.rb +5 -1
- data/fastlane_core/lib/fastlane_core/ios_app_identifier_guesser.rb +5 -0
- data/fastlane_core/lib/fastlane_core/ipa_file_analyser.rb +3 -1
- data/fastlane_core/lib/fastlane_core/ipa_upload_package_builder.rb +4 -0
- data/fastlane_core/lib/fastlane_core/itunes_search_api.rb +2 -0
- data/fastlane_core/lib/fastlane_core/itunes_transporter.rb +3 -0
- data/fastlane_core/lib/fastlane_core/keychain_importer.rb +2 -0
- data/fastlane_core/lib/fastlane_core/module.rb +31 -0
- data/fastlane_core/lib/fastlane_core/pkg_file_analyser.rb +2 -0
- data/fastlane_core/lib/fastlane_core/pkg_upload_package_builder.rb +4 -0
- data/fastlane_core/lib/fastlane_core/print_table.rb +3 -0
- data/fastlane_core/lib/fastlane_core/project.rb +3 -0
- data/fastlane_core/lib/fastlane_core/provisioning_profile.rb +2 -0
- data/fastlane_core/lib/fastlane_core/swag.rb +3 -0
- data/fastlane_core/lib/fastlane_core/test_parser.rb +7 -0
- data/fastlane_core/lib/fastlane_core/tool_collector.rb +2 -0
- data/fastlane_core/lib/fastlane_core/ui/errors.rb +1 -0
- data/fastlane_core/lib/fastlane_core/ui/errors/fastlane_common_error.rb +2 -0
- data/fastlane_core/lib/fastlane_core/ui/errors/fastlane_crash.rb +2 -0
- data/fastlane_core/lib/fastlane_core/ui/errors/fastlane_error.rb +2 -0
- data/fastlane_core/lib/fastlane_core/ui/errors/fastlane_shell_error.rb +2 -0
- data/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb +10 -1
- data/fastlane_core/lib/fastlane_core/ui/github_issue_inspector_reporter.rb +4 -1
- data/fastlane_core/lib/fastlane_core/ui/implementations/shell.rb +6 -0
- data/fastlane_core/lib/fastlane_core/ui/interface.rb +3 -0
- data/fastlane_core/lib/fastlane_core/ui/ui.rb +5 -5
- data/fastlane_core/lib/fastlane_core/update_checker/changelog.rb +2 -2
- data/fastlane_core/lib/fastlane_core/update_checker/update_checker.rb +5 -3
- data/frameit/lib/frameit.rb +0 -40
- data/frameit/lib/frameit/commands_generator.rb +7 -0
- data/frameit/lib/frameit/config_parser.rb +2 -0
- data/frameit/lib/frameit/dependency_checker.rb +2 -0
- data/frameit/lib/frameit/editor.rb +9 -0
- data/frameit/lib/frameit/frame_downloader.rb +5 -0
- data/frameit/lib/frameit/mac_editor.rb +3 -0
- data/frameit/lib/frameit/module.rb +40 -0
- data/frameit/lib/frameit/offsets.rb +3 -0
- data/frameit/lib/frameit/options.rb +4 -0
- data/frameit/lib/frameit/runner.rb +5 -1
- data/frameit/lib/frameit/screenshot.rb +9 -0
- data/frameit/lib/frameit/strings_parser.rb +2 -0
- data/frameit/lib/frameit/template_finder.rb +6 -0
- data/frameit/lib/frameit/trim_box.rb +2 -0
- data/gym/lib/gym.rb +9 -46
- data/gym/lib/gym/code_signing_mapping.rb +2 -0
- data/gym/lib/gym/commands_generator.rb +6 -3
- data/gym/lib/gym/detect_values.rb +4 -1
- data/gym/lib/gym/error_handler.rb +3 -0
- data/gym/lib/gym/generators/build_command_generator.rb +1 -0
- data/gym/lib/gym/generators/package_command_generator.rb +1 -1
- data/gym/lib/gym/generators/package_command_generator_xcode7.rb +5 -0
- data/gym/lib/gym/manager.rb +4 -0
- data/gym/lib/gym/module.rb +36 -0
- data/gym/lib/gym/options.rb +3 -2
- data/gym/lib/gym/runner.rb +8 -0
- data/gym/lib/gym/xcode.rb +2 -0
- data/gym/lib/gym/xcodebuild_fixes/generic_archive_fix.rb +3 -0
- data/match/lib/match.rb +12 -37
- data/match/lib/match/change_password.rb +4 -0
- data/match/lib/match/commands_generator.rb +9 -3
- data/match/lib/match/encrypt.rb +4 -0
- data/match/lib/match/generator.rb +7 -2
- data/match/lib/match/git_helper.rb +5 -0
- data/match/lib/match/module.rb +23 -0
- data/match/lib/match/nuke.rb +8 -0
- data/match/lib/match/options.rb +3 -2
- data/match/lib/match/runner.rb +11 -0
- data/match/lib/match/setup.rb +2 -0
- data/match/lib/match/spaceship_ensure.rb +5 -2
- data/match/lib/match/table_printer.rb +6 -0
- data/match/lib/match/utils.rb +3 -0
- data/pem/lib/pem.rb +3 -20
- data/pem/lib/pem/commands_generator.rb +4 -0
- data/pem/lib/pem/manager.rb +3 -0
- data/pem/lib/pem/module.rb +18 -0
- data/pem/lib/pem/options.rb +4 -2
- data/pilot/lib/pilot.rb +1 -14
- data/pilot/lib/pilot/build_manager.rb +6 -0
- data/pilot/lib/pilot/commands_generator.rb +8 -2
- data/pilot/lib/pilot/manager.rb +10 -3
- data/pilot/lib/pilot/module.rb +9 -0
- data/pilot/lib/pilot/options.rb +4 -2
- data/pilot/lib/pilot/tester_exporter.rb +6 -3
- data/pilot/lib/pilot/tester_importer.rb +3 -1
- data/pilot/lib/pilot/tester_manager.rb +6 -5
- data/precheck/lib/precheck.rb +2 -22
- data/precheck/lib/precheck/commands_generator.rb +8 -1
- data/precheck/lib/precheck/module.rb +21 -0
- data/precheck/lib/precheck/options.rb +4 -3
- data/precheck/lib/precheck/rule.rb +7 -4
- data/precheck/lib/precheck/rule_processor.rb +5 -2
- data/precheck/lib/precheck/rules/abstract_text_match_rule.rb +1 -1
- data/precheck/lib/precheck/rules/all.rb +1 -0
- data/precheck/lib/precheck/rules/copyright_date_rule.rb +1 -2
- data/precheck/lib/precheck/rules/curse_words_rule.rb +2 -1
- data/precheck/lib/precheck/rules/custom_text_rule.rb +1 -2
- data/precheck/lib/precheck/rules/free_stuff_iap_rule.rb +1 -2
- data/precheck/lib/precheck/rules/future_functionality_rule.rb +1 -2
- data/precheck/lib/precheck/rules/negative_apple_sentiment_rule.rb +1 -2
- data/precheck/lib/precheck/rules/other_platforms_rule.rb +1 -2
- data/precheck/lib/precheck/rules/placeholder_words_rule.rb +1 -2
- data/precheck/lib/precheck/rules/test_words_rule.rb +1 -2
- data/precheck/lib/precheck/rules/unreachable_urls_rule.rb +3 -1
- data/precheck/lib/precheck/runner.rb +6 -4
- data/produce/lib/produce.rb +6 -21
- data/produce/lib/produce/commands_generator.rb +5 -0
- data/produce/lib/produce/developer_center.rb +1 -0
- data/produce/lib/produce/group.rb +1 -0
- data/produce/lib/produce/itunes_connect.rb +5 -3
- data/produce/lib/produce/manager.rb +4 -0
- data/produce/lib/produce/merchant.rb +1 -0
- data/produce/lib/produce/module.rb +14 -0
- data/produce/lib/produce/options.rb +4 -2
- data/produce/lib/produce/service.rb +3 -0
- data/scan/lib/scan.rb +10 -40
- data/scan/lib/scan/commands_generator.rb +6 -2
- data/scan/lib/scan/detect_values.rb +4 -0
- data/scan/lib/scan/error_handler.rb +2 -0
- data/scan/lib/scan/manager.rb +4 -0
- data/scan/lib/scan/module.rb +32 -0
- data/scan/lib/scan/options.rb +3 -2
- data/scan/lib/scan/runner.rb +9 -0
- data/scan/lib/scan/slack_poster.rb +2 -0
- data/scan/lib/scan/test_command_generator.rb +2 -0
- data/scan/lib/scan/test_result_parser.rb +2 -0
- data/scan/lib/scan/xcpretty_reporter_options_generator.rb +2 -0
- data/screengrab/lib/screengrab.rb +7 -33
- data/screengrab/lib/screengrab/android_environment.rb +2 -0
- data/screengrab/lib/screengrab/commands_generator.rb +8 -0
- data/screengrab/lib/screengrab/dependency_checker.rb +2 -0
- data/screengrab/lib/screengrab/module.rb +24 -0
- data/screengrab/lib/screengrab/options.rb +3 -2
- data/screengrab/lib/screengrab/reports_generator.rb +3 -1
- data/screengrab/lib/screengrab/runner.rb +4 -0
- data/screengrab/lib/screengrab/setup.rb +2 -0
- data/sigh/lib/sigh.rb +4 -19
- data/sigh/lib/sigh/commands_generator.rb +5 -0
- data/sigh/lib/sigh/download_all.rb +5 -0
- data/sigh/lib/sigh/local_manage.rb +5 -0
- data/sigh/lib/sigh/manager.rb +3 -2
- data/sigh/lib/sigh/module.rb +16 -0
- data/sigh/lib/sigh/options.rb +3 -2
- data/sigh/lib/sigh/repair.rb +4 -0
- data/sigh/lib/sigh/resign.rb +3 -0
- data/sigh/lib/sigh/runner.rb +4 -0
- data/snapshot/lib/snapshot.rb +19 -61
- data/snapshot/lib/snapshot/collector.rb +5 -0
- data/snapshot/lib/snapshot/commands_generator.rb +4 -1
- data/snapshot/lib/snapshot/dependency_checker.rb +27 -23
- data/snapshot/lib/snapshot/detect_values.rb +7 -0
- data/snapshot/lib/snapshot/error_handler.rb +2 -0
- data/snapshot/lib/snapshot/fixes/hardware_keyboard_fix.rb +2 -0
- data/snapshot/lib/snapshot/fixes/simulator_zoom_fix.rb +2 -0
- data/snapshot/lib/snapshot/latest_os_version.rb +5 -2
- data/snapshot/lib/snapshot/module.rb +44 -0
- data/snapshot/lib/snapshot/options.rb +11 -2
- data/snapshot/lib/snapshot/reports_generator.rb +4 -2
- data/snapshot/lib/snapshot/reset_simulators.rb +3 -0
- data/snapshot/lib/snapshot/runner.rb +10 -0
- data/snapshot/lib/snapshot/screenshot_flatten.rb +2 -0
- data/snapshot/lib/snapshot/screenshot_rotate.rb +4 -1
- data/snapshot/lib/snapshot/setup.rb +2 -0
- data/snapshot/lib/snapshot/simulator_launchers/launcher_configuration.rb +0 -1
- data/snapshot/lib/snapshot/simulator_launchers/simulator_launcher.rb +27 -27
- data/snapshot/lib/snapshot/simulator_launchers/simulator_launcher_base.rb +8 -0
- data/snapshot/lib/snapshot/simulator_launchers/simulator_launcher_xcode_8.rb +4 -1
- data/snapshot/lib/snapshot/test_command_generator.rb +2 -1
- data/snapshot/lib/snapshot/test_command_generator_base.rb +10 -4
- data/snapshot/lib/snapshot/test_command_generator_xcode_8.rb +3 -1
- data/snapshot/lib/snapshot/update.rb +3 -0
- data/spaceship/lib/spaceship.rb +14 -36
- data/spaceship/lib/spaceship/client.rb +26 -76
- data/spaceship/lib/spaceship/commands_generator.rb +4 -2
- data/spaceship/lib/spaceship/du/du_client.rb +3 -0
- data/spaceship/lib/spaceship/du/upload_file.rb +2 -0
- data/spaceship/lib/spaceship/errors.rb +67 -0
- data/spaceship/lib/spaceship/globals.rb +1 -1
- data/spaceship/lib/spaceship/helper/plist_middleware.rb +1 -1
- data/spaceship/lib/spaceship/helper/rels_middleware.rb +2 -0
- data/spaceship/lib/spaceship/launcher.rb +7 -5
- data/spaceship/lib/spaceship/module.rb +4 -0
- data/spaceship/lib/spaceship/playground.rb +3 -0
- data/spaceship/lib/spaceship/portal/app.rb +3 -0
- data/spaceship/lib/spaceship/portal/app_group.rb +2 -0
- data/spaceship/lib/spaceship/portal/app_service.rb +38 -290
- data/spaceship/lib/spaceship/portal/certificate.rb +3 -1
- data/spaceship/lib/spaceship/portal/device.rb +5 -3
- data/spaceship/lib/spaceship/portal/invite.rb +2 -0
- data/spaceship/lib/spaceship/portal/key.rb +2 -0
- data/spaceship/lib/spaceship/portal/legacy_wrapper.rb +21 -0
- data/spaceship/lib/spaceship/portal/merchant.rb +2 -0
- data/spaceship/lib/spaceship/portal/passbook.rb +2 -0
- data/spaceship/lib/spaceship/portal/person.rb +2 -0
- data/spaceship/lib/spaceship/portal/persons.rb +3 -0
- data/spaceship/lib/spaceship/portal/portal_base.rb +3 -0
- data/spaceship/lib/spaceship/portal/portal_client.rb +37 -23
- data/spaceship/lib/spaceship/portal/provisioning_profile.rb +27 -20
- data/spaceship/lib/spaceship/portal/provisioning_profile_template.rb +2 -0
- data/spaceship/lib/spaceship/portal/spaceship.rb +13 -10
- data/spaceship/lib/spaceship/portal/ui/select_team.rb +2 -0
- data/spaceship/lib/spaceship/portal/website_push.rb +2 -0
- data/spaceship/lib/spaceship/spaceauth_runner.rb +4 -2
- data/spaceship/lib/spaceship/test_flight.rb +0 -1
- data/spaceship/lib/spaceship/test_flight/app_test_info.rb +4 -0
- data/spaceship/lib/spaceship/test_flight/base.rb +22 -17
- data/spaceship/lib/spaceship/test_flight/beta_review_info.rb +2 -0
- data/spaceship/lib/spaceship/test_flight/build.rb +211 -203
- data/spaceship/lib/spaceship/test_flight/build_trains.rb +4 -1
- data/spaceship/lib/spaceship/test_flight/client.rb +255 -251
- data/spaceship/lib/spaceship/test_flight/export_compliance.rb +2 -0
- data/spaceship/lib/spaceship/test_flight/group.rb +2 -0
- data/spaceship/lib/spaceship/test_flight/test_info.rb +2 -0
- data/spaceship/lib/spaceship/test_flight/tester.rb +114 -110
- data/spaceship/lib/spaceship/tunes/app_details.rb +5 -1
- data/spaceship/lib/spaceship/tunes/app_image.rb +2 -0
- data/spaceship/lib/spaceship/tunes/app_ratings.rb +2 -68
- data/spaceship/lib/spaceship/tunes/app_review.rb +55 -0
- data/spaceship/lib/spaceship/tunes/app_screenshot.rb +2 -0
- data/spaceship/lib/spaceship/tunes/app_submission.rb +1 -0
- data/spaceship/lib/spaceship/tunes/app_trailer.rb +2 -0
- data/spaceship/lib/spaceship/tunes/app_version.rb +11 -0
- data/spaceship/lib/spaceship/tunes/app_version_generated_promocodes.rb +2 -0
- data/spaceship/lib/spaceship/tunes/app_version_history.rb +2 -0
- data/spaceship/lib/spaceship/tunes/app_version_promocodes.rb +2 -0
- data/spaceship/lib/spaceship/tunes/app_version_ref.rb +2 -0
- data/spaceship/lib/spaceship/tunes/app_version_states_history.rb +2 -0
- data/spaceship/lib/spaceship/tunes/application.rb +18 -6
- data/spaceship/lib/spaceship/tunes/availability.rb +2 -0
- data/spaceship/lib/spaceship/tunes/build.rb +2 -0
- data/spaceship/lib/spaceship/tunes/build_details.rb +2 -0
- data/spaceship/lib/spaceship/tunes/build_train.rb +5 -1
- data/spaceship/lib/spaceship/tunes/developer_response.rb +23 -0
- data/spaceship/lib/spaceship/tunes/errors.rb +17 -0
- data/spaceship/lib/spaceship/tunes/iap_detail.rb +5 -0
- data/spaceship/lib/spaceship/tunes/iap_families.rb +1 -0
- data/spaceship/lib/spaceship/tunes/iap_family_details.rb +1 -0
- data/spaceship/lib/spaceship/tunes/iap_family_list.rb +1 -0
- data/spaceship/lib/spaceship/tunes/iap_list.rb +3 -0
- data/spaceship/lib/spaceship/tunes/iap_subscription_pricing_info.rb +46 -0
- data/spaceship/lib/spaceship/tunes/iap_subscription_pricing_tier.rb +2 -41
- data/spaceship/lib/spaceship/tunes/language_converter.rb +2 -0
- data/spaceship/lib/spaceship/tunes/legacy_wrapper.rb +13 -0
- data/spaceship/lib/spaceship/tunes/member.rb +3 -0
- data/spaceship/lib/spaceship/tunes/members.rb +2 -0
- data/spaceship/lib/spaceship/tunes/pricing_info.rb +42 -0
- data/spaceship/lib/spaceship/tunes/pricing_tier.rb +2 -37
- data/spaceship/lib/spaceship/tunes/recovery_device.rb +2 -0
- data/spaceship/lib/spaceship/tunes/sandbox_tester.rb +2 -0
- data/spaceship/lib/spaceship/tunes/spaceship.rb +2 -0
- data/spaceship/lib/spaceship/tunes/territory.rb +2 -0
- data/spaceship/lib/spaceship/tunes/transit_app_file.rb +2 -0
- data/spaceship/lib/spaceship/tunes/tunes.rb +34 -39
- data/spaceship/lib/spaceship/tunes/tunes_base.rb +2 -0
- data/spaceship/lib/spaceship/tunes/tunes_client.rb +20 -14
- data/spaceship/lib/spaceship/tunes/user_detail.rb +2 -0
- data/spaceship/lib/spaceship/tunes/version_set.rb +2 -0
- data/spaceship/lib/spaceship/two_step_client.rb +5 -1
- data/spaceship/lib/spaceship/ui.rb +7 -7
- data/supply/lib/supply/options.rb +2 -2
- metadata +31 -6
@@ -0,0 +1,24 @@
|
|
1
|
+
require 'fastlane_core/helper'
|
2
|
+
require_relative 'detect_values'
|
3
|
+
|
4
|
+
module Screengrab
|
5
|
+
# Use this to just setup the configuration attribute and set it later somewhere else
|
6
|
+
class << self
|
7
|
+
attr_accessor :config
|
8
|
+
attr_accessor :android_environment
|
9
|
+
|
10
|
+
def config=(value)
|
11
|
+
@config = value
|
12
|
+
DetectValues.set_additional_default_values
|
13
|
+
end
|
14
|
+
|
15
|
+
def screengrabfile_name
|
16
|
+
"Screengrabfile"
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
Helper = FastlaneCore::Helper # you gotta love Ruby: Helper.* should use the Helper class contained in FastlaneCore
|
21
|
+
UI = FastlaneCore::UI
|
22
|
+
ROOT = Pathname.new(File.expand_path('../../..', __FILE__))
|
23
|
+
DESCRIPTION = "Automated localized screenshots of your Android app on every device".freeze
|
24
|
+
end
|
data/sigh/lib/sigh.rb
CHANGED
@@ -1,19 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
require 'sigh/local_manage'
|
6
|
-
|
7
|
-
module Sigh
|
8
|
-
# Use this to just setup the configuration attribute and set it later somewhere else
|
9
|
-
class << self
|
10
|
-
attr_accessor :config
|
11
|
-
end
|
12
|
-
|
13
|
-
Helper = FastlaneCore::Helper # you gotta love Ruby: Helper.* should use the Helper class contained in FastlaneCore
|
14
|
-
UI = FastlaneCore::UI
|
15
|
-
ROOT = Pathname.new(File.expand_path('../..', __FILE__))
|
16
|
-
|
17
|
-
ENV['FASTLANE_TEAM_ID'] ||= ENV["SIGH_TEAM_ID"]
|
18
|
-
ENV['DELIVER_USER'] ||= ENV["SIGH_USERNAME"]
|
19
|
-
end
|
1
|
+
require_relative 'sigh/resign'
|
2
|
+
require_relative 'sigh/manager'
|
3
|
+
require_relative 'sigh/options'
|
4
|
+
require_relative 'sigh/local_manage'
|
data/sigh/lib/sigh/manager.rb
CHANGED
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'fastlane_core/ui/ui'
|
2
|
+
require 'fastlane_core/helper'
|
3
|
+
|
4
|
+
module Sigh
|
5
|
+
# Use this to just setup the configuration attribute and set it later somewhere else
|
6
|
+
class << self
|
7
|
+
attr_accessor :config
|
8
|
+
end
|
9
|
+
|
10
|
+
Helper = FastlaneCore::Helper # you gotta love Ruby: Helper.* should use the Helper class contained in FastlaneCore
|
11
|
+
UI = FastlaneCore::UI
|
12
|
+
ROOT = Pathname.new(File.expand_path('../../..', __FILE__))
|
13
|
+
|
14
|
+
ENV['FASTLANE_TEAM_ID'] ||= ENV["SIGH_TEAM_ID"]
|
15
|
+
ENV['DELIVER_USER'] ||= ENV["SIGH_USERNAME"]
|
16
|
+
end
|
data/sigh/lib/sigh/options.rb
CHANGED
data/sigh/lib/sigh/repair.rb
CHANGED
data/sigh/lib/sigh/resign.rb
CHANGED
data/sigh/lib/sigh/runner.rb
CHANGED
data/snapshot/lib/snapshot.rb
CHANGED
@@ -1,61 +1,19 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
require 'fastlane_core'
|
21
|
-
|
22
|
-
require 'open3'
|
23
|
-
|
24
|
-
module Snapshot
|
25
|
-
# Use this to just setup the configuration attribute and set it later somewhere else
|
26
|
-
class << self
|
27
|
-
attr_accessor :config
|
28
|
-
|
29
|
-
attr_accessor :project
|
30
|
-
|
31
|
-
attr_accessor :cache
|
32
|
-
|
33
|
-
def config=(value)
|
34
|
-
@config = value
|
35
|
-
DetectValues.set_additional_default_values
|
36
|
-
@cache = {}
|
37
|
-
end
|
38
|
-
|
39
|
-
def snapfile_name
|
40
|
-
"Snapfile"
|
41
|
-
end
|
42
|
-
|
43
|
-
def kill_simulator
|
44
|
-
`killall 'iOS Simulator' &> /dev/null`
|
45
|
-
`killall Simulator &> /dev/null`
|
46
|
-
end
|
47
|
-
end
|
48
|
-
|
49
|
-
Helper = FastlaneCore::Helper # you gotta love Ruby: Helper.* should use the Helper class contained in FastlaneCore
|
50
|
-
UI = FastlaneCore::UI
|
51
|
-
ROOT = Pathname.new(File.expand_path('../..', __FILE__))
|
52
|
-
DESCRIPTION = "Automate taking localized screenshots of your iOS and tvOS apps on every device"
|
53
|
-
CACHE_DIR = File.join(Dir.home, "Library/Caches/tools.fastlane")
|
54
|
-
SCREENSHOTS_DIR = File.join(CACHE_DIR, 'screenshots')
|
55
|
-
|
56
|
-
Snapshot::DependencyChecker.check_dependencies
|
57
|
-
|
58
|
-
def self.min_xcode7?
|
59
|
-
xcode_version.split(".").first.to_i >= 7
|
60
|
-
end
|
61
|
-
end
|
1
|
+
require_relative 'snapshot/runner'
|
2
|
+
require_relative 'snapshot/reports_generator'
|
3
|
+
require_relative 'snapshot/detect_values'
|
4
|
+
require_relative 'snapshot/screenshot_flatten'
|
5
|
+
require_relative 'snapshot/screenshot_rotate'
|
6
|
+
require_relative 'snapshot/dependency_checker'
|
7
|
+
require_relative 'snapshot/latest_os_version'
|
8
|
+
require_relative 'snapshot/test_command_generator'
|
9
|
+
require_relative 'snapshot/test_command_generator_xcode_8'
|
10
|
+
require_relative 'snapshot/error_handler'
|
11
|
+
require_relative 'snapshot/collector'
|
12
|
+
require_relative 'snapshot/options'
|
13
|
+
require_relative 'snapshot/update'
|
14
|
+
require_relative 'snapshot/fixes/simulator_zoom_fix'
|
15
|
+
require_relative 'snapshot/fixes/hardware_keyboard_fix'
|
16
|
+
require_relative 'snapshot/simulator_launchers/launcher_configuration'
|
17
|
+
require_relative 'snapshot/simulator_launchers/simulator_launcher'
|
18
|
+
require_relative 'snapshot/simulator_launchers/simulator_launcher_xcode_8'
|
19
|
+
require_relative 'snapshot/module'
|
@@ -1,7 +1,11 @@
|
|
1
|
+
require 'fastlane_core/device_manager'
|
2
|
+
require 'fastlane_core/helper'
|
3
|
+
require_relative 'latest_os_version'
|
4
|
+
|
1
5
|
module Snapshot
|
2
6
|
class DependencyChecker
|
3
7
|
def self.check_dependencies
|
4
|
-
return if Helper.test?
|
8
|
+
return if FastlaneCore::Helper.test?
|
5
9
|
|
6
10
|
self.check_xcode_select
|
7
11
|
self.check_simctl
|
@@ -9,41 +13,41 @@ module Snapshot
|
|
9
13
|
|
10
14
|
def self.check_xcode_select
|
11
15
|
unless `xcode-select -v`.include? "xcode-select version"
|
12
|
-
UI.error '#############################################################'
|
13
|
-
UI.error "# You have to install Xcode command line tools to use snapshot"
|
14
|
-
UI.error "# Install the latest version of Xcode from the AppStore"
|
15
|
-
UI.error "# Run xcode-select --install to install the developer tools"
|
16
|
-
UI.error '#############################################################'
|
17
|
-
UI.user_error!("Run 'xcode-select --install' and start snapshot again")
|
16
|
+
FastlaneCore::UI.error '#############################################################'
|
17
|
+
FastlaneCore::UI.error "# You have to install Xcode command line tools to use snapshot"
|
18
|
+
FastlaneCore::UI.error "# Install the latest version of Xcode from the AppStore"
|
19
|
+
FastlaneCore::UI.error "# Run xcode-select --install to install the developer tools"
|
20
|
+
FastlaneCore::UI.error '#############################################################'
|
21
|
+
FastlaneCore::UI.user_error!("Run 'xcode-select --install' and start snapshot again")
|
18
22
|
end
|
19
23
|
|
20
24
|
if Snapshot::LatestOsVersion.ios_version.to_f < 9 # to_f is bad, but should be good enough
|
21
|
-
UI.error '#############################################################'
|
22
|
-
UI.error "# Your xcode-select Xcode version is below 7.0"
|
23
|
-
UI.error "# To use snapshot 1.0 and above you need at least iOS 9"
|
24
|
-
UI.error "# Set the path to the Xcode version that supports UI Tests"
|
25
|
-
UI.error "# or downgrade to versions older than snapshot 1.0"
|
26
|
-
UI.error '#############################################################'
|
27
|
-
UI.user_error!("Run 'sudo xcode-select -s /Applications/Xcode-beta.app'")
|
25
|
+
FastlaneCore::UI.error '#############################################################'
|
26
|
+
FastlaneCore::UI.error "# Your xcode-select Xcode version is below 7.0"
|
27
|
+
FastlaneCore::UI.error "# To use snapshot 1.0 and above you need at least iOS 9"
|
28
|
+
FastlaneCore::UI.error "# Set the path to the Xcode version that supports UI Tests"
|
29
|
+
FastlaneCore::UI.error "# or downgrade to versions older than snapshot 1.0"
|
30
|
+
FastlaneCore::UI.error '#############################################################'
|
31
|
+
FastlaneCore::UI.user_error!("Run 'sudo xcode-select -s /Applications/Xcode-beta.app'")
|
28
32
|
end
|
29
33
|
end
|
30
34
|
|
31
35
|
def self.check_simulators
|
32
|
-
UI.verbose("Found #{FastlaneCore::Simulator.all.count} simulators.")
|
36
|
+
FastlaneCore::UI.verbose("Found #{FastlaneCore::Simulator.all.count} simulators.")
|
33
37
|
if FastlaneCore::Simulator.all.count == 0
|
34
|
-
UI.error '#############################################################'
|
35
|
-
UI.error "# You have to add new simulators using Xcode"
|
36
|
-
UI.error "# You can let snapshot create new simulators: 'fastlane snapshot reset_simulators'"
|
37
|
-
UI.error "# Manually: Xcode => Window => Devices"
|
38
|
-
UI.error "# Please run `instruments -s` to verify your xcode path"
|
39
|
-
UI.error '#############################################################'
|
40
|
-
UI.user_error!("Create the new simulators and run this script again")
|
38
|
+
FastlaneCore::UI.error '#############################################################'
|
39
|
+
FastlaneCore::UI.error "# You have to add new simulators using Xcode"
|
40
|
+
FastlaneCore::UI.error "# You can let snapshot create new simulators: 'fastlane snapshot reset_simulators'"
|
41
|
+
FastlaneCore::UI.error "# Manually: Xcode => Window => Devices"
|
42
|
+
FastlaneCore::UI.error "# Please run `instruments -s` to verify your xcode path"
|
43
|
+
FastlaneCore::UI.error '#############################################################'
|
44
|
+
FastlaneCore::UI.user_error!("Create the new simulators and run this script again")
|
41
45
|
end
|
42
46
|
end
|
43
47
|
|
44
48
|
def self.check_simctl
|
45
49
|
unless `xcrun simctl`.include? "openurl"
|
46
|
-
UI.user_error!("Could not find `xcrun simctl`. Make sure you have the latest version of Xcode and macOS installed.")
|
50
|
+
FastlaneCore::UI.user_error!("Could not find `xcrun simctl`. Make sure you have the latest version of Xcode and macOS installed.")
|
47
51
|
end
|
48
52
|
end
|
49
53
|
end
|
@@ -1,3 +1,6 @@
|
|
1
|
+
require 'fastlane_core/project'
|
2
|
+
require 'fastlane_core/device_manager'
|
3
|
+
|
1
4
|
module Snapshot
|
2
5
|
class DetectValues
|
3
6
|
# This is needed as these are more complex default values
|
@@ -19,6 +22,10 @@ module Snapshot
|
|
19
22
|
end
|
20
23
|
end
|
21
24
|
|
25
|
+
if config[:test_without_building] == true && config[:derived_data_path].to_s.length == 0
|
26
|
+
UI.user_error!("Cannot use test_without_building option without a derived_data_path!")
|
27
|
+
end
|
28
|
+
|
22
29
|
Snapshot.project.select_scheme(preferred_to_include: "UITests")
|
23
30
|
|
24
31
|
# Devices
|
@@ -1,3 +1,6 @@
|
|
1
|
+
require 'open3'
|
2
|
+
require 'fastlane_core/ui/ui'
|
3
|
+
|
1
4
|
module Snapshot
|
2
5
|
class LatestOsVersion
|
3
6
|
def self.ios_version
|
@@ -20,11 +23,11 @@ module Snapshot
|
|
20
23
|
|
21
24
|
matched = output.match(/#{os} ([\d\.]+) \(.*/)
|
22
25
|
if matched.nil?
|
23
|
-
UI.user_error!("Could not determine installed #{os} SDK version. Try running the _xcodebuild_ command manually to ensure it works.")
|
26
|
+
FastlaneCore::UI.user_error!("Could not determine installed #{os} SDK version. Try running the _xcodebuild_ command manually to ensure it works.")
|
24
27
|
elsif matched.length > 1
|
25
28
|
return matched[1]
|
26
29
|
else
|
27
|
-
UI.user_error!("Could not determine installed #{os} SDK version. Please pass it via the environment variable 'SNAPSHOT_IOS_VERSION'")
|
30
|
+
FastlaneCore::UI.user_error!("Could not determine installed #{os} SDK version. Please pass it via the environment variable 'SNAPSHOT_IOS_VERSION'")
|
28
31
|
end
|
29
32
|
end
|
30
33
|
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
require 'fastlane_core/helper'
|
2
|
+
require 'fastlane/boolean'
|
3
|
+
require_relative 'detect_values'
|
4
|
+
require_relative 'dependency_checker'
|
5
|
+
|
6
|
+
module Snapshot
|
7
|
+
# Use this to just setup the configuration attribute and set it later somewhere else
|
8
|
+
class << self
|
9
|
+
attr_accessor :config
|
10
|
+
|
11
|
+
attr_accessor :project
|
12
|
+
|
13
|
+
attr_accessor :cache
|
14
|
+
|
15
|
+
def config=(value)
|
16
|
+
@config = value
|
17
|
+
DetectValues.set_additional_default_values
|
18
|
+
@cache = {}
|
19
|
+
end
|
20
|
+
|
21
|
+
def snapfile_name
|
22
|
+
"Snapfile"
|
23
|
+
end
|
24
|
+
|
25
|
+
def kill_simulator
|
26
|
+
`killall 'iOS Simulator' &> /dev/null`
|
27
|
+
`killall Simulator &> /dev/null`
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
Helper = FastlaneCore::Helper # you gotta love Ruby: Helper.* should use the Helper class contained in FastlaneCore
|
32
|
+
UI = FastlaneCore::UI
|
33
|
+
ROOT = Pathname.new(File.expand_path('../../..', __FILE__))
|
34
|
+
DESCRIPTION = "Automate taking localized screenshots of your iOS and tvOS apps on every device"
|
35
|
+
CACHE_DIR = File.join(Dir.home, "Library/Caches/tools.fastlane")
|
36
|
+
SCREENSHOTS_DIR = File.join(CACHE_DIR, 'screenshots')
|
37
|
+
Boolean = Fastlane::Boolean
|
38
|
+
|
39
|
+
Snapshot::DependencyChecker.check_dependencies
|
40
|
+
|
41
|
+
def self.min_xcode7?
|
42
|
+
xcode_version.split(".").first.to_i >= 7
|
43
|
+
end
|
44
|
+
end
|