cocoapods-packager-ext 0.0.30 → 0.0.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4cf3493cfe83b8790bdfa13709f4e84bb20db74fbde3119238271bb70116a956
4
- data.tar.gz: 8e2e9067e59073349177faca6d4bc639b77702b1382a219e106b0a3b5b990588
3
+ metadata.gz: 06bc606336fe05543708fe279c8510b0a14140b8cdadd9f5626f6a1034fcf734
4
+ data.tar.gz: 2419dd1bdd1d8143ae4ea7c247bd862739bed0eab726e3c4b87eeedbca15db61
5
5
  SHA512:
6
- metadata.gz: 2d75c72039e332ed8c440c2ada29ab66a1856964f1c45eb1cd3ce74d65e5f7c6585ef215670e40b12b59c986c89d60d527d9aac138c9beccce1bb880c251e454
7
- data.tar.gz: e743071dc7bc7c06e1142f6bba438c60c225ba529e423ecfa72d2550e82648122e6e0f9feefbcb833ff258200d348a68bad437374e612508d565deff8d388204
6
+ metadata.gz: 259ce3729f900080bdcf8934b13dcf796905881a447ee40651317e692be94f4a5b083e2d1cf7b2d5562a4c5c1a1a2e2ef5fa6dc857bdd14eef14d9bf0490fd7a
7
+ data.tar.gz: 3cb6310654d3c74661912500c53bd171f1aaab6ec1de6c46dbbca4fa3cc99de0a73994c2113906f0196fae7d30346f02b3d17d1d03dea3d774a591339a1dc429
@@ -66,7 +66,9 @@ module Pod
66
66
  perform_build(platform, static_sandbox, dynamic_sandbox, static_installer)
67
67
  ensure # in case the build fails; see Builder#xcodebuild.
68
68
  if ENV['ENABLE_BACKUP_WORKSPACE'] && (ENV['ENABLE_BACKUP_WORKSPACE'].upcase == 'YES' || ENV['ENABLE_BACKUP_WORKSPACE'].upcase == 'TRUE')
69
+ UI.message 'Backup Workspace'
69
70
  else
71
+ UI.message 'Delete Workspace'
70
72
  Pathname.new(config.sandbox_root).rmtree
71
73
  FileUtils.rm_f('Podfile.lock')
72
74
  end
@@ -123,6 +125,23 @@ RB
123
125
 
124
126
  end
125
127
 
128
+ def clean_dummy_files(path)
129
+ Dir.entries(path).each do |sub|
130
+ if sub != '.' && sub != '..'
131
+ if File.directory?("#{path}/#{sub}")
132
+ clean_dummy_files("#{path}/#{sub}")
133
+ else
134
+ if(sub =~ /-dummy.m$/)
135
+ File.open("#{path}/#{sub}",'w')do |file|
136
+ file.write('')
137
+ UI.message " - clean dummy file:#{sub}"
138
+ end
139
+ end
140
+ end
141
+ end
142
+ end
143
+ end
144
+
126
145
  alias perform_build_t perform_build
127
146
  def perform_build(platform, static_sandbox, dynamic_sandbox,static_installer)
128
147
  if @select_archs.length > 0 || @exclude_dep_items.length > 0
@@ -133,6 +152,17 @@ RB
133
152
  dynamic_sandbox_root = "#{config.sandbox_root}/#{dynamic_sandbox.root.to_s.split('/').last}"
134
153
  end
135
154
 
155
+ if (ENV['ENABLE_CLEAN_DUMMY_FILE'] && (ENV['ENABLE_CLEAN_DUMMY_FILE'].upcase == 'YES' || ENV['ENABLE_CLEAN_DUMMY_FILE'].upcase == 'TRUE'))
156
+ UI.title 'Clean Dummy Files' do
157
+ clean_dummy_files(static_sandbox.target_support_files_root)
158
+ if @dynamic
159
+ clean_dummy_files(dynamic_sandbox.target_support_files_root)
160
+ end
161
+ end
162
+ else
163
+ UI.puts 'Jump clean dummy files'
164
+ end
165
+
136
166
  builder = Pod::Builder.new(
137
167
  platform,
138
168
  static_installer,
@@ -39,6 +39,11 @@ module Pod
39
39
  if @exclude_dep_items.length > 0
40
40
  static_libs = static_libs_in_sandbox('build') + static_libs_in_sandbox('build-sim') + vendored_libraries
41
41
  static_libs.reject! {|lib| @exclude_dep_items.any? {|item| lib.to_s.include? item}}
42
+ UI.section 'Fetch output libs' do
43
+ static_libs.each do |lib|
44
+ UI.message lib
45
+ end
46
+ end
42
47
  libs = ios_architectures.map do |arch|
43
48
  library = "#{@static_sandbox_root}/build/package-#{arch}.a"
44
49
  `libtool -arch_only #{arch} -static -o #{library} #{static_libs.join(' ')}`
@@ -46,7 +51,7 @@ module Pod
46
51
  end
47
52
 
48
53
  `lipo -create -output #{output} #{libs.join(' ')}`
49
-
54
+
50
55
  # static_libs = static_libs_in_sandbox('build')
51
56
  # sim_libs = static_libs_in_sandbox('build-sim')
52
57
  # for item in @black_deps
@@ -240,9 +245,11 @@ MAP
240
245
 
241
246
  if $?.exitstatus != 0
242
247
  if ENV['ENABLE_BACKUP_WORKSPACE'] && (ENV['ENABLE_BACKUP_WORKSPACE'].upcase == 'YES' || ENV['ENABLE_BACKUP_WORKSPACE'].upcase == 'TRUE')
243
- target_dir = "#{@source_dir}/#{@spec.name}-#{@spec.version}"
244
- work_dir = Dir.pwd
245
- `mv "#{work_dir}" "#{target_dir}"`
248
+ UI.title 'Backup Workspace' do
249
+ target_dir = "#{@source_dir}/#{@spec.name}-#{@spec.version}"
250
+ work_dir = Dir.pwd
251
+ `mv "#{work_dir}" "#{target_dir}"`
252
+ end
246
253
  end
247
254
  puts UI::BuildFailedReport.report(command, output)
248
255
 
@@ -257,7 +264,8 @@ MAP
257
264
 
258
265
  alias initialize_t initialize
259
266
  def initialize(platform, static_installer, source_dir, static_sandbox_root, dynamic_sandbox_root, public_headers_root, spec, embedded, mangle, dynamic, config, bundle_identifier, exclude_deps,exclude_dep_items=[],select_archs=[])
260
- @exclude_dep_items = exclude_dep_items
267
+ @exclude_dep_items = ['libPods-packager.a']
268
+ @exclude_dep_items.concat(exclude_dep_items) if exclude_dep_items
261
269
  @select_archs = select_archs
262
270
  initialize_t(platform, static_installer,source_dir, static_sandbox_root, dynamic_sandbox_root, public_headers_root, spec, embedded, mangle, dynamic, config, bundle_identifier, exclude_deps)
263
271
  end
@@ -1,3 +1,3 @@
1
1
  module CocoapodsPackagerExt
2
- VERSION = "0.0.30"
2
+ VERSION = "0.0.35"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-packager-ext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.30
4
+ version: 0.0.35
5
5
  platform: ruby
6
6
  authors:
7
7
  - kyle.zhou
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-29 00:00:00.000000000 Z
11
+ date: 2021-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler