Class: Xambuild::JavaSignCommandGenerator
- Inherits:
-
Object
- Object
- Xambuild::JavaSignCommandGenerator
- Defined in:
- lib/fastlane/plugin/xambuild/helpers/generators/java_sign_command_generator.rb
Class Method Summary collapse
- .detect_jarsigner_executable ⇒ Object
- .generate ⇒ Object
- .options ⇒ Object
- .pipe ⇒ Object
- .prefix ⇒ Object
Class Method Details
.detect_jarsigner_executable ⇒ Object
22 23 24 25 26 |
# File 'lib/fastlane/plugin/xambuild/helpers/generators/java_sign_command_generator.rb', line 22 def detect_jarsigner_executable jarsigner = ENV["JAVA_HOME"] ? File.join(ENV["JAVA_HOME"], "bin", "jarsigner") : "jarsigner" jarsigner end |
.generate ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/fastlane/plugin/xambuild/helpers/generators/java_sign_command_generator.rb', line 4 def generate build_apk_path = Xambuild.cache[:build_apk_path] Xambuild.cache[:signed_apk_path] = "#{build_apk_path}-unaligned" parts = prefix parts << detect_jarsigner_executable parts += parts << build_apk_path parts << Xambuild.config[:keystore_alias] parts += pipe parts end |
.options ⇒ Object
28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/fastlane/plugin/xambuild/helpers/generators/java_sign_command_generator.rb', line 28 def config = Xambuild.config = [] << "-verbose" if $verbose << "-sigalg MD5withRSA" << "-digestalg SHA1" << "-storepass \"#{config[:keystore_password]}\"" << "-keystore \"#{config[:keystore_path]}\"" << "-tsa #{config[:keystore_tsa]}" << "-signedjar \"#{Xambuild.cache[:signed_apk_path]}\"" end |
.pipe ⇒ Object
43 44 45 46 47 |
# File 'lib/fastlane/plugin/xambuild/helpers/generators/java_sign_command_generator.rb', line 43 def pipe pipe = [] pipe end |
.prefix ⇒ Object
18 19 20 |
# File 'lib/fastlane/plugin/xambuild/helpers/generators/java_sign_command_generator.rb', line 18 def prefix [""] end |