cocoapods-soul-component-plugin 0.0.13 → 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: '086cfd8e90765ff78ef8b39dc1d1d0fd0e8df174410e0fac71360946eb62acda'
|
4
|
+
data.tar.gz: 6657b4e8d4ef34e00843a6ba56e32c71239e844f2f9f07c7d10caacb1aafcd54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52780e0b5c959db595b9d3e1d8914cd2383243f1184ff1d6b9528dffed5b353ad0775c57e6c294da5c819d5a50bd4f02cba681ac929dae73b441adafa6fd22e5
|
7
|
+
data.tar.gz: 5b5ecb2dc862f56aee5ead37711e8901c985ba8d934caf3ef56e7566669ed5e2a6c41e25a0689375cd032d6fb18841f3d96f0742a29c84dfeb1080d515167292
|
@@ -110,13 +110,19 @@ module CocoapodsSoulComponentPlugin
|
|
110
110
|
|
111
111
|
def self.post_run
|
112
112
|
Pod::UI.puts '添加component.json文件引用'
|
113
|
+
if File.exist?(component_user_file_path)
|
114
|
+
add_refrence(component_user_file_path)
|
115
|
+
end
|
116
|
+
add_refrence(component_file_path)
|
117
|
+
end
|
118
|
+
|
119
|
+
def self.add_refrence(file_path)
|
113
120
|
project = Xcodeproj::Project.open(Pod::Config.instance.sandbox.project_path)
|
114
121
|
# 获取主group
|
115
122
|
group = project.main_group
|
116
123
|
group.set_source_tree('SOURCE_ROOT')
|
117
124
|
# 向group中添加 文件引用
|
118
|
-
file_ref = group.new_reference(
|
119
|
-
file_user_ref = group.new_reference(component_user_file_path)
|
125
|
+
file_ref = group.new_reference(file_path)
|
120
126
|
# podfile_local排序
|
121
127
|
podfile_local_group = group.children.last
|
122
128
|
group.children.pop
|