Sha256: 5a307b5cb3415c58f3315dc848799f64d7077140cc27a667cb76c8853d167d52

Contents?: true

Size: 1016 Bytes

Versions: 51

Compression:

Stored size: 1016 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")
  ask_for_setting(:keystore_alias_password, "Please enter the password for 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

51 entries across 51 versions & 1 rubygems

Version Path
calabash-android-0.4.0.pre1 bin/calabash-android-setup.rb
calabash-android-0.3.8 bin/calabash-android-setup.rb
calabash-android-0.3.7 bin/calabash-android-setup.rb
calabash-android-0.3.6 bin/calabash-android-setup.rb
calabash-android-0.3.5 bin/calabash-android-setup.rb
calabash-android-0.3.4 bin/calabash-android-setup.rb
calabash-android-0.3.3 bin/calabash-android-setup.rb
calabash-android-0.3.3.pre5 bin/calabash-android-setup.rb
calabash-android-0.3.3.pre3 bin/calabash-android-setup.rb
calabash-android-0.3.3.pre2 bin/calabash-android-setup.rb
calabash-android-0.3.3.pre1 bin/calabash-android-setup.rb
calabash-android-0.3.2 bin/calabash-android-setup.rb
calabash-android-0.3.2.pre5 bin/calabash-android-setup.rb
calabash-android-0.3.2.pre4 bin/calabash-android-setup.rb
calabash-android-0.3.2.pre3 bin/calabash-android-setup.rb
calabash-android-0.3.2.pre2 bin/calabash-android-setup.rb
calabash-android-0.3.2.pre1 bin/calabash-android-setup.rb
calabash-android-0.3.1 bin/calabash-android-setup.rb
calabash-android-0.3.0 bin/calabash-android-setup.rb
calabash-android-0.3.0.pre10 bin/calabash-android-setup.rb