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: 5a178515f8a0b337abc1ada74ee5c04b18232e56
4
- data.tar.gz: 1a88adb3e9d0ee5e1d7861e2a81dc8c26c2a7834
3
+ metadata.gz: 4135ff97c70ae62d000fd1a3e78c163e4ceb3625
4
+ data.tar.gz: de1ce02cdb9a22ce5ee5d54726493dc9d13da773
5
5
  SHA512:
6
- metadata.gz: 53b327d43786b76d317ae8db31e58cf10e5511d071fbb830271ae4de7cf38a2010d251dc97387622051ada77867befac190bca15409c39fa491b8ae81377b4fe
7
- data.tar.gz: 175be5db62cec6accf2402101e19d9d505dd91ef52541de3c2cf16465862778f47f5d76089556dddb2001fe578d3888f8c431630504de7ed87700792ca569ee4
6
+ metadata.gz: 480e7af69bc1e7c9933d7ce9df1c2c994c296fcfe728bd9e60ff26d1e599a5bf3cfbbb2c8c2d931e8129ea4a0638e5922dc32e1a8a7bf975be9616243f51e37c
7
+ data.tar.gz: f0fae2a104d395c77d1fdf023948028cafbb1b3968417d6a54619d002c06c94bd0701d492b5ae4814ebe0f9f15e1b3d094d9da6596e820d449ba4d2541cb9335
@@ -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
- "\"#{ENV["ANDROID_HOME"]}/platform-tools/aapt.exe\""
26
+ return "\"#{current_path}/aapt.exe\""
20
27
  else
21
- "\"#{ENV["ANDROID_HOME"]}/platform-tools/aapt\""
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{"#{ENV["ANDROID_HOME"]}/platform-tools/aapt" package -M AndroidManifest.xml -I "#{android_platform}/android.jar" -F dummy.apk}
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
 
@@ -1,3 +1,3 @@
1
1
  module Selendroid
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
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.1
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-04-30 00:00:00.000000000 Z
11
+ date: 2013-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip