calabash-android 0.4.0.pre5 → 0.4.0.pre6
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.
|
@@ -116,7 +116,10 @@ def fingerprint_from_apk(app_path)
|
|
|
116
116
|
end
|
|
117
117
|
|
|
118
118
|
def extract_md5_fingerprint(fingerprints)
|
|
119
|
-
|
|
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
|
|
Binary file
|