Sha256: aaebe8c27ed72ce574a38ddd4ee58683f650b90ef4ba54414d5c339b5533c593
Contents?: true
Size: 1.26 KB
Versions: 3
Compression:
Stored size: 1.26 KB
Contents
require 'high_five/ios_helper' require 'plist' module HighFive module Thor module Tasks class IosTasks < ::HighFive::Thor::Task include ::Thor::Actions include ::HighFive::IosHelper namespace :ios desc "set_version", "build the debug apk via ant debug" method_option :version, :aliases => "-v", :desc => "Set main version" method_option :build_number, :aliases => '-b', :desc => "set build number" def set_version info = info_plist_path puts "Using #{info}" plist = Plist::parse_xml(info) if (options[:version]) puts "Changing version from #{plist["CFBundleShortVersionString"]} => #{options[:version]}" plist["CFBundleShortVersionString"] = options[:version] end if (options[:build_number]) puts "Changind build number from #{plist["CFBundleVersion"]} => #{options[:build_number]}" plist["CFBundleVersion"] = options[:build_number] end File.open(info, 'w') do |f| f.write(Plist::Emit.dump(plist)) end puts "Wrote Info.plist succesfully" end desc "build", "build the apk" def build end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
high_five-0.2.2 | lib/high_five/thor/tasks/ios_tasks.rb |
high_five-0.2.1 | lib/high_five/thor/tasks/ios_tasks.rb |
high_five-0.2.0 | lib/high_five/thor/tasks/ios_tasks.rb |