cocoapods-fy-bin 0.2.2 → 0.2.3

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: 83385deb51078791c39ba4968f989f6a468bb8da5605dce88f9fa9a69fb65000
4
- data.tar.gz: 78d9204eed0956a83025a228b8aac72d562ef9f351c1ebc9c91b55120004e68b
3
+ metadata.gz: ffe0a4c864648fcc5fd7786bbab2158ab889b6df901dae86c10d56ed24bf92c0
4
+ data.tar.gz: 12dcec3f789d8a9befd685e49d08e412300f27d8c9294037b1006af65e95c3dc
5
5
  SHA512:
6
- metadata.gz: 6ebaed0b8a01c84b64eff0897159a7301a1656c1e88ea66b20fcef790d17494e68df96a738d0a157601226dd238935076472650b1c1dfefac9f89fe96b84b1c7
7
- data.tar.gz: 7c20988186ac2e2e3211d9307f1f5779451539c1b4e0b17632de7a34089f46f9c4ff06b3b3e19c8e65f5db726ab9f9f1f01c9a9dd74b58d4e212cc332d5ff34b
6
+ metadata.gz: 54dd90f9752610b875d320906d7d8d645b393a7ef260f0f1edb2735bd39eec07b4e18010d756c17d512d41c968ec770384cec9c491adad209d2c95df7369052d
7
+ data.tar.gz: d82b9ecb4ca558e9f42df83781a094eae7655749c4a8e080e979c64c91d984433e41798e7e7e36c6420aa97e3bcdb3edb2019e98797a570e559a04d4f9e5a908
@@ -1,6 +1,6 @@
1
1
 
2
2
  module CBin
3
- VERSION = '0.2.2'
3
+ VERSION = '0.2.3'
4
4
  end
5
5
 
6
6
  module Pod
@@ -348,46 +348,46 @@ module CBin
348
348
  swift_module_map_dir = "./build-#{arch}/#{treated_framework_name}.framework/Modules/#{treated_framework_name}.swiftmodule"
349
349
  if File.exist?(swift_module_map_dir)
350
350
  `ditto #{swift_module_map_dir} #{framework.swift_module_path}`
351
- # 解决module与class名称冲突问题
352
- # swift_module_dir_path = File.expand_path(framework.swift_module_path)
353
- #
354
- # exclude_frameworks = ["Foundation","Swift","UIKit","_Concurrency"]
355
- # Dir.chdir(swift_module_dir_path) {
356
- # if File.exist?("./arm64.swiftinterface")
357
- # arr = IO.readlines("arm64.swiftinterface")
358
- # arr.map { |item|
359
- # if item.include?("import ")
360
- # items = item.split(" ")
361
- # item_last = items.last
362
- # if !exclude_frameworks.include?(item_last)
363
- # `find . -name "*.swiftinterface" -exec sed -i -e 's/#{item_last}\\.Method/#{item_last}BDF\\.Method/g' {} \\;`
364
- # `find . -name "*.swiftinterface" -exec sed -i -e 's/#{item_last}\\.#{item_last}/#{item_last}ACE\\.#{item_last}BDF/g' {} \\;`
365
- # `find . -name "*.swiftinterface" -exec sed -i -e 's/#{item_last}\\./#{item_last}ACE\\./g' {} \\;`
366
- # `find . -name "*.swiftinterface" -exec sed -i -e 's/#{item_last}ACE\\.//g' {} \\;`
367
- # `find . -name "*.swiftinterface" -exec sed -i -e 's/#{item_last}BDF/#{item_last}/g' {} \\;`
368
- # `find . -name "*.swiftinterface-e" | xargs rm -rf`
369
- # end
370
- # end
371
- # }
372
- # end
373
- # if File.exist?("./arm64-apple-ios.swiftinterface")
374
- # arr = IO.readlines("arm64-apple-ios.swiftinterface")
375
- # arr.map { |item|
376
- # if item.include?("import ")
377
- # items = item.split(" ")
378
- # item_last = items.last
379
- # if !exclude_frameworks.include?(item_last)
380
- # `find . -name "*.swiftinterface" -exec sed -i -e 's/#{item_last}\\.Method/#{item_last}BDF\\.Method/g' {} \\;`
381
- # `find . -name "*.swiftinterface" -exec sed -i -e 's/#{item_last}\\.#{item_last}/#{item_last}ACE\\.#{item_last}BDF/g' {} \\;`
382
- # `find . -name "*.swiftinterface" -exec sed -i -e 's/#{item_last}\\./#{item_last}ACE\\./g' {} \\;`
383
- # `find . -name "*.swiftinterface" -exec sed -i -e 's/#{item_last}ACE\\.//g' {} \\;`
384
- # `find . -name "*.swiftinterface" -exec sed -i -e 's/#{item_last}BDF/#{item_last}/g' {} \\;`
385
- # `find . -name "*.swiftinterface-e" | xargs rm -rf`
386
- # end
387
- # end
388
- # }
389
- # end
390
- # }
351
+ #解决module与class名称冲突问题
352
+ swift_module_dir_path = File.expand_path(framework.swift_module_path)
353
+
354
+ exclude_frameworks = ["Foundation","Swift","UIKit","_Concurrency"]
355
+ Dir.chdir(swift_module_dir_path) {
356
+ # if File.exist?("./arm64.swiftinterface")
357
+ # arr = IO.readlines("arm64.swiftinterface")
358
+ # arr.map { |item|
359
+ # if item.include?("import ")
360
+ # items = item.split(" ")
361
+ # item_last = items.last
362
+ # if !exclude_frameworks.include?(item_last)
363
+ # `find . -name "*.swiftinterface" -exec sed -i -e 's/#{item_last}\\.Method/#{item_last}BDF\\.Method/g' {} \\;`
364
+ # `find . -name "*.swiftinterface" -exec sed -i -e 's/#{item_last}\\.#{item_last}/#{item_last}ACE\\.#{item_last}BDF/g' {} \\;`
365
+ # `find . -name "*.swiftinterface" -exec sed -i -e 's/#{item_last}\\./#{item_last}ACE\\./g' {} \\;`
366
+ # `find . -name "*.swiftinterface" -exec sed -i -e 's/#{item_last}ACE\\.//g' {} \\;`
367
+ # `find . -name "*.swiftinterface" -exec sed -i -e 's/#{item_last}BDF/#{item_last}/g' {} \\;`
368
+ # `find . -name "*.swiftinterface-e" | xargs rm -rf`
369
+ # end
370
+ # end
371
+ # }
372
+ # end
373
+ if File.exist?("./arm64-apple-ios.swiftinterface")
374
+ arr = IO.readlines("arm64-apple-ios.swiftinterface")
375
+ arr.map { |item|
376
+ if item.include?("import ")
377
+ items = item.split(" ")
378
+ item_last = items.last
379
+ if !exclude_frameworks.include?(item_last)
380
+ `find . -name "*.swiftinterface" -exec sed -i -e 's/#{item_last}\\.Method/#{item_last}BDF\\.Method/g' {} \\;`
381
+ `find . -name "*.swiftinterface" -exec sed -i -e 's/#{item_last}\\.#{item_last}/#{item_last}ACE\\.#{item_last}BDF/g' {} \\;`
382
+ `find . -name "*.swiftinterface" -exec sed -i -e 's/#{item_last}\\./#{item_last}ACE\\./g' {} \\;`
383
+ `find . -name "*.swiftinterface" -exec sed -i -e 's/#{item_last}ACE\\.//g' {} \\;`
384
+ `find . -name "*.swiftinterface" -exec sed -i -e 's/#{item_last}BDF/#{item_last}/g' {} \\;`
385
+ `find . -name "*.swiftinterface-e" | xargs rm -rf`
386
+ end
387
+ end
388
+ }
389
+ end
390
+ }
391
391
  end
392
392
  end
393
393
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-fy-bin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - dr
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-13 00:00:00.000000000 Z
11
+ date: 2022-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parallel