calabash-android 0.2.20 → 0.2.21

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,6 @@
1
+ 0.2.21:
2
+ Various bug fixes related to keystore.
3
+
1
4
  0.2.20:
2
5
  Added click_on_view_by_description action
3
6
 
@@ -12,20 +12,20 @@ def calabash_build(app)
12
12
  FileUtils.cp_r(test_server_template_dir, workspace_dir)
13
13
 
14
14
  ant_executable = (is_windows? ? "ant.bat" : "ant")
15
+ args = [
16
+ ant_executable,
17
+ "clean",
18
+ "package",
19
+ "-Dtested.package_name=#{package_name(app)}",
20
+ "-Dtested.main_activity=#{main_activity(app)}",
21
+ "-Dtested.project.apk=\"#{app}\"",
22
+ "-Dandroid.api.level=#{api_level}",
23
+ "-Dkey.store=\"#{File.expand_path keystore["keystore_location"]}\"",
24
+ "-Dkey.store.password=#{keystore["keystore_password"]}",
25
+ "-Dkey.alias=#{keystore["keystore_alias"]}",
26
+ "-Dkey.alias.password=#{keystore["keystore_alias_password"]}",
27
+ ]
15
28
  Dir.chdir(@test_server_dir) {
16
- args = [
17
- ant_executable,
18
- "clean",
19
- "package",
20
- "-Dtested.package_name=#{package_name(app)}",
21
- "-Dtested.main_activity=#{main_activity(app)}",
22
- "-Dtested.project.apk=\"#{app}\"",
23
- "-Dandroid.api.level=#{api_level}",
24
- "-Dkey.store=\"#{File.expand_path keystore["keystore_location"]}\"",
25
- "-Dkey.store.password=#{keystore["keystore_password"]}",
26
- "-Dkey.alias=#{keystore["keystore_alias"]}",
27
- "-Dkey.alias.password=#{keystore["keystore_alias_password"]}",
28
- ]
29
29
  STDOUT.sync = true
30
30
  IO.popen(args.join(" ")) do |io|
31
31
  io.each { |s| print s }
@@ -62,6 +62,14 @@ module Operations
62
62
  default_device.screenshot(options)
63
63
  end
64
64
 
65
+ def set_gps_coordinates_from_location(location)
66
+ default_device.set_gps_coordinates_from_location(location)
67
+ end
68
+
69
+ def set_gps_coordinates(latitude, longitude)
70
+ default_device.set_gps_coordinates(latitude, longitude)
71
+ end
72
+
65
73
  def wait_for(timeout, &block)
66
74
  begin
67
75
  Timeout::timeout(timeout) do
@@ -1,5 +1,5 @@
1
1
  module Calabash
2
2
  module Android
3
- VERSION = "0.2.20"
3
+ VERSION = "0.2.21"
4
4
  end
5
5
  end
@@ -46,7 +46,7 @@
46
46
  <path id="android.target.classpath">
47
47
  <fileset dir="${env.ANDROID_HOME}/platforms/android-${android.api.level}/" includes="*.jar"/>
48
48
  </path>
49
-
49
+
50
50
  <target name="-check.preconditions">
51
51
  <available file="${tested.project.apk}" property="tested.apk.found" />
52
52
  <fail unless="tested.apk.found" message="Tested apk: '${tested.project.apk}' could not be found"/>
@@ -177,7 +177,7 @@
177
177
 
178
178
 
179
179
  <target name ="-sign">
180
- <exec executable="jarsigner">
180
+ <exec executable="jarsigner" failonerror="true">
181
181
  <arg value="-sigalg" />
182
182
  <arg value="MD5withRSA" />
183
183
  <arg value="-digestalg" />
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.2.20
4
+ version: 0.2.21
5
5
  prerelease:
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-09-13 00:00:00.000000000 Z
12
+ date: 2012-09-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cucumber