cocoapods-rn-toolkit 0.0.12 → 0.0.14
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: 7dd1f7fe959088105817f9027a1a6787acb110e77d0059442e3c5b040fcb2c04
|
4
|
+
data.tar.gz: bdcab2402240fcf55cf57da22beb2e6f3b4e53e344666d5ddc9b3cb5cb58e3a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb432ea7d827457d656c13f3ba128f7dc4fd0429aee3832940377562a6cf6de9987a396e2f28b11b2a98d2d6cab0b0f69235854649cc32aa7a85bd6d893b1943
|
7
|
+
data.tar.gz: 9a23f59a72b258a1c5af01a6a8a81c278b41aa9c776a8488eb03f5fab4ea92cb4841b158b911375751dde8188de089f919a748cd14338c7a181180d4fdf84f49
|
@@ -20,8 +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
|
+
# puts "[cocoapods-rn-toolkit] 更新前缀头文件: #{full_prefix_path}"
|
24
|
+
|
25
25
|
content = content + "\n" + macro
|
26
26
|
File.open(full_prefix_path, 'w') { |file| file.write(content) }
|
27
27
|
end
|
@@ -1,10 +1,14 @@
|
|
1
1
|
module CocoapodsRnToolkit
|
2
2
|
module LibrarySearchPaths
|
3
|
-
def self.apply(
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
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|
|