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: e24028ddd6eaf2842b42ec156eaa176c8e25979b027fe0bfc78b9de2d6b13aff
4
- data.tar.gz: 9ce54967f87d00a17b6697ec228027fc3e0af35442981ade92f9a801cdead879
3
+ metadata.gz: '086cfd8e90765ff78ef8b39dc1d1d0fd0e8df174410e0fac71360946eb62acda'
4
+ data.tar.gz: 6657b4e8d4ef34e00843a6ba56e32c71239e844f2f9f07c7d10caacb1aafcd54
5
5
  SHA512:
6
- metadata.gz: a02b79d7921ede221a8cf9784f333ad29c5cf757c289a059457b2f21576aa9783fe6a9e81f6950ef90a9d0e24a4067900428b875b9302b59e21a7925fa81c006
7
- data.tar.gz: 23d77f22305b4513bf2bc77fe0843d827aa0ec1b06c5dd8868d4327b86eb4a1531ccedbbd7c513590720ed5a19a8c04b56df193d3adce68d7be8fd9f49ad5d06
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(component_file_path)
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
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module CocoapodsSoulComponentPlugin
3
- VERSION = '0.0.13'
3
+ VERSION = '0.0.14'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-soul-component-plugin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - fang