Sha256: 1bc04d9f205ffe712ec350ee2a6272521612e2e7b36e16d429db2846d7b12002
Contents?: true
Size: 823 Bytes
Versions: 1
Compression:
Stored size: 823 Bytes
Contents
require 'pathname' module Ruboto module SdkVersions MINIMUM_SUPPORTED_SDK_LEVEL = 7 MINIMUM_SUPPORTED_SDK = "android-#{MINIMUM_SUPPORTED_SDK_LEVEL}" DEFAULT_TARGET_SDK_LEVEL = 8 DEFAULT_TARGET_SDK = "android-#{DEFAULT_TARGET_SDK_LEVEL}" if ENV['ANDROID_HOME'] ANDROID_HOME = ENV['ANDROID_HOME'] else adb_location = `#{RUBY_PLATFORM =~ /mingw|mswin/ ? "where" : "which"} adb`.chomp raise 'Unable to locate ANDROID_HOME. Either set the ANDROID_HOME environment variable or add the location of the "adb" command to your path.' if adb_location.empty? ANDROID_HOME = File.dirname(File.dirname(Pathname.new(adb_location).realpath)) end ANDROID_TOOLS_REVISION = File.read("#{ANDROID_HOME}/tools/source.properties").slice(/Pkg.Revision=\d+/).slice(/\d+$/).to_i end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruboto-0.10.1 | lib/ruboto/sdk_versions.rb |