calabash-android 0.4.0.pre5 → 0.4.0.pre6

Sign up to get free protection for your applications and to get access to all the features.
@@ -116,7 +116,10 @@ def fingerprint_from_apk(app_path)
116
116
  end
117
117
 
118
118
  def extract_md5_fingerprint(fingerprints)
119
- fingerprints = fingerprints.gsub("\xA0", "")
119
+ if fingerprints.encoding.name == "CP850"
120
+ fingerprints = fingerprints.gsub("\xA0".force_encoding("CP850"),"")
121
+ end
122
+
120
123
  m = fingerprints.scan(/MD5\s*:\s*((?:\h\h:){15}\h\h)/).flatten
121
124
  raise "No MD5 fingerprint found:\n #{fingerprints}" if m.empty?
122
125
  m.first
@@ -1,5 +1,5 @@
1
1
  module Calabash
2
2
  module Android
3
- VERSION = "0.4.0.pre5"
3
+ VERSION = "0.4.0.pre6"
4
4
  end
5
5
  end
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.4.0.pre5
4
+ version: 0.4.0.pre6
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors: