calabash-android 0.5.10 → 0.5.11

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: 356ad3323356f3f66bb017a8b926c461a0cd98fc
4
- data.tar.gz: e77f4b392f2a2d6a473fb101a4e8546edf279238
3
+ metadata.gz: 94c6e2b470cedf9656247543c5dc1770aabcc1f4
4
+ data.tar.gz: 802fa73e9c59c81b9bce5a916caf8efea09120ae
5
5
  SHA512:
6
- metadata.gz: f224a135f4f5d667c3454f0cb824b259d16e220fdc3dd2226320b48e9daf7074e21f15f16901da4cd405ad2a4b836dfb78a5a2b57ae7a47caf09b58ee00fd61a
7
- data.tar.gz: 11c67a0a5c89e1412359c374801ce2ef16f135b9a98ce212e246ba09754082981b40fae28cdd79a3511e3ce8db726fdeacdadf251dc3c1dc4c14a8e7d67c549c
6
+ metadata.gz: 48cf3da5067bafc7c92ced64f27ddec626bbe51e242a912778be62ccc75e7aa03851e50637d3ba9dd1abd1c1cdf4945bd04dacbbd490ea3a9f839814f518f836
7
+ data.tar.gz: 3d94971acca24214001a20581a8257583e157ea4ddd3d47b9604b52e3bc2675df4f030538b9a9a742e4ce0d238c922e6e55b4653487b80c91246eff475372892
@@ -1,3 +1,8 @@
1
+ 0.5.11
2
+ Change the way Calabash (re)signs applications. Use the encryption
3
+ of the supplied keystore, and always use SHA1 as the digest
4
+ algorithm.
5
+
1
6
  0.5.10
2
7
  Fix building and signing not working if the language of the
3
8
  host computer was not English.
@@ -48,7 +48,15 @@ class JavaKeystore
48
48
  raise "Cannot sign with a miss configured keystore" if errors
49
49
  raise "No such file: #{apk_path}" unless File.exists?(apk_path)
50
50
 
51
- unless system_with_stdout_on_success(Env.jarsigner_path, '-sigalg', signature_algorithm_name, '-digestalg', 'SHA1', '-signedjar', dest_path, '-storepass', password, '-keystore', location, apk_path, keystore_alias)
51
+ # E.g. MD5withRSA or MD5withRSAandMGF1
52
+ encryption = signature_algorithm_name.split('with')[1].split('and')[0]
53
+ signing_algorithm = "SHA1with#{encryption}"
54
+ digest_algorithm = 'SHA1'
55
+
56
+ log "Signing using the signature algorithm: '#{signing_algorithm}'"
57
+ log "Signing using the digest algorithm: '#{digest_algorithm}'"
58
+
59
+ unless system_with_stdout_on_success(Env.jarsigner_path, '-sigfile', 'CERT', '-sigalg', signing_algorithm, '-digestalg', digest_algorithm, '-signedjar', dest_path, '-storepass', password, '-keystore', location, apk_path, keystore_alias)
52
60
  raise "Could not sign app: #{apk_path}"
53
61
  end
54
62
  end
@@ -1,5 +1,5 @@
1
1
  module Calabash
2
2
  module Android
3
- VERSION = "0.5.10"
3
+ VERSION = "0.5.11"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: calabash-android
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.10
4
+ version: 0.5.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Maturana Larsen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-04 00:00:00.000000000 Z
11
+ date: 2015-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber