cocoapods-pod-sign 1.1.2 → 1.2.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 648f78bcafa92b33bcab69692e67b531160da1d3e54308598d4de0e28684e0b3
|
4
|
+
data.tar.gz: a8a86a968502bc7fe92f7c4099cbe19188201ec5fdff0728efa936416bdfe7a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50f8e0f8b4ff4642ed9d66eadaa90cb3c7f823935c8d9431c29454c65da55ddb3bd3bc067eaed411cda17713bd90cb547e4081e17c06261badc2112fd031e42f
|
7
|
+
data.tar.gz: ac83a257459b843dd5d951f0e8a344626b6811d6e3424e6d540b10424369bb90f7904c646f9f64e6883a19dee374122fc4be3825e33fe5229f72d66cb4867bea
|
@@ -1,4 +1,5 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
+
require 'cocoapods-pod-sign/pod_sign_storage'
|
2
3
|
|
3
4
|
module Pod
|
4
5
|
class Installer
|
@@ -6,7 +7,9 @@ module Pod
|
|
6
7
|
alias_method :origin_run_podfile_post_install_hook, :run_podfile_post_install_hook
|
7
8
|
def run_podfile_post_install_hook
|
8
9
|
|
9
|
-
|
10
|
+
storage = PodSignStorage.instance
|
11
|
+
|
12
|
+
pod_sign_extract_bundle_id_and_team_id_from_user_project if storage.configurations.empty? && !storage.skip_sign
|
10
13
|
|
11
14
|
targets = if installation_options.generate_multiple_pod_projects
|
12
15
|
pod_target_subprojects.flat_map { |p| p.targets }
|
@@ -17,7 +20,11 @@ module Pod
|
|
17
20
|
next unless target.respond_to?('product_type') && target.product_type == 'com.apple.product-type.bundle'
|
18
21
|
|
19
22
|
target.build_configurations.each do |config|
|
20
|
-
|
23
|
+
if storage.skip_sign
|
24
|
+
config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
|
25
|
+
next
|
26
|
+
end
|
27
|
+
sign_config = storage.configurations[config.name]
|
21
28
|
next unless sign_config.instance_of?(Hash)
|
22
29
|
|
23
30
|
config.build_settings['PRODUCT_BUNDLE_IDENTIFIER'] = sign_config[:bundle_id]
|
@@ -62,11 +69,12 @@ module Pod
|
|
62
69
|
sign_identity = build_settings['CODE_SIGN_IDENTITY']
|
63
70
|
return unless bundle_id && team_id && config_name
|
64
71
|
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
72
|
+
storage = PodSignStorage.instance
|
73
|
+
storage.configurations[config_name] = { bundle_id: bundle_id,
|
74
|
+
team_id: team_id,
|
75
|
+
sign_style: sign_style,
|
76
|
+
sign_identity: sign_identity }
|
77
|
+
|
70
78
|
end
|
71
79
|
end
|
72
80
|
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'singleton'
|
2
|
+
|
3
|
+
class PodSignStorage
|
4
|
+
include Singleton
|
5
|
+
|
6
|
+
attr_writer :skip_sign
|
7
|
+
attr_writer :configurations
|
8
|
+
|
9
|
+
def skip_sign
|
10
|
+
return @skip_sign if defined?(@skip_sign)
|
11
|
+
|
12
|
+
@skip_sign = false
|
13
|
+
end
|
14
|
+
|
15
|
+
def configurations
|
16
|
+
return @configurations if defined?(@configurations)
|
17
|
+
|
18
|
+
@configurations = {}
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
|
@@ -1,6 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
|
3
|
+
require 'cocoapods-pod-sign/pod_sign_storage'
|
4
|
+
|
4
5
|
module Pod
|
5
6
|
class Podfile
|
6
7
|
module DSL
|
@@ -21,7 +22,13 @@ module Pod
|
|
21
22
|
end
|
22
23
|
end
|
23
24
|
UI.info 'config_pod_bundle_id_and_team_id parameters setup success'
|
24
|
-
|
25
|
+
storage = PodSignStorage.instance
|
26
|
+
storage.configurations = configurations
|
27
|
+
end
|
28
|
+
|
29
|
+
def skip_pod_bundle_sign
|
30
|
+
storage = PodSignStorage.instance
|
31
|
+
storage.skip_sign = true
|
25
32
|
end
|
26
33
|
end
|
27
34
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-pod-sign
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- wosicuanqi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-09-
|
11
|
+
date: 2022-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -103,6 +103,7 @@ files:
|
|
103
103
|
- lib/cocoapods-pod-sign.rb
|
104
104
|
- lib/cocoapods-pod-sign/gem_version.rb
|
105
105
|
- lib/cocoapods-pod-sign/pod_installer.rb
|
106
|
+
- lib/cocoapods-pod-sign/pod_sign_storage.rb
|
106
107
|
- lib/cocoapods-pod-sign/podfile_dsl.rb
|
107
108
|
- lib/cocoapods_plugin.rb
|
108
109
|
- spec/command/sign_spec.rb
|