calabash-android 0.3.0.pre8 → 0.3.0.pre9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Rakefile CHANGED
@@ -14,7 +14,7 @@ def build
14
14
  ant_executable,
15
15
  "clean",
16
16
  "package",
17
- "-Dandroid.api.level=#{api_level}",
17
+ "-Dandroid.api.level=16",
18
18
  ]
19
19
  Dir.chdir(@test_server_dir) do
20
20
  STDOUT.sync = true
@@ -23,20 +23,6 @@ def main_activity(app)
23
23
  main_activity
24
24
  end
25
25
 
26
- def api_level
27
- formatted_android_home = ENV["ANDROID_HOME"].gsub("\\", "/")
28
- api_levels = Dir["#{formatted_android_home}/platforms/android-*"].collect{|platform| platform.split("-").last.to_i}.sort
29
- if api_levels.empty?
30
- raise "Android SDK not found. Please install one of more using #{ENV["ANDROID_HOME"]}/tools/android"
31
- end
32
-
33
- api_levels = api_levels.find_all {|l| l > 7}
34
- if api_levels.empty?
35
- raise "Android SDK above 7 not found. Please install one of more using #{ENV["ANDROID_HOME"]}/tools/android"
36
- end
37
- api_levels.first
38
- end
39
-
40
26
  def manifest(app)
41
27
  `java -jar "#{File.dirname(__FILE__)}/lib/manifest_extractor.jar" "#{app}"`
42
28
  end
@@ -1,5 +1,5 @@
1
1
  module Calabash
2
2
  module Android
3
- VERSION = "0.3.0.pre8"
3
+ VERSION = "0.3.0.pre9"
4
4
  end
5
5
  end
@@ -8,4 +8,4 @@
8
8
  # project structure.
9
9
 
10
10
  # Project target.
11
- target=Google Inc.:Google APIs:8
11
+ target=Google Inc.:Google APIs:16
@@ -1,5 +1,6 @@
1
1
  package sh.calaba.instrumentationbackend.actions.search;
2
2
 
3
+ import android.widget.SearchView;
3
4
  import sh.calaba.instrumentationbackend.InstrumentationBackend;
4
5
  import sh.calaba.instrumentationbackend.Result;
5
6
  import sh.calaba.instrumentationbackend.actions.Action;
@@ -7,7 +8,7 @@ import sh.calaba.instrumentationbackend.actions.Action;
7
8
  public class EnterQueryByIndex implements Action {
8
9
  @Override
9
10
  public Result execute(String... args) {
10
- /*
11
+
11
12
  final String query = args[0];
12
13
  final SearchView view = (SearchView) InstrumentationBackend.solo.getView(
13
14
  SearchView.class, Integer.parseInt(args[1]) - 1);
@@ -20,8 +21,6 @@ public class EnterQueryByIndex implements Action {
20
21
  });
21
22
 
22
23
  return Result.successResult();
23
- */
24
- throw new RuntimeException("Not supported in this version. Will be reintroduced when we have a way to support features from newer versions of Android.");
25
24
  }
26
25
 
27
26
  @Override
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.pre8
4
+ version: 0.3.0.pre9
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-03 00:00:00.000000000 Z
12
+ date: 2012-10-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cucumber