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 +1 -1
- data/lib/calabash-android/helpers.rb +0 -14
- data/lib/calabash-android/lib/TestServer.apk +0 -0
- data/lib/calabash-android/version.rb +1 -1
- data/test-server/instrumentation-backend/project.properties +1 -1
- data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/search/EnterQueryByIndex.java +2 -3
- metadata +2 -2
data/Rakefile
CHANGED
@@ -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
|
Binary file
|
@@ -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.
|
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-
|
12
|
+
date: 2012-10-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: cucumber
|