class Xambuild::JavaSign
Public Class Methods
detect_jarsigner_executable()
click to toggle source
# File lib/fastlane/plugin/xambuild/helpers/generators/java_sign.rb, line 22 def detect_jarsigner_executable jarsigner = ENV["JAVA_HOME"] ? File.join(ENV["JAVA_HOME"], "bin", "jarsigner") : "jarsigner" jarsigner end
generate()
click to toggle source
# File lib/fastlane/plugin/xambuild/helpers/generators/java_sign.rb, line 4 def generate build_apk_path = CsProj.cache[:build_apk_path] CsProj.cache[:signed_apk_path] = "#{build_apk_path}-unaligned" parts = prefix parts << detect_jarsigner_executable parts += options parts << build_apk_path parts << CsProj.config[:keystore_alias] parts += pipe parts end
options()
click to toggle source
# File lib/fastlane/plugin/xambuild/helpers/generators/java_sign.rb, line 28 def options config = CsProj.config options = [] options << "-verbose" if $verbose options << "-sigalg MD5withRSA" options << "-digestalg SHA1" options << "-storepass \"#{config[:keystore_password]}\"" options << "-keystore \"#{config[:keystore_path]}\"" options << "-tsa #{config[:keystore_tsa]}" options << "-signedjar \"#{CsProj.cache[:signed_apk_path]}\"" options end
pipe()
click to toggle source
# File lib/fastlane/plugin/xambuild/helpers/generators/java_sign.rb, line 43 def pipe pipe = [] pipe end
prefix()
click to toggle source
# File lib/fastlane/plugin/xambuild/helpers/generators/java_sign.rb, line 18 def prefix [""] end