cocoapods-pod-sign 1.2.2 → 1.3.0

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: 648f78bcafa92b33bcab69692e67b531160da1d3e54308598d4de0e28684e0b3
4
- data.tar.gz: a8a86a968502bc7fe92f7c4099cbe19188201ec5fdff0728efa936416bdfe7a4
3
+ metadata.gz: ae36027d6261be7b237768a00b5522befd9687e7910413a952b38ebce7cfd505
4
+ data.tar.gz: e1553b504f0c5f5e3b7879451becbd6996f51d54dbb296fab6746a229f5b8b54
5
5
  SHA512:
6
- metadata.gz: 50f8e0f8b4ff4642ed9d66eadaa90cb3c7f823935c8d9431c29454c65da55ddb3bd3bc067eaed411cda17713bd90cb547e4081e17c06261badc2112fd031e42f
7
- data.tar.gz: ac83a257459b843dd5d951f0e8a344626b6811d6e3424e6d540b10424369bb90f7904c646f9f64e6883a19dee374122fc4be3825e33fe5229f72d66cb4867bea
6
+ metadata.gz: 5d25d0e96784f72f2f10be216aa2db1d86237fc1af1477df6a2314f6e8f56a8b228a5e355b674f245197869c50950c0ded0258b45b1e0c27258ba5530f092e00
7
+ data.tar.gz: 326b654ca7da559bb9487dd8b5f4dfd948e68f10938ceb84757ba27a43a268a866025a6a3d16bb3bd47a526c2af53a8780729943181f8dd4803e7ba43ebb8f68
data/README.md CHANGED
@@ -10,11 +10,22 @@ cocoapods-pod-sign is a tool to help you set cocopads bundle identifier and team
10
10
 
11
11
  ## Usage
12
12
 
13
+ ### Recommended
14
+
15
+ I have received several user feedback encountering errors. I just added a new method to skip the signature. I recommend using the skip signature setting.
16
+
17
+ ```
18
+ plugin 'cocoapods-pod-sign'
19
+ skip_pod_bundle_sign
20
+ ```
21
+
22
+ ## No recommended
23
+
13
24
  There are two ways to use it, one is to automatically obtain the bundle identifier and team, and the other is to set it manually.
14
25
 
15
26
  ### Automatically
16
27
 
17
- Just write the following code into the Podfile, it will automatically read the bundle identifier and team from the main project.
28
+ Just write the following code into the Podfile, it will automatically read the bundle identifier(version 2.x.x no longer sets bundle identifier) and team from the main project.
18
29
 
19
30
  plugin 'cocoapods-pod-sign'
20
31
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../..
3
3
  specs:
4
- cocoapods-pod-sign (1.1.1)
4
+ cocoapods-pod-sign (1.3.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -6,8 +6,10 @@ target 'podSign' do
6
6
  # Comment the next line if you don't want to use dynamic frameworks
7
7
  # use_frameworks!
8
8
 
9
- plugin 'cocoapods-pod-sign'
9
+ plugin 'cocoapods-pod-sign' # automatically read the bundle identifier(version 2.x.x no longer sets bundle identifier) and team from the main project.
10
+ skip_pod_bundle_sign # forbid pod sign
10
11
 
12
+ # manually specify the bundle identifier and team under different configs
11
13
  # config_pod_bundle_id_and_team_id({
12
14
  # 'Debug' => {:bundle_id => 'com.aaa.bbb', :team_id => 'ABCDEFG'},
13
15
  # 'Release' => {:bundle_id => 'com.ccc.ddd', :team_id => 'HIJKLMN'},
@@ -0,0 +1,16 @@
1
+ PODS:
2
+ - bundleSign (0.1.0)
3
+
4
+ DEPENDENCIES:
5
+ - bundleSign (from `./bundleSign`)
6
+
7
+ EXTERNAL SOURCES:
8
+ bundleSign:
9
+ :path: "./bundleSign"
10
+
11
+ SPEC CHECKSUMS:
12
+ bundleSign: 8fa720adfff2d8b5873bb9ca197d670614cce05f
13
+
14
+ PODFILE CHECKSUM: 06f86eec5843bf02524d3efd1c1c857234a1aa84
15
+
16
+ COCOAPODS: 1.10.2
@@ -1,3 +1,3 @@
1
1
  module CocoapodsPodSign
2
- VERSION = "1.2.2"
2
+ VERSION = "1.3.0"
3
3
  end
@@ -9,7 +9,7 @@ module Pod
9
9
 
10
10
  storage = PodSignStorage.instance
11
11
 
12
- pod_sign_extract_bundle_id_and_team_id_from_user_project if storage.configurations.empty? && !storage.skip_sign
12
+ pod_sign_extract_team_id_from_user_project if storage.configurations.empty? && !storage.skip_sign
13
13
 
14
14
  targets = if installation_options.generate_multiple_pod_projects
15
15
  pod_target_subprojects.flat_map { |p| p.targets }
@@ -27,7 +27,7 @@ module Pod
27
27
  sign_config = storage.configurations[config.name]
28
28
  next unless sign_config.instance_of?(Hash)
29
29
 
30
- config.build_settings['PRODUCT_BUNDLE_IDENTIFIER'] = sign_config[:bundle_id]
30
+ config.build_settings['PRODUCT_BUNDLE_IDENTIFIER'] = sign_config[:bundle_id] unless sign_config[:bundle_id].nil?
31
31
  config.build_settings['DEVELOPMENT_TEAM'] = sign_config[:team_id]
32
32
  config.build_settings['CODE_SIGN_STYLE'] = if sign_config[:sign_style]
33
33
  sign_config[:sign_style]
@@ -48,7 +48,7 @@ module Pod
48
48
 
49
49
  private
50
50
 
51
- def pod_sign_extract_bundle_id_and_team_id_from_user_project
51
+ def pod_sign_extract_team_id_from_user_project
52
52
  target = aggregate_targets.first.user_project.root_object.targets.first
53
53
  target&.build_configurations&.each do |config|
54
54
  xcconfig_hash ||=
@@ -57,21 +57,19 @@ module Pod
57
57
  else
58
58
  {}
59
59
  end
60
- pod_sign_extract_bundle_id_and_team_id(xcconfig_hash, config.name)
61
- pod_sign_extract_bundle_id_and_team_id(config.build_settings, config.name)
60
+ pod_sign_extract_team_id(xcconfig_hash, config.name)
61
+ pod_sign_extract_team_id(config.build_settings, config.name)
62
62
  end
63
63
  end
64
64
 
65
- def pod_sign_extract_bundle_id_and_team_id(build_settings, config_name)
66
- bundle_id = build_settings['PRODUCT_BUNDLE_IDENTIFIER']
65
+ def pod_sign_extract_team_id(build_settings, config_name)
67
66
  team_id = build_settings['DEVELOPMENT_TEAM']
68
67
  sign_style = build_settings['CODE_SIGN_STYLE']
69
68
  sign_identity = build_settings['CODE_SIGN_IDENTITY']
70
- return unless bundle_id && team_id && config_name
69
+ return unless team_id && config_name
71
70
 
72
71
  storage = PodSignStorage.instance
73
- storage.configurations[config_name] = { bundle_id: bundle_id,
74
- team_id: team_id,
72
+ storage.configurations[config_name] = { team_id: team_id,
75
73
  sign_style: sign_style,
76
74
  sign_identity: sign_identity }
77
75
 
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.2.2
4
+ version: 1.3.0
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-06 00:00:00.000000000 Z
11
+ date: 2022-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -54,6 +54,7 @@ files:
54
54
  - example/podSign/Gemfile
55
55
  - example/podSign/Gemfile.lock
56
56
  - example/podSign/Podfile
57
+ - example/podSign/Podfile.lock
57
58
  - example/podSign/bundleSign/.gitignore
58
59
  - example/podSign/bundleSign/.travis.yml
59
60
  - example/podSign/bundleSign/Example/Podfile