fastlane-plugin-match_keystore 0.1.16 → 0.1.17
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.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 215e841f331c07eb0cc8983092e98a7bab444866adb58c13d116baf2e50d735a
|
|
4
|
+
data.tar.gz: c1a225a8f120ee5727182341ab354b83cc2daf9b0b514a97b5b7fe0c3c0f5f7b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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)",
|