honeydew 0.24.1 → 0.25.0
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.
@@ -8,6 +8,10 @@ module Honeydew
|
|
8
8
|
has_app_installed?(package_name)
|
9
9
|
end
|
10
10
|
|
11
|
+
def is_app_installed_in_data?(package_name)
|
12
|
+
has_app_installed_in_data?(package_name)
|
13
|
+
end
|
14
|
+
|
11
15
|
def clear_directory(directory)
|
12
16
|
all_files_in_directory_path = [directory.chomp('/'), '/*'].join
|
13
17
|
adb "shell rm -r #{all_files_in_directory_path}"
|
@@ -70,8 +74,8 @@ module Honeydew
|
|
70
74
|
adb "uninstall #{package_name}"
|
71
75
|
end
|
72
76
|
|
73
|
-
def install_app(apk_location)
|
74
|
-
adb "install #{apk_location}"
|
77
|
+
def install_app(apk_location, opts=[])
|
78
|
+
adb "install #{opts.join(" ")} #{apk_location}"
|
75
79
|
end
|
76
80
|
|
77
81
|
def clear_app_data(package_name)
|
@@ -1,5 +1,10 @@
|
|
1
1
|
module Honeydew
|
2
2
|
module DeviceMatchers
|
3
|
+
|
4
|
+
def has_app_installed_in_data?(package_name)
|
5
|
+
packages_in_data.grep(/#{package_name}/).count > 0
|
6
|
+
end
|
7
|
+
|
3
8
|
def has_text?(text)
|
4
9
|
perform_assertion :is_text_present, :text => text
|
5
10
|
end
|
@@ -67,5 +72,19 @@ module Honeydew
|
|
67
72
|
perform_assertion :has_settings_menu_item,
|
68
73
|
:menuName => item_name
|
69
74
|
end
|
75
|
+
|
76
|
+
private
|
77
|
+
|
78
|
+
def installed_packages
|
79
|
+
adb("shell pm list packages -f").split(/\r\n/)
|
80
|
+
end
|
81
|
+
|
82
|
+
def packages_in_data
|
83
|
+
installed_packages.select {|p| p.starts_with? "package:/data/"}
|
84
|
+
end
|
85
|
+
|
86
|
+
def packages_in_system
|
87
|
+
installed_packages.select {|p| p.starts_with? "package:/system/"}
|
88
|
+
end
|
70
89
|
end
|
71
90
|
end
|
data/lib/honeydew/version.rb
CHANGED
data/server/pom.xml
CHANGED
Binary file
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: honeydew
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.
|
5
|
+
version: 0.25.0
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Selvakumar Natesan
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2013-11-
|
15
|
+
date: 2013-11-19 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: activesupport
|
@@ -214,7 +214,7 @@ files:
|
|
214
214
|
- spec/honeydew/device_matchers_spec.rb
|
215
215
|
- spec/honeydew/device_spec.rb
|
216
216
|
- spec/spec_helper.rb
|
217
|
-
- server/target/honeydew-server-0.
|
217
|
+
- server/target/honeydew-server-0.25.0.jar
|
218
218
|
homepage:
|
219
219
|
licenses: []
|
220
220
|
post_install_message:
|