b0VIM 8.1#Z]4joshJoshs-Mac-mini.local~josh/Projects/fastlane/fastlane/supply/lib/supply/options.rbutf-8 3210#"! Utp5063f65*ad5P1d O T  v >  R ^l)FxD Y UI.user_error!("Invalid value '#{value}', must be greater than #{min} and less than #{max}") unless value.to_f > min && value.to_f <= max max = 1.0 min = 0.0 verify_block: proc do |value| optional: true, description: "The percentage of the user fraction when uploading to the rollout track", short_option: "-r", FastlaneCore::ConfigItem.new(key: :rollout, type: String), default_value: Supply::Tracks::DEFAULT, description: "The track of the application to use. The default available tracks are: #{Supply::Tracks::DEFAULTS.join(', ')}", env_name: "SUPPLY_TRACK", short_option: "-a", FastlaneCore::ConfigItem.new(key: :track, end), UI.user_error!("Value must be one of '#{Supply::RELEASE_STATUS}'") unless Supply::ReleaseStatus::ALL.include?(value) verify_block: proc do |value| default_value_dynamic: true, default_value: Supply::ReleaseStatus::COMPLETED, description: "Release status (used when uploading new apks/aabs) - valid values are #{Supply::ReleaseStatus::ALL.join(', ')}", optional: true, short_option: "-e", env_name: "SUPPLY_RELEASE_STATUS", FastlaneCore::ConfigItem.new(key: :release_status, default_value_dynamic: true), default_value: CredentialsManager::AppfileConfig.try_fetch_value(:version_code), description: "Version code (used when updating rollout or promoting specific versions)", optional: true, short_option: "-C", env_name: "SUPPLY_VERSION_CODE", FastlaneCore::ConfigItem.new(key: :version_code, default_value_dynamic: true), default_value: CredentialsManager::AppfileConfig.try_fetch_value(:version_name), description: "Version name (used when uploading new apks/aabs) - defaults to 'versionName' in build.gradle or AndroidManifest.xml", optional: true, short_option: "-n", env_name: "SUPPLY_VERSION_NAME", FastlaneCore::ConfigItem.new(key: :version_name, default_value_dynamic: true), default_value: CredentialsManager::AppfileConfig.try_fetch_value(:package_name), code_gen_sensitive: true, description: "The package name of the application to use", short_option: "-p", env_name: "SUPPLY_PACKAGE_NAME", FastlaneCore::ConfigItem.new(key: :package_name, @options ||= [ def self.available_options # rubocop:disable Metrics/PerceivedComplexity class Optionsmodule Supplyrequire 'credentials_manager/appfile_config'require 'fastlane_core/configuration/config_item'adA*|n3  y   * _ xCo cPH@ end end # rubocop:enable Metrics/PerceivedComplexity end ] type: Numeric) optional: true, description: "Size of 'patch' expansion file in bytes", env_name: "SUPPLY_OBB_PATCH_FILE SIZE", FastlaneCore::ConfigItem.new(key: :obb_patch_file_size, type: Numeric), optional: true, description: "References version of 'patch' expansion file", env_name: "SUPPLY_OBB_PATCH_REFERENCES_VERSION", FastlaneCore::ConfigItem.new(key: :obb_patch_references_version, type: Numeric), optional: true, description: "Size of 'main' expansion file in bytes", env_name: "SUPPLY_OBB_MAIN_FILE SIZE", FastlaneCore::ConfigItem.new(key: :obb_main_file_size, type: Numeric), optional: true, description: "References version of 'main' expansion file", env_name: "SUPPLY_OBB_MAIN_REFERENCES_VERSION", FastlaneCore::ConfigItem.new(key: :obb_main_references_version, end), end UI.user_error!("Version code '#{version_code}' is not an integer") if version_code == 0 version_codes.each do |version_code| UI.user_error!("Could not evaluate array from '#{version_codes}'") unless version_codes.kind_of?(Array) version_codes = version_codes.map(&:to_i) verify_block: proc do |version_codes| description: "An array of version codes to retain when publishing a new APK", type: Array, optional: true, FastlaneCore::ConfigItem.new(key: :version_codes_to_retain, default_value: true), type: Boolean, deprecated: "Google Play does this automatically now", description: "When promoting to a new track, deactivate the binary in the origin track", optional: true, env_name: "SUPPLY_DEACTIVATE_ON_PROMOTE",ad4(6o u   b R M  WS_+\']-y(d(( default_value: false), type: Boolean, description: "Whether to skip uploading SCREENSHOTS", optional: true, env_name: "SUPPLY_SKIP_UPLOAD_SCREENSHOTS", FastlaneCore::ConfigItem.new(key: :skip_upload_screenshots, default_value: false), type: Boolean, description: "Whether to skip uploading images, screenshots not included", optional: true, env_name: "SUPPLY_SKIP_UPLOAD_IMAGES", FastlaneCore::ConfigItem.new(key: :skip_upload_images, default_value: false), type: Boolean, description: "Whether to skip uploading changelogs", optional: true, env_name: "SUPPLY_SKIP_UPLOAD_CHANGELOGS", FastlaneCore::ConfigItem.new(key: :skip_upload_changelogs, default_value: false), type: Boolean, description: "Whether to skip uploading metadata, changelogs not included", optional: true, env_name: "SUPPLY_SKIP_UPLOAD_METADATA", FastlaneCore::ConfigItem.new(key: :skip_upload_metadata, default_value: false), type: Boolean, description: "Whether to skip uploading AAB", optional: true, env_name: "SUPPLY_SKIP_UPLOAD_AAB", FastlaneCore::ConfigItem.new(key: :skip_upload_aab, default_value: false), type: Boolean, description: "Whether to skip uploading APK", optional: true, env_name: "SUPPLY_SKIP_UPLOAD_APK", FastlaneCore::ConfigItem.new(key: :skip_upload_apk, end), end UI.user_error!("file at path '#{path}' is not an aab") unless path.end_with?('.aab') UI.user_error!("Could not find aab file at path '#{path}'") unless File.exist?(path) value.each do |path| UI.user_error!("Could not evaluate array from '#{value}'") unless value.kind_of?(Array) verify_block: proc do |value| short_option: "-z", description: "An array of paths to AAB files to upload", type: Array, optional: true, code_gen_sensitive: true, conflicting_options: [:apk, :apk_paths, :aab], env_name: "SUPPLY_AAB_PATHS", FastlaneCore::ConfigItem.new(key: :aab_paths, end), UI.user_error!("aab file is not an aab") unless value.end_with?('.aab') UI.user_error!("Could not find aab file at path '#{value}'") unless File.exist?(value)ad!0T}  Y ) c ! <  e  Zi&\s4{8}6 short_option: "-c", env_name: "SUPPLY_JSON_KEY_DATA", FastlaneCore::ConfigItem.new(key: :json_key_data, end), UI.user_error!("'#{value}' doesn't seem to be a JSON file") unless FastlaneCore::Helper.json_file?(File.expand_path(value)) UI.user_error!("Could not find service account json file at path '#{File.expand_path(value)}'") unless File.exist?(File.expand_path(value)) verify_block: proc do |value| default_value_dynamic: true, default_value: CredentialsManager::AppfileConfig.try_fetch_value(:json_key_file), code_gen_sensitive: true, description: "The path to a file containing service account JSON, used to authenticate with Google", optional: true, # this shouldn't be optional but is until --key and --issuer are completely removed conflicting_options: [:issuer, :key, :json_key_data], short_option: "-j", env_name: "SUPPLY_JSON_KEY", FastlaneCore::ConfigItem.new(key: :json_key, end), UI.important("DEPRECATED --issuer OPTION. Use --json_key instead") verify_block: proc do |value| default_value_dynamic: true, default_value: CredentialsManager::AppfileConfig.try_fetch_value(:issuer), code_gen_sensitive: true, description: "The issuer of the p12 file (email address of the service account)", deprecated: 'Use `--json_key` instead', conflicting_options: [:json_key], short_option: "-i", env_name: "SUPPLY_ISSUER", FastlaneCore::ConfigItem.new(key: :issuer, end), UI.user_error!("Could not find p12 file at path '#{File.expand_path(value)}'") unless File.exist?(File.expand_path(value)) verify_block: proc do |value| default_value_dynamic: true, default_value: Dir["*.p12"].first || CredentialsManager::AppfileConfig.try_fetch_value(:keyfile), code_gen_sensitive: true, description: "The p12 File used to authenticate with Google", deprecated: 'Use `--json_key` instead', conflicting_options: [:json_key], short_option: "-k", env_name: "SUPPLY_KEY", FastlaneCore::ConfigItem.new(key: :key, default_value_dynamic: true), default_value: (Dir["./fastlane/metadata/android"] + Dir["./metadata"]).first, description: "Path to the directory containing the metadata files", optional: true, short_option: "-m", env_name: "SUPPLY_METADATA_PATH", FastlaneCore::ConfigItem.new(key: :metadata_path, end),ad+3uC V  y N  T ( n V JL NR';iV verify_block: proc do |value| optional: true, default_value_dynamic: true, default_value: Dir["*.aab"].last || Dir[File.join("app", "build", "outputs", "bundle", "release", "bundle.aab")].last, code_gen_sensitive: true, conflicting_options: [:apk, :apk_paths, :aab_paths], short_option: "-f", description: "Path to the AAB file to upload", env_name: "SUPPLY_AAB", FastlaneCore::ConfigItem.new(key: :aab, end), end UI.user_error!("file at path '#{path}' is not an apk") unless path.end_with?('.apk') UI.user_error!("Could not find apk file at path '#{path}'") unless File.exist?(path) value.each do |path| UI.user_error!("Could not evaluate array from '#{value}'") unless value.kind_of?(Array) verify_block: proc do |value| short_option: "-u", description: "An array of paths to APK files to upload", type: Array, optional: true, code_gen_sensitive: true, conflicting_options: [:apk, :aab, :aab_paths], env_name: "SUPPLY_APK_PATHS", FastlaneCore::ConfigItem.new(key: :apk_paths, end), UI.user_error!("apk file is not an apk") unless value.end_with?('.apk') UI.user_error!("Could not find apk file at path '#{value}'") unless File.exist?(value) verify_block: proc do |value| optional: true, default_value_dynamic: true, default_value: Dir["*.apk"].last || Dir[File.join("app", "build", "outputs", "apk", "app-Release.apk")].last, code_gen_sensitive: true, conflicting_options: [:apk_paths, :aab, :aab_paths], short_option: "-b", description: "Path to the APK file to upload", env_name: "SUPPLY_APK", FastlaneCore::ConfigItem.new(key: :apk, end), end UI.user_error!("Could not parse service account json JSON::ParseError") rescue JSON::ParserError JSON.parse(value) begin verify_block: proc do |value| default_value_dynamic: true, default_value: CredentialsManager::AppfileConfig.try_fetch_value(:json_key_data_raw), code_gen_sensitive: true, description: "The raw service account JSON data used to authenticate with Google", optional: true, conflicting_options: [:issuer, :key, :json_key],ad5yDr+ } I @  C \  h   M"]{*$? s9 FastlaneCore::ConfigItem.new(key: :deactivate_on_promote, default_value: 300), type: Integer, description: "Timeout for read, open, and send (in seconds)", optional: true, env_name: "SUPPLY_TIMEOUT", FastlaneCore::ConfigItem.new(key: :timeout, default_value: false), type: Boolean, deprecated: "Google Play does this automatically now", description: "Check the other tracks for superseded versions and disable them", optional: true, env_name: "SUPPLY_CHECK_SUPERSEDED_TRACKS", FastlaneCore::ConfigItem.new(key: :check_superseded_tracks, end), UI.user_error!("Could not parse URL '#{value}'") unless value =~ URI.regexp verify_block: proc do |value| optional: true, description: "Root URL for the Google Play API. The provided URL will be used for API calls in place of https://www.googleapis.com/", env_name: "SUPPLY_ROOT_URL", FastlaneCore::ConfigItem.new(key: :root_url, end), end UI.user_error!("Could not find mapping file at path '#{path}'") unless File.exist?(path) value.each do |path| UI.user_error!("Could not evaluate array from '#{value}'") unless value.kind_of?(Array) verify_block: proc do |value| short_option: "-s", description: "An array of paths to mapping files to upload", type: Array, optional: true, conflicting_options: [:mapping], env_name: "SUPPLY_MAPPING_PATHS", FastlaneCore::ConfigItem.new(key: :mapping_paths, end), UI.user_error!("Could not find mapping file at path '#{value}'") unless File.exist?(value) verify_block: proc do |value| optional: true, conflicting_options: [:mapping_paths], short_option: "-d", description: "Path to the mapping file to upload", env_name: "SUPPLY_MAPPING", FastlaneCore::ConfigItem.new(key: :mapping, default_value: false), type: Boolean, description: "Only validate changes with Google Play rather than actually publish", optional: true, env_name: "SUPPLY_VALIDATE_ONLY", FastlaneCore::ConfigItem.new(key: :validate_only, description: "The track to promote to. The default available tracks are: #{Supply::Tracks::DEFAULTS.join(', ')}"), optional: true, env_name: "SUPPLY_TRACK_PROMOTE_TO", FastlaneCore::ConfigItem.new(key: :track_promote_to,