selendroid 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4135ff97c70ae62d000fd1a3e78c163e4ceb3625
|
4
|
+
data.tar.gz: de1ce02cdb9a22ce5ee5d54726493dc9d13da773
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 480e7af69bc1e7c9933d7ce9df1c2c994c296fcfe728bd9e60ff26d1e599a5bf3cfbbb2c8c2d931e8129ea4a0638e5922dc32e1a8a7bf975be9616243f51e37c
|
7
|
+
data.tar.gz: f0fae2a104d395c77d1fdf023948028cafbb1b3968417d6a54619d002c06c94bd0701d492b5ae4814ebe0f9f15e1b3d094d9da6596e820d449ba4d2541cb9335
|
data/lib/selendroid/commands.rb
CHANGED
@@ -15,10 +15,17 @@ def is_windows?
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def aapt_command
|
18
|
+
aapt_base_path = "\"#{ENV["ANDROID_HOME"]}/platform-tools\""
|
19
|
+
current_path=nil
|
20
|
+
if File.exist? File.dirname(aapt_base_path)
|
21
|
+
current_path=aapt_base_path
|
22
|
+
else
|
23
|
+
current_path="\"#{ENV["ANDROID_HOME"]}/build-tools/17.0.0\""
|
24
|
+
end
|
18
25
|
if is_windows?
|
19
|
-
|
26
|
+
return "\"#{current_path}/aapt.exe\""
|
20
27
|
else
|
21
|
-
"\"#{
|
28
|
+
return "\"#{current_path}/aapt\""
|
22
29
|
end
|
23
30
|
end
|
24
31
|
|
@@ -23,7 +23,7 @@ def rebuild_selendroid(app)
|
|
23
23
|
raise "Could not replace package name in manifest"
|
24
24
|
end
|
25
25
|
|
26
|
-
unless system %Q{
|
26
|
+
unless system %Q{#{aapt_command} package -M AndroidManifest.xml -I "#{android_platform}/android.jar" -F dummy.apk}
|
27
27
|
raise "Could not create dummy.apk"
|
28
28
|
end
|
29
29
|
|
data/lib/selendroid/version.rb
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: selendroid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dominik Dary
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-05-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubyzip
|