Sha256: 3ef65880199e758f24604905f6a24104a5e42b0faf078f490b9927ce9228fee7
Contents?: true
Size: 971 Bytes
Versions: 5
Compression:
Stored size: 971 Bytes
Contents
module Calabash # @!visibility private module CLI # @!visibility private module Resign def parse_resign_arguments! fail('Can only resign Android applications') unless @platform.nil? || @platform == :android application = @arguments.shift if application.nil? fail('Must supply application as first parameter to resign', :resign) elsif !File.exists?(application) fail("File '#{application}' does not exist", :resign) else extension = File.extname(application) case extension when '.apk' set_platform!(:android) Calabash::Android::Build::Resigner.new(application).resign! when '.ipa', '.app' set_platform!(:ios) fail('Can only resign Android applications (apk)') else fail('Application must be an apk', :resign) end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems