calabash-android 0.3.0.pre9 → 0.3.0.pre10

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,6 +5,7 @@ def calabash_build(app)
5
5
  test_server_file_name = test_server_path(app)
6
6
  unsigned_test_apk = File.join(File.dirname(__FILE__), '..', 'lib/calabash-android/lib/TestServer.apk')
7
7
  android_platform = Dir["#{ENV["ANDROID_HOME"].gsub("\\", "/")}/platforms/android-*"].last
8
+ raise "No Android SDK found in #{ENV["ANDROID_HOME"].gsub("\\", "/")}/platforms/" unless android_platform
8
9
  Dir.mktmpdir do |workspace_dir|
9
10
  Dir.chdir(workspace_dir) do
10
11
  FileUtils.cp(unsigned_test_apk, "TestServer.apk")
@@ -31,6 +32,7 @@ def calabash_build(app)
31
32
 
32
33
  cmd = "#{jarsigner_path} -sigalg MD5withRSA -digestalg SHA1 -signedjar #{test_server_file_name} -storepass #{keystore["keystore_password"]} -keystore \"#{File.expand_path keystore["keystore_location"]}\" #{workspace_dir}/TestServer.apk #{keystore["keystore_alias"]}"
33
34
  unless system(cmd)
35
+ puts "jarsigner command: #{cmd}"
34
36
  raise "Could not sign test server"
35
37
  end
36
38
  end
@@ -1,5 +1,5 @@
1
1
  module Calabash
2
2
  module Android
3
- VERSION = "0.3.0.pre9"
3
+ VERSION = "0.3.0.pre10"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: calabash-android
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0.pre9
4
+ version: 0.3.0.pre10
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-04 00:00:00.000000000 Z
12
+ date: 2012-10-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cucumber