cocoapods-rn-toolkit 0.0.9 → 0.0.10
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: ab35b805680b15e23d509130b8ba4691c8381aee27d04ed47b57cd5f983735ed
|
4
|
+
data.tar.gz: 2fd02f41430435691bbf17c2bbc1e53a2d4e6c56d2c9aa06d3388e6f9bacdfd8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40ada2b75c0e340f650fcd8a28f6e151b848fe53b0291906b1bb28b14bb01b18bbdcb25d1cddf59fccd7adc84abc7278e708e220dc315da195c4915602bed17a
|
7
|
+
data.tar.gz: 7cfe764c403445db18c87e0fdea8514945ddce3478dffa1b762209db4903bcfab4fdb0cf60c321cbd64a5b4025d319a787b4754d35e3a490b4a0993dd364244e
|
@@ -1,15 +1,15 @@
|
|
1
1
|
module CocoapodsRnToolkit
|
2
2
|
module IOS17UIGraphics
|
3
3
|
def self.apply(installer)
|
4
|
-
installer.
|
5
|
-
update_prefix_header(
|
4
|
+
installer.pod_targets.each do |pod_target|
|
5
|
+
update_prefix_header(pod_target)
|
6
6
|
end
|
7
7
|
end
|
8
8
|
|
9
9
|
private
|
10
10
|
|
11
|
-
def self.update_prefix_header(
|
12
|
-
prefix_path =
|
11
|
+
def self.update_prefix_header(pod_target)
|
12
|
+
prefix_path = pod_target.prefix_header_path
|
13
13
|
return unless File.exist?(prefix_path)
|
14
14
|
|
15
15
|
content = File.read(prefix_path)
|
data/lib/cocoapods_plugin.rb
CHANGED
@@ -4,7 +4,7 @@ require 'cocoapods-rn-toolkit/library_search_paths'
|
|
4
4
|
require 'cocoapods-rn-toolkit/common_build_settings'
|
5
5
|
|
6
6
|
module CocoapodsRnToolkit
|
7
|
-
Pod::HooksManager.register('cocoapods-rn-toolkit', :
|
7
|
+
Pod::HooksManager.register('cocoapods-rn-toolkit', :post_install_all) do |installer|
|
8
8
|
puts "[cocoapods-rn-toolkit] 开始应用 React Native 修复..."
|
9
9
|
|
10
10
|
puts "[cocoapods-rn-toolkit] 应用通用构建设置..."
|