fastlane-plugin-repack_ios 1.0.1 → 1.0.2

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: b7603bb6257703b0a11931de5edc198daccc96a407713cfa1f0b91055d202a2c
4
- data.tar.gz: dd1ef91f1f7badf2cc50726d1304b25b3324dd01d0be706c20ba892638851258
3
+ metadata.gz: e46d95abc5d7a47deb4b0d59cc646aeafa0c799b8b95377c9ff1a098ef6ed01e
4
+ data.tar.gz: e141ca98300b8a68c3a1b3e3e615d8c23110a17c82c5950d12c986d7939a9a0f
5
5
  SHA512:
6
- metadata.gz: 284aa9ca62d24dcc7dc8dcd0c328d55774bb18cdb3500a3dc20170faf15cecd54d3c9db3d9870e32c769945c311b6722b6a1fa473d31b8a6b01b88a635f0a6e2
7
- data.tar.gz: 4c627c6116020dc7c1f516b438920747af3bee8a4c974d6ac2ba05d085a55734ddc9bbfa5dfeff3bae81ae90cf45a74c8364effc015211d7dbccc5bbf473338c
6
+ metadata.gz: 9c10cc83499161cbceda3c05bf1671993b4800e9ce24e2f578dcf0a77500bf13f4824bac068159488043bac5826ae5c5e961249183d31226ecd3b944fdf49bce
7
+ data.tar.gz: 30a6a0852f9bd296fa70991b6a411f201fa75e7274906d460c4fec3bb27bf32f3de03c859b682fa5d9c45e497f5df853c38c8eede59250e740ea99a0b3debade
@@ -53,24 +53,48 @@ module Fastlane
53
53
 
54
54
  UI.message("Parameter Match Type: #{params[:match_type]}")
55
55
 
56
- provisioning_profile_key = "sigh_#{params[:app_identifier]}_#{match_type}_profile-path"
57
- # check if match has been executed before for the given app_identifier?
58
- if ENV[provisioning_profile_key].nil?
59
-
60
- UI.message("Trying to match certificates with given type...")
61
-
62
- other_action.match(
63
- type: match_type,
64
- readonly: true
65
- )
56
+ UI.message("Resolving provisioning profile using: #{params[:app_identifier]}")
57
+
58
+ if !params[:app_identifier].nil?
59
+ provisioning_profile=Hash.new()
60
+ if (params[:app_identifier].is_a? String)
61
+ provisioning_profile[params[:app_identifier]] = ENV["sigh_#{params[:app_identifier]}_#{match_type}_profile-path"]
62
+ else
63
+ params[:app_identifier].each do |identifier|
64
+ provisioning_profile[identifier] = ENV["sigh_#{identifier}_#{match_type}_profile-path"]
65
+ end
66
+ end
67
+
68
+ # check if match has been executed before for the given app_identifier?
69
+ if provisioning_profile.nil?
70
+
71
+ UI.message("Trying to match certificates with given type...")
72
+
73
+ other_action.match(
74
+ type: match_type,
75
+ readonly: true
76
+ )
77
+ end
66
78
  end
67
-
68
- # read the provisioning_profile from sigh
69
- provisioning_profile = ENV[provisioning_profile_key]
70
-
71
79
  # otherwise, check provisioning_profile is not passed?
72
80
  elsif !params[:provisioning_profile].nil?
73
81
  UI.message("Parameter Provisioning Profile: #{params[:provisioning_profile]}")
82
+ provisioning_profile = params[:provisioning_profile]
83
+ end
84
+
85
+ if provisioning_profile.nil?
86
+ match_profiles = Actions.lane_context[SharedValues::MATCH_PROVISIONING_PROFILE_MAPPING]
87
+
88
+ puts match_profiles
89
+
90
+ UI.message("Auto-resolving provisioning profiles using match... #{match_profiles}")
91
+
92
+ provisioning_profile=Hash.new()
93
+ match_profiles.each do |pair|
94
+ provisioning_profile[pair[0]] = ENV["sigh_#{pair[0]}_#{match_type}_profile-path"]
95
+ end
96
+
97
+ puts provisioning_profile
74
98
  end
75
99
 
76
100
  UI.message("Resolving signing identity from provisioning profile...")
@@ -51,7 +51,8 @@ module Fastlane
51
51
 
52
52
  class RepackIosHelper
53
53
  def self.get_signing_identity_from_provision_profile(provisioning_profile)
54
- parsed_provision = FastlaneCore::ProvisioningProfile.parse(provisioning_profile)
54
+ first_provisioning_profile_key, first_provisioning_profile_value = provisioning_profile.first
55
+ parsed_provision = FastlaneCore::ProvisioningProfile.parse(first_provisioning_profile_value)
55
56
 
56
57
  cert = OpenSSL::X509::Certificate.new(parsed_provision["DeveloperCertificates"].first.string)
57
58
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module RepackIos
3
- VERSION = "1.0.1"
3
+ VERSION = "1.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-repack_ios
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Omer Duzyol
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-26 00:00:00.000000000 Z
11
+ date: 2023-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -136,7 +136,7 @@ dependencies:
136
136
  - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: 2.120.0
139
- description:
139
+ description:
140
140
  email: omer@duzyol.net
141
141
  executables: []
142
142
  extensions: []
@@ -152,7 +152,7 @@ homepage: https://github.com/creaworks-labs/fastlane-plugin-repack-ios
152
152
  licenses:
153
153
  - MIT
154
154
  metadata: {}
155
- post_install_message:
155
+ post_install_message:
156
156
  rdoc_options: []
157
157
  require_paths:
158
158
  - lib
@@ -167,8 +167,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
167
167
  - !ruby/object:Gem::Version
168
168
  version: '0'
169
169
  requirements: []
170
- rubygems_version: 3.0.8
171
- signing_key:
170
+ rubygems_version: 3.1.6
171
+ signing_key:
172
172
  specification_version: 4
173
173
  summary: Enables your build pipeline to repack your pre-built ipa with new assets
174
174
  without rebuilding the native code.