fastlane-plugin-match_keystore 0.1.4 → 0.1.5

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
  SHA256:
3
- metadata.gz: 0af6b5ad125ace188811247b482ba84e38bd73cad908e32cb2ddd2193059fd9b
4
- data.tar.gz: 01dc72217dd581f967e5c9639459af9557fea5921c9dd6fce4580c75b41ada2c
3
+ metadata.gz: 46a421823a54191491c99165bfb40ca29e0232b57bac26bbaa28d6a2cec3176c
4
+ data.tar.gz: bad930d84f304fea0eb753cd67ea2e02085fd66ea4047f85f3e87bed626c11e2
5
5
  SHA512:
6
- metadata.gz: 61861369ca1cddf195c96ee6402802b01b686a9864974e68563daef6bb0cd79329289a989b16a22e2dacee7348987e1ebaf0e11610625f634e8d7c17aba055d7
7
- data.tar.gz: 1842d84d9bee7a59192a17c3105d1e202d3addcc86f2ea29a582a64847d862d43bee7326fc51c7705de063a1c6ec4483a857d27101919fdd824fb204cefc3879
6
+ metadata.gz: d48f56c4ee2ad3464c0b6d79dc72f7a66e065a5640d8db95d3b93afcff253728f223421c1e91d9e00c4868ba48107fc8f42fbcb4f87c10b6c4da5933142f1341
7
+ data.tar.gz: e0369425848c3284c7fa3901f810dd5ec7a6fd33ce73ce8277d46669a19c1e5c1017aa218dfd04f594c897bf70b95f2d8fd16282a298396673872a00a27d47fb
@@ -127,6 +127,7 @@ module Fastlane
127
127
  package_name = params[:package_name]
128
128
  apk_path = params[:apk_path]
129
129
  existing_keystore = params[:existing_keystore]
130
+ ci_password = params[:ci_password]
130
131
  override_keystore = params[:override_keystore]
131
132
 
132
133
  keystore_name = 'keystore.jks'
@@ -148,7 +149,11 @@ module Fastlane
148
149
 
149
150
  key_path = dir_name + '/key.hex'
150
151
  if !File.file?(key_path)
151
- security_password = other_action.prompt(text: "Security password: ")
152
+ if ci_password.to_s.strip.empty?
153
+ security_password = other_action.prompt(text: "Security password: ")
154
+ else
155
+ security_password = ci_password
156
+ end
152
157
  self.gen_key(key_path, security_password)
153
158
  end
154
159
 
@@ -175,7 +180,7 @@ module Fastlane
175
180
  properties_encrypt_path = keystoreAppDir + '/' + properties_encrypt_name
176
181
 
177
182
  # Create keystore with command
178
- override_keystore = File.file?(existing_keystore)
183
+ override_keystore = !existing_keystore.to_s.strip.empty? && File.file?(existing_keystore)
179
184
  if !File.file?(keystore_path) || override_keystore
180
185
 
181
186
  if File.file?(keystore_path)
@@ -324,6 +329,11 @@ module Fastlane
324
329
  description: "Path of the APK file to sign",
325
330
  optional: false,
326
331
  type: String),
332
+ FastlaneCore::ConfigItem.new(key: :ci_password,
333
+ env_name: "MATCH_KEYSTORE_CI_PASSWORD",
334
+ description: "Password to decrypt keystore.properties file (CI)",
335
+ optional: true,
336
+ type: String),
327
337
  FastlaneCore::ConfigItem.new(key: :existing_keystore,
328
338
  env_name: "MATCH_KEYSTORE_EXISTING",
329
339
  description: "Path of an existing Keystore",
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module MatchKeystore
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-match_keystore
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher NEY