cocoapods-rn-toolkit 0.0.11 → 0.0.12
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: 0d89d69ead6c507dcc7bdc1d4db02545e85f563c108d0e47d719a871082957d5
|
4
|
+
data.tar.gz: 3e42dde2ec6f468f27ff8b567453c76fae6164bc1d4e265a30d45ba2f7c4b3b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 851aadfd12025cf9547c243a556d92f8cce943f1bf03d01981a3e5e43654c5fa803fc78f296b6189df95792e15dea4dfcdc727f22bbb04cbe475dd9b1cc4c0d7
|
7
|
+
data.tar.gz: eb7ac1270dcc34236aebed67389bd42d7513df5c80ee9bca5ce11302a6c48c5990683b7bcae988f293a6f99aee31fcf84107481a08baa55a6b6d33caa088dd20
|
@@ -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
|