cocoapods-rn-toolkit 0.0.11 → 0.0.13

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: 95138111efdbb11484f7e3a8651d5cfbc02f92c777f4d2711b4d757a9f3711ae
4
- data.tar.gz: ec2ebe8b5537cdaace1161c6c8104369f510c7e9364a51195ed70bf93084d387
3
+ metadata.gz: 31a191ee21b84d1f5919b68ac249396adf65fb2d705deec8a28929d08c406142
4
+ data.tar.gz: bd860ff9631e499d2e383e740ae2813cb56f8a31c466442fde0556651dc9ea49
5
5
  SHA512:
6
- metadata.gz: 9f0a40e257726eb8faf059f69a00e7f32b04e454233e084d9168dddaec506a30f973e07ed17e1dfea4aea1bb05377bdc92961277ad79fe907373b7b09c5a75cd
7
- data.tar.gz: b4a8dc8906e87f2b940fc9f24e692d51d087ee2534a6526ec72cd2e634e021e759f7db09606f7e2b3486a4dd2d53b517e2b24a8c61715b8ebfd355cbddf6dc39
6
+ metadata.gz: 403bef152cc3cb9928997fe966b6c0d798afac9871e4b9771da49215df43a0950afac3ee771463c26b101ea70e077588dd8ad6868fc6d85b961034474a40f972
7
+ data.tar.gz: 150e32f9e9180f317bef458247de3b0f61e7d7e48fb1fd74c2142e18331a13824ca5fa77dcf27285a0df79da79e8d870447929393354824ee190f4fb36c7e917
@@ -1,3 +1,3 @@
1
1
  module CocoapodsRnToolkit
2
- VERSION = "0.0.11"
2
+ VERSION = "0.0.13"
3
3
  end
@@ -3,14 +3,14 @@ module CocoapodsRnToolkit
3
3
  def self.apply(context)
4
4
  context.pods_project.targets.each do |target|
5
5
  target.build_configurations.each do |config|
6
- update_prefix_header(config)
6
+ update_prefix_header(context, config)
7
7
  end
8
8
  end
9
9
  end
10
10
 
11
11
  private
12
12
 
13
- def self.update_prefix_header(config)
13
+ def self.update_prefix_header(context, config)
14
14
  prefix_path = config.build_settings['GCC_PREFIX_HEADER']
15
15
  return unless prefix_path
16
16
 
@@ -20,6 +20,8 @@ module CocoapodsRnToolkit
20
20
  content = File.read(full_prefix_path)
21
21
  return if content.include?(macro)
22
22
 
23
+ puts "[cocoapods-rn-toolkit] 更新前缀头文件: #{full_prefix_path}"
24
+
23
25
  content = content + "\n" + macro
24
26
  File.open(full_prefix_path, 'w') { |file| file.write(content) }
25
27
  end
@@ -1,10 +1,14 @@
1
1
  module CocoapodsRnToolkit
2
2
  module LibrarySearchPaths
3
- def self.apply(installer)
4
- projects = installer.aggregate_targets
5
- .map{ |t| t.user_project }
6
- .uniq{ |p| p.path }
7
- .push(installer.pods_project)
3
+ def self.apply(context)
4
+ # 获取所有的用户项目
5
+ user_projects = context.umbrella_targets.map(&:user_project).uniq(&:path)
6
+
7
+ # 获取 Pods 项目
8
+ pods_project = context.pods_project
9
+
10
+ # 合并所有需要处理的项目
11
+ projects = user_projects + [pods_project]
8
12
 
9
13
  projects.each do |project|
10
14
  project.build_configurations.each do |config|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-rn-toolkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nx