souyuz 0.10.0 → 0.10.4

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: cfcbc75e52ece5af9c4eb049045525f607d7d3454189ad822727b6750185a659
4
- data.tar.gz: 62b4b6f607e33b87b6253c67e96f55f39cdb0d0638ec05c2e27a7942543861a8
3
+ metadata.gz: 55d0affa2aee2277a4edfab7ba42767e11d89c2f02a39b08eceb43da21265411
4
+ data.tar.gz: 215e0841a5916bd10e5927a73d5ac2e03b08903447b5a7455cb83b257a469ba3
5
5
  SHA512:
6
- metadata.gz: b445291e8406244c2f99e150fe402766111847ade4e32a308343bc5ffa120c0794d4e10ea57a083d43a27eceaa156942f54bd89f66aa009d06b5998d64b53507
7
- data.tar.gz: eef32d0a9beb2f68852ddfefa0ef9c480067de86a57cd404a640297c2fb0b4c0561048f893b87b02aeb36ad325a8adcb9826fa0fa2873a4ac25ae4d39c871011
6
+ metadata.gz: 4dade6c79e7f3193a4a0d9cef59a3e9e47cbde037c28e05695e4164d8fa1149853aa94a1a200b96df76efc2219221b4bc254eadf4f37f7cc3f72eafdd4eac1cf
7
+ data.tar.gz: 5c1923273ef5179aec3b4a4f50a441ead1ed7715e6e5e934a04cd18e0b74aeb233da1cc2060704c9962ad3f3cd568ff4914624c93a0883b4dcb25ebc943f39d9
data/README.md CHANGED
@@ -1,7 +1,5 @@
1
1
  # Souyuz
2
2
 
3
- [![Build Status](https://travis-ci.org/voydz/souyuz.svg?branch=master)](https://travis-ci.org/voydz/souyuz)
4
-
5
3
  A fastlane component to make Xamarin builds a breeze. Souyuz is now avaialbe as an **Fastlane plugin** see [fastlane-plugin-souyuz](fastlane-plugin-souyuz) for details.
6
4
 
7
5
  *NOTE: While souyuz should continue working with your existing configuration just fine, consider using the Fastlane plugin.*
@@ -4,12 +4,12 @@ module Souyuz
4
4
  class << self
5
5
  def generate
6
6
  build_apk_path = Souyuz.cache[:build_apk_path]
7
- Souyuz.cache[:signed_apk_path] = "#{build_apk_path}-unaligned"
7
+ Souyuz.cache[:signed_apk_path] = "#{build_apk_path}-signed"
8
8
 
9
9
  parts = prefix
10
10
  parts << detect_apksigner_executable
11
11
  parts += options
12
- parts << build_apk_path
12
+ parts << Souyuz.cache[:aligned_apk_path]
13
13
  parts += pipe
14
14
 
15
15
  parts
@@ -27,10 +27,10 @@ module Souyuz
27
27
 
28
28
  def options
29
29
  options = []
30
- options << "sign" if $verbose
30
+ options << "sign"
31
31
  options << "--verbose" if $verbose
32
32
  options << "--ks \"#{Souyuz.config[:keystore_path]}\""
33
- options << "--ks-pass \"#{Souyuz.config[:keystore_password]}\""
33
+ options << "--ks-pass \"pass:#{Souyuz.config[:keystore_password]}\""
34
34
  options << "--ks-key-alias \"#{Souyuz.config[:keystore_alias]}\""
35
35
  options << "--out \"#{Souyuz.cache[:signed_apk_path]}\""
36
36
 
@@ -3,11 +3,14 @@ module Souyuz
3
3
  class ZipalignCommandGenerator
4
4
  class << self
5
5
  def generate
6
+ build_apk_path = Souyuz.cache[:build_apk_path]
7
+ Souyuz.cache[:aligned_apk_path] = "#{build_apk_path}-aligned"
8
+
6
9
  parts = prefix
7
10
  parts << zipalign_apk
8
11
  parts += options
9
- parts << Souyuz.cache[:signed_apk_path]
10
- parts << Souyuz.cache[:build_apk_path]
12
+ parts << build_apk_path
13
+ parts << Souyuz.cache[:aligned_apk_path]
11
14
  parts += pipe
12
15
 
13
16
  parts
data/lib/souyuz/runner.rb CHANGED
@@ -37,9 +37,10 @@ module Souyuz
37
37
  build_path = Souyuz.project.options[:output_path]
38
38
  assembly_name = Souyuz.project.options[:assembly_name]
39
39
 
40
- Souyuz.cache[:build_apk_path] = "#{build_path}/#{assembly_name}.apk"
40
+ build_apk_path = "#{build_path}/#{assembly_name}.apk"
41
+ Souyuz.cache[:build_apk_path] = build_apk_path
41
42
 
42
- "#{build_path}/#{assembly_name}.apk"
43
+ build_apk_path
43
44
  end
44
45
 
45
46
  def apksign_and_zipalign
@@ -55,6 +56,12 @@ module Souyuz
55
56
  print_all: false,
56
57
  print_command: !Souyuz.config[:silent])
57
58
 
59
+ # move signed apk back to build apk path
60
+ FileUtils.cp_r(
61
+ Souyuz.cache[:signed_apk_path],
62
+ Souyuz.cache[:build_apk_path],
63
+ :remove_destination => true)
64
+
58
65
  UI.success "Successfully signed apk #{Souyuz.cache[:build_apk_path]}"
59
66
  end
60
67
 
@@ -1,5 +1,5 @@
1
1
 
2
2
  module Souyuz
3
- VERSION = "0.10.0"
3
+ VERSION = "0.10.4"
4
4
  DESCRIPTION = "A fastlane component to make Xamarin builds a breeze"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: souyuz
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.10.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Rudat