cocoapods-fy-bin 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cocoapods-fy-bin/gem_version.rb +1 -1
- data/lib/cocoapods-fy-bin/helpers/framework_builder.rb +40 -40
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ffe0a4c864648fcc5fd7786bbab2158ab889b6df901dae86c10d56ed24bf92c0
|
4
|
+
data.tar.gz: 12dcec3f789d8a9befd685e49d08e412300f27d8c9294037b1006af65e95c3dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54dd90f9752610b875d320906d7d8d645b393a7ef260f0f1edb2735bd39eec07b4e18010d756c17d512d41c968ec770384cec9c491adad209d2c95df7369052d
|
7
|
+
data.tar.gz: d82b9ecb4ca558e9f42df83781a094eae7655749c4a8e080e979c64c91d984433e41798e7e7e36c6420aa97e3bcdb3edb2019e98797a570e559a04d4f9e5a908
|
@@ -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
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
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.
|
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-
|
11
|
+
date: 2022-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parallel
|