fastlane-plugin-match_keystore 0.1.16 → 0.1.17

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: aaedb3d25e8614b96c43af4e88ddbc46f56e71a7a97a92d2336507afc3afded8
4
- data.tar.gz: 741fc33e956879046126da3fec54cb6f939b34eb8859e22d27244de8a7e6f823
3
+ metadata.gz: 215e841f331c07eb0cc8983092e98a7bab444866adb58c13d116baf2e50d735a
4
+ data.tar.gz: c1a225a8f120ee5727182341ab354b83cc2daf9b0b514a97b5b7fe0c3c0f5f7b
5
5
  SHA512:
6
- metadata.gz: e0d3ef8b5d0b9c5a66fcc8bece867e8d230e9f44764b963774cbdfbe110b38f7ef2446bf9592fd913716da8267471ef1cb7d2b6d30a70e494ef8ae75d78c84a9
7
- data.tar.gz: 37849dd986d716d6ce16ab7fe8af4f3d18d7b8c3a1840f6f7d4ccade7121b7ced9ac2085e486c8c4442da6f7bf76435ac7581267a730bb204619f5c41d8b558a
6
+ metadata.gz: d1573d798e69ed20b7c262d2b19a636ed0bcb5b961ef98fb88c6afc043eb84d5fd2089b3928a249429a588539cc8e303d00876e4358835fd7d08991bd62a758c
7
+ data.tar.gz: e954784d29bcede31cc6ff12944f24f50d3b3035cb1f4b35122fac72f9db57758c374a2e1b0a9b4a5aeed6565cbafdc85208d7d3120949655ba08fb3bcf64570
@@ -251,7 +251,7 @@ module Fastlane
251
251
  UI.message("Build-tools path: #{build_tools_path}")
252
252
 
253
253
  # https://developer.android.com/studio/command-line/zipalign
254
- if zip_align == true
254
+ if zip_align != false
255
255
  apk_path_aligned = apk_path.gsub(".apk", "-aligned.apk")
256
256
  `rm -f '#{apk_path_aligned}'`
257
257
  UI.message("Aligning APK (zipalign): #{apk_path}")
@@ -264,7 +264,7 @@ module Fastlane
264
264
  end
265
265
 
266
266
  else
267
- UI.message("No zip align!")
267
+ UI.message("No zip align - deactivated via parameter!")
268
268
  apk_path_aligned = apk_path
269
269
  end
270
270
  apk_path_signed = apk_path.gsub(".apk", "-signed.apk")
@@ -288,7 +288,9 @@ module Fastlane
288
288
  output = `#{build_tools_path}apksigner verify '#{apk_path_signed}'`
289
289
  puts ""
290
290
  puts output
291
- `rm -f '#{apk_path_aligned}'`
291
+ if zip_align != false
292
+ `rm -f '#{apk_path_aligned}'`
293
+ end
292
294
 
293
295
  apk_path_signed
294
296
  end
@@ -367,6 +369,7 @@ module Fastlane
367
369
  clear_keystore = params[:clear_keystore]
368
370
  unit_test = params[:unit_test]
369
371
  build_tools_version = params[:build_tools_version]
372
+ zip_align = params[:zip_align]
370
373
 
371
374
  # Test OpenSSL/LibreSSL
372
375
  if unit_test
@@ -579,13 +582,13 @@ module Fastlane
579
582
  key_password,
580
583
  alias_name,
581
584
  alias_password,
582
- true, # Zip align
585
+ zip_align, # Zip align
583
586
  build_tools_version # Buil-tools version
584
587
  )
585
588
  puts ''
586
589
  end
587
590
  else
588
- UI.message("No APK file found to sign!")
591
+ UI.message("No APK file found at: #{apk_path}")
589
592
  end
590
593
 
591
594
  # Prepare contect shared values for next lanes:
@@ -662,7 +665,12 @@ module Fastlane
662
665
  env_name: "MATCH_KEYSTORE_BUILD_TOOLS_VERSION",
663
666
  description: "Set built-tools version (by default latest available on machine)",
664
667
  optional: true,
665
- type: String),
668
+ type: String),
669
+ FastlaneCore::ConfigItem.new(key: :zip_align,
670
+ env_name: "MATCH_KEYSTORE_ZIPALIGN",
671
+ description: "Define if plugin will run zipalign on APK before sign it (true by default)",
672
+ optional: true,
673
+ type: Boolean),
666
674
  FastlaneCore::ConfigItem.new(key: :clear_keystore,
667
675
  env_name: "MATCH_KEYSTORE_CLEAR",
668
676
  description: "Clear the local keystore (false by default)",
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module MatchKeystore
3
- VERSION = "0.1.16"
3
+ VERSION = "0.1.17"
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.16
4
+ version: 0.1.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher NEY