calabash-android 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (18) hide show
  1. data/CHANGES.txt +5 -0
  2. data/bin/calabash-android-helpers.rb +1 -3
  3. data/bin/calabash-android-run.rb +1 -1
  4. data/lib/calabash-android/lib/TestServer.apk +0 -0
  5. data/lib/calabash-android/version.rb +1 -1
  6. data/test-server/build.xml +7 -10
  7. metadata +2 -13
  8. data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/map_unsupported/GetMapBounds.java +0 -8
  9. data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/map_unsupported/GetMapCenter.java +0 -8
  10. data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/map_unsupported/GetMapMarker.java +0 -8
  11. data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/map_unsupported/GetMapMarkers.java +0 -8
  12. data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/map_unsupported/GetMapZoom.java +0 -9
  13. data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/map_unsupported/PanMapTo.java +0 -9
  14. data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/map_unsupported/SetMapCenter.java +0 -9
  15. data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/map_unsupported/SetMapZoom.java +0 -8
  16. data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/map_unsupported/TapAwayFromMarkers.java +0 -8
  17. data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/map_unsupported/TapMapMarker.java +0 -8
  18. data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/map_unsupported/UnsupportedMapAction.java +0 -21
data/CHANGES.txt CHANGED
@@ -1,3 +1,8 @@
1
+ 0.3.4:
2
+ Removed maps_unsupported
3
+ The test will fail at run time if the device does not have
4
+ com.google.android.maps installed.
5
+
1
6
  0.3.3:
2
7
  A series of bugfixes.
3
8
 
@@ -17,7 +17,7 @@ def print_usage
17
17
  prints more detailed help information.
18
18
  gen
19
19
  generate a features folder structure.
20
- setup
20
+ setup
21
21
  sets up a non-default keystore to use with this test project.
22
22
  build <apk>
23
23
  builds the test server that will be used when testing the app.
@@ -29,8 +29,6 @@ def print_usage
29
29
  <options> can be
30
30
  -v, --verbose
31
31
  Turns on verbose logging
32
- --google-maps-support
33
- Adds supports for Google Maps to the test server
34
32
  EOF
35
33
  end
36
34
 
@@ -39,7 +39,7 @@ def calabash_run(app_path = nil)
39
39
  end
40
40
 
41
41
  STDOUT.sync = true
42
- arguments = ARGV - ["--google-maps-support", "--no-build"]
42
+ arguments = ARGV - ["--no-build"]
43
43
  cmd = "cucumber #{arguments.join(" ")} #{env}"
44
44
  log cmd
45
45
  exit_code = system(cmd)
@@ -1,5 +1,5 @@
1
1
  module Calabash
2
2
  module Android
3
- VERSION = "0.3.3"
3
+ VERSION = "0.3.4"
4
4
  end
5
5
  end
@@ -5,7 +5,7 @@
5
5
  </description>
6
6
 
7
7
  <property name="adb.device.arg" value="" />
8
- <property environment="env"/>
8
+ <property environment="env"/>
9
9
  <property file="build.properties"/>
10
10
  <property name="staging.dir" location="staging"/>
11
11
  <property name="bin.dir" location="bin"/>
@@ -31,7 +31,7 @@
31
31
  <taskdef name="apkbuilder" classname="com.android.ant.ApkBuilderTask" classpathref="android.antlibs" />
32
32
 
33
33
 
34
-
34
+
35
35
 
36
36
  <path id="jar.libs.ref">
37
37
  <fileset dir="${staging.dir}/libs/" includes="*.jar" />
@@ -40,7 +40,7 @@
40
40
  <path id="cucumber.path">
41
41
  <fileset dir="cucumber/" includes="*.jar" />
42
42
  </path>
43
-
43
+
44
44
  <path id="android.target.classpath">
45
45
  <fileset dir="${env.ANDROID_HOME}/platforms/android-${android.api.level}/" includes="*.jar"/>
46
46
  </path>
@@ -60,10 +60,7 @@
60
60
 
61
61
  <target name="-prepare.testserver" description="Makes sure the testserver matches the tested application by looking at its manifest file">
62
62
  <copy todir="${staging.dir}">
63
- <fileset dir="instrumentation-backend">
64
- <exclude name="src/sh/calaba/instrumentationbackend/actions/map_unsupported/*.java" if="${google_maps_support}"/>
65
- <exclude name="src/sh/calaba/instrumentationbackend/actions/map/*.java" unless="${google_maps_support}"/>
66
- </fileset>
63
+ <fileset dir="instrumentation-backend" />
67
64
  </copy>
68
65
  <copy todir="${staging.dir}/libs">
69
66
  <fileset erroronmissingdir="false" dir="${env.ANDROID_HOME}/add-ons/addon-google_apis-google_inc_-${android.api.level}/libs"/>
@@ -77,7 +74,7 @@
77
74
 
78
75
  <target name="-compile">
79
76
  <antcall target="-stage" />
80
- <javac
77
+ <javac
81
78
  srcdir="${staging.dir}/src"
82
79
  destdir="${bin.dir}"
83
80
  verbose="${verbose}"
@@ -90,7 +87,7 @@
90
87
  </javac>
91
88
  </target>
92
89
 
93
-
90
+
94
91
  <target name="package" depends="-check.preconditions">
95
92
  <antcall target="-compile" />
96
93
  <antcall target="-aapt" />
@@ -98,7 +95,7 @@
98
95
  <antcall target="-apk" />
99
96
  </target>
100
97
 
101
-
98
+
102
99
  <target name="clean" description="clean up">
103
100
  <delete dir="${staging.dir}"/>
104
101
  <delete dir="${bin.dir}"/>
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.3
4
+ version: 0.3.4
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-11-21 00:00:00.000000000 Z
12
+ date: 2012-11-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cucumber
@@ -215,17 +215,6 @@ files:
215
215
  - test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/map/SetMapZoom.java
216
216
  - test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/map/TapAwayFromMarkers.java
217
217
  - test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/map/TapMapMarker.java
218
- - test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/map_unsupported/GetMapBounds.java
219
- - test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/map_unsupported/GetMapCenter.java
220
- - test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/map_unsupported/GetMapMarker.java
221
- - test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/map_unsupported/GetMapMarkers.java
222
- - test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/map_unsupported/GetMapZoom.java
223
- - test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/map_unsupported/PanMapTo.java
224
- - test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/map_unsupported/SetMapCenter.java
225
- - test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/map_unsupported/SetMapZoom.java
226
- - test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/map_unsupported/TapAwayFromMarkers.java
227
- - test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/map_unsupported/TapMapMarker.java
228
- - test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/map_unsupported/UnsupportedMapAction.java
229
218
  - test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/scrolling/ScrollDown.java
230
219
  - test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/scrolling/ScrollUp.java
231
220
  - test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/search/EnterQueryByIndex.java
@@ -1,8 +0,0 @@
1
- package sh.calaba.instrumentationbackend.actions.map_unsupported;
2
-
3
- public class GetMapBounds extends UnsupportedMapAction {
4
- @Override
5
- public String key() {
6
- return "get_map_bounds";
7
- }
8
- }
@@ -1,8 +0,0 @@
1
- package sh.calaba.instrumentationbackend.actions.map_unsupported;
2
-
3
- public class GetMapCenter extends UnsupportedMapAction {
4
- @Override
5
- public String key() {
6
- return "get_map_center";
7
- }
8
- }
@@ -1,8 +0,0 @@
1
- package sh.calaba.instrumentationbackend.actions.map_unsupported;
2
-
3
- public class GetMapMarker extends UnsupportedMapAction {
4
- @Override
5
- public String key() {
6
- return "get_map_marker";
7
- }
8
- }
@@ -1,8 +0,0 @@
1
- package sh.calaba.instrumentationbackend.actions.map_unsupported;
2
-
3
- public class GetMapMarkers extends UnsupportedMapAction {
4
- @Override
5
- public String key() {
6
- return "get_map_markers";
7
- }
8
- }
@@ -1,9 +0,0 @@
1
- package sh.calaba.instrumentationbackend.actions.map_unsupported;
2
-
3
- public class GetMapZoom extends UnsupportedMapAction {
4
-
5
- @Override
6
- public String key() {
7
- return "get_map_zoom";
8
- }
9
- }
@@ -1,9 +0,0 @@
1
- package sh.calaba.instrumentationbackend.actions.map_unsupported;
2
-
3
- public class PanMapTo extends UnsupportedMapAction {
4
-
5
- @Override
6
- public String key() {
7
- return "pan_map_to";
8
- }
9
- }
@@ -1,9 +0,0 @@
1
- package sh.calaba.instrumentationbackend.actions.map_unsupported;
2
-
3
- public class SetMapCenter extends UnsupportedMapAction {
4
-
5
- @Override
6
- public String key() {
7
- return "set_map_center";
8
- }
9
- }
@@ -1,8 +0,0 @@
1
- package sh.calaba.instrumentationbackend.actions.map_unsupported;
2
-
3
- public class SetMapZoom extends UnsupportedMapAction {
4
- @Override
5
- public String key() {
6
- return "set_map_zoom";
7
- }
8
- }
@@ -1,8 +0,0 @@
1
- package sh.calaba.instrumentationbackend.actions.map_unsupported;
2
-
3
- public class TapAwayFromMarkers extends UnsupportedMapAction {
4
- @Override
5
- public String key() {
6
- return "tap_map_away_from_markers";
7
- }
8
- }
@@ -1,8 +0,0 @@
1
- package sh.calaba.instrumentationbackend.actions.map_unsupported;
2
-
3
- public class TapMapMarker extends UnsupportedMapAction {
4
- @Override
5
- public String key() {
6
- return "tap_map_marker_by_title";
7
- }
8
- }
@@ -1,21 +0,0 @@
1
- package sh.calaba.instrumentationbackend.actions.map_unsupported;
2
-
3
- import sh.calaba.instrumentationbackend.Result;
4
- import sh.calaba.instrumentationbackend.actions.Action;
5
-
6
- public class UnsupportedMapAction implements Action {
7
-
8
- @Override
9
- public Result execute(String... args) {
10
- throw new RuntimeException(
11
- "Google Maps is not supported by default.\n" +
12
- "You can add support by following running calabash-android with --google-maps-support\n" +
13
- "See more at: https://github.com/calabash/calabash-android/wiki/Google-Maps-Support"
14
- );
15
- }
16
-
17
- @Override
18
- public String key() {
19
- return null;
20
- }
21
- }