cocoapods-packager-ext 0.0.32 → 0.0.33

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: 73aad4670e0835a37acaa91e16fa612e6a09b65d57577d4ec329ea29352779f0
4
- data.tar.gz: 299c27370c0e83ea2a974bafc5459ec00063dee1992e38f22740b1ee22d74b84
3
+ metadata.gz: 666bf99ad7bef68dce559b4102ba7eba97699de43128cad3283feb706ee0b165
4
+ data.tar.gz: 4cdd6ef5bb2f576c038b13a320f288b7e11a08052267c50685d0b06ae9240315
5
5
  SHA512:
6
- metadata.gz: 9c0fcffa49b641db14d7170723e0fb94181562330e3dedd44d02614b3e3b4873aa9da7963ac1b9aea7e598754139001d50cc718513d08d634b2d404468b1d632
7
- data.tar.gz: 9f54ff7fe7b714663f1c59c19774df52725fd7eaaeaedf1f0d1c2ea6bc696c56f163dc6be6b2e04c91d9c59912eb11f15ba8396fd082e96aa23c08c923b6216a
6
+ metadata.gz: 5ac87c3210c7d6af667263b113ca9d74d09e2a929131906ddb7851921016f72a5b4de76a022a420fd544dfe1842a936ebfc1dd7146ab10d173fb08484bb67893
7
+ data.tar.gz: 57a875b65878a040c97f8042d1703d01db2ae50dc8cbf7a62066d173b8bc8f43fe63c6f92b9ec4e856791e6030c8e67b0b014de9a189e91497670b3177d84d48
@@ -123,6 +123,22 @@ RB
123
123
 
124
124
  end
125
125
 
126
+ def clean_dummy_files(path)
127
+ Dir.entries(path).each do |sub|
128
+ if sub != '.' && sub != '..'
129
+ if File.directory?("#{path}/#{sub}")
130
+ clean_dummy_files("#{path}/#{sub}")
131
+ else
132
+ if(sub =~ /-dummy.m$/)
133
+ File.open("#{path}/#{sub}",'w')do |file|
134
+ file.write('')
135
+ end
136
+ end
137
+ end
138
+ end
139
+ end
140
+ end
141
+
126
142
  alias perform_build_t perform_build
127
143
  def perform_build(platform, static_sandbox, dynamic_sandbox,static_installer)
128
144
  if @select_archs.length > 0 || @exclude_dep_items.length > 0
@@ -133,6 +149,13 @@ RB
133
149
  dynamic_sandbox_root = "#{config.sandbox_root}/#{dynamic_sandbox.root.to_s.split('/').last}"
134
150
  end
135
151
 
152
+ if (ENV['ENABLE_CLEAN_DUMMY_FILE'] && (ENV['ENABLE_CLEAN_DUMMY_FILE'].upcase == 'YES' || ENV['ENABLE_CLEAN_DUMMY_FILE'].upcase == 'TRUE'))
153
+ clean_dummy_files(static_sandbox.target_support_files_root)
154
+ if @dynamic
155
+ clean_dummy_files(dynamic_sandbox.target_support_files_root)
156
+ end
157
+ end
158
+
136
159
  builder = Pod::Builder.new(
137
160
  platform,
138
161
  static_installer,
@@ -1,3 +1,3 @@
1
1
  module CocoapodsPackagerExt
2
- VERSION = "0.0.32"
2
+ VERSION = "0.0.33"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-packager-ext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.32
4
+ version: 0.0.33
5
5
  platform: ruby
6
6
  authors:
7
7
  - kyle.zhou