Sha256: a12bc9cdec5b4d91981402785a6d7f6182f8ca634d08662c054ea02fa0e846b6
Contents?: true
Size: 925 Bytes
Versions: 55
Compression:
Stored size: 925 Bytes
Contents
require "calabash-android/version" def calabash_setup unless File.exists?(ENV["ANDROID_HOME"] || "") puts "Please set ANDROID_HOME to point to the Android SDK" exit 1 end @settings = {} puts "Please enter keystore information to use a custom keystore instead of the default" ask_for_setting(:keystore_location, "Please enter keystore location") ask_for_setting(:keystore_password, "Please enter the password for the keystore") ask_for_setting(:keystore_alias, "Please enter the alias") open('.calabash_settings', 'w') do |f| f.puts @settings.to_json end puts "Saved your settings to .calabash_settings. You can edit the settings manually or run this setup script again" end def ask_for_setting(key, msg) puts msg @settings[key] = STDIN.gets.chomp end def platform_versions Dir["#{ENV["ANDROID_HOME"]}/platforms/android-*"].collect{|platform| platform.split("-").last.to_i}.sort end
Version data entries
55 entries across 55 versions & 2 rubygems