Class: EmergeCLI::Commands::Build::Distribution::ValidateApp
- Inherits:
-
GlobalOptions
- Object
- Dry::CLI::Command
- GlobalOptions
- EmergeCLI::Commands::Build::Distribution::ValidateApp
- Defined in:
- lib/commands/build/distribution/validate.rb
Constant Summary collapse
- PLIST_START =
Constants
'<plist'.freeze
- PLIST_STOP =
'</plist>'.freeze
- UTF8_ENCODING =
'UTF-8'.freeze
- STRING_FORMAT =
'binary'.freeze
- EMPTY_STRING =
''.freeze
- EXPECTED_ABI =
'arm64-v8a'.freeze
Instance Method Summary collapse
Methods inherited from GlobalOptions
Instance Method Details
#call(**options) ⇒ Object
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/commands/build/distribution/validate.rb', line 25 def call(**) @options = before() Sync do file_extension = File.extname(@options[:path]) case file_extension when '.xcarchive' handle_xcarchive when '.ipa' handle_ipa when '.app' handle_app when '.apk' handle_apk else raise "Unknown file extension: #{file_extension}" end end end |