fastlane-plugin-repack_ios 1.0.0 → 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: dde60a805cba0d53f2d15ebefca7a29fa1bc3fbe7a2bfc93a06affe09bbf2293
4
- data.tar.gz: e5bcc5536699d2bed2170abfab0ed52596b70aa4c7cbb172ea826185ffcdd296
3
+ metadata.gz: e46d95abc5d7a47deb4b0d59cc646aeafa0c799b8b95377c9ff1a098ef6ed01e
4
+ data.tar.gz: e141ca98300b8a68c3a1b3e3e615d8c23110a17c82c5950d12c986d7939a9a0f
5
5
  SHA512:
6
- metadata.gz: d5cb9722aad88f3d020972917bf795348ba30cae22d29d067dd75985f64ab62fb91ec80e8826a8994be3592b807047be39f0ed2073775572b907876bf4d7eee8
7
- data.tar.gz: 87b57c9c8459bcdcba815c383d49f98058eee12c9c16a062925a73f540e460f4e12713130b9308a0c81da46cf174cde11f9b35c222f795c8b8535c7724500676
6
+ metadata.gz: 9c10cc83499161cbceda3c05bf1671993b4800e9ce24e2f578dcf0a77500bf13f4824bac068159488043bac5826ae5c5e961249183d31226ecd3b944fdf49bce
7
+ data.tar.gz: 30a6a0852f9bd296fa70991b6a411f201fa75e7274906d460c4fec3bb27bf32f3de03c859b682fa5d9c45e497f5df853c38c8eede59250e740ea99a0b3debade
data/README.md CHANGED
@@ -4,6 +4,7 @@
4
4
  [![Gem Version](https://badge.fury.io/rb/fastlane-plugin-repack_ios.svg)](https://badge.fury.io/rb/fastlane-plugin-repack_ios)
5
5
  [![Downloads](https://img.shields.io/gem/dt/fastlane-plugin-repack_ios.svg?style=flat)](https://rubygems.org/gems/fastlane-plugin-repack_ios)
6
6
  [![License](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://github.com/creaworks-labs/fastlane-plugin-repack-ios/blob/master/LICENSE)
7
+ [![creaworks-labs](https://circleci.com/gh/creaworks-labs/fastlane-plugin-repack-ios.svg?style=svg)](<LINK>)
7
8
 
8
9
  ## Getting Started
9
10
 
@@ -40,9 +40,11 @@ module Fastlane
40
40
 
41
41
  sigh_profile_type = Actions.lane_context[SharedValues::SIGH_PROFILE_TYPE]
42
42
 
43
- unless sigh_profile_type.nil?
44
- UI.important("Match type parameters obtained from sigh profile context!")
45
- params[:match_type] = sigh_profile_type.sub!('-', '')
43
+ if params[:match_type].nil?
44
+ unless sigh_profile_type.nil?
45
+ UI.important("Match type parameters obtained from sigh profile context!")
46
+ params[:match_type] = sigh_profile_type.sub!('-', '')
47
+ end
46
48
  end
47
49
 
48
50
  # check match_type is passed?
@@ -51,24 +53,48 @@ module Fastlane
51
53
 
52
54
  UI.message("Parameter Match Type: #{params[:match_type]}")
53
55
 
54
- provisioning_profile_key = "sigh_#{params[:app_identifier]}_#{match_type}_profile-path"
55
- # check if match has been executed before for the given app_identifier?
56
- if ENV[provisioning_profile_key].nil?
57
-
58
- UI.message("Trying to match certificates with given type...")
59
-
60
- other_action.match(
61
- type: match_type,
62
- readonly: true
63
- )
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
64
78
  end
65
-
66
- # read the provisioning_profile from sigh
67
- provisioning_profile = ENV[provisioning_profile_key]
68
-
69
79
  # otherwise, check provisioning_profile is not passed?
70
80
  elsif !params[:provisioning_profile].nil?
71
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
72
98
  end
73
99
 
74
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.0"
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.0
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: 2020-12-05 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.