diff --git a/lib/fastlane/plugin/match_keystore/actions/match_keystore_action.rb b/lib/fastlane/plugin/match_keystore/actions/match_keystore_action.rb index c751bc1..abf30a9 100644 --- a/lib/fastlane/plugin/match_keystore/actions/match_keystore_action.rb +++ b/lib/fastlane/plugin/match_keystore/actions/match_keystore_action.rb @@ -92,13 +92,14 @@ def self.decrypt_file(encrypt_file, clear_file, key_path) def self.sign_apk(apk_path, keystore_path, key_password, alias_name, alias_password, zip_align) build_tools_path = self.get_build_tools() + UI.message("BUild tools path: #{build_tools_path}") # https://developer.android.com/studio/command-line/zipalign if zip_align == true apk_path_aligned = apk_path.gsub(".apk", "-aligned.apk") `rm -f '#{apk_path_aligned}'` UI.message("Aligning APK (zipalign): #{apk_path_aligned}") - `#{build_tools_path}zipalign 4 '#{apk_path}' '#{apk_path_aligned}'` + `#{build_tools_path}zipalign -f -c -v 4 '#{apk_path}' '#{apk_path_aligned}'` else UI.message("No zip align!") apk_path_aligned = apk_path diff --git a/lib/fastlane/plugin/match_keystore/version.rb b/lib/fastlane/plugin/match_keystore/version.rb index 4e24436..9b85434 100644 --- a/lib/fastlane/plugin/match_keystore/version.rb +++ b/lib/fastlane/plugin/match_keystore/version.rb @@ -1,5 +1,5 @@ module Fastlane module MatchKeystore - VERSION = "0.1.12" + VERSION = "0.1.13" end end