cocoapods-fy-bin 0.2.2 → 0.2.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82f7afcca88450b45007d5c07cf393892ab0ea960704a581a1586b589a2a1cf0
|
4
|
+
data.tar.gz: 6912610afce0c9dc5b2d855769814ec7aa72b9347a0dccd55d13b0935b4c691b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3df0dde8075533c59d59d1fba10315032f42076672af1934798db9dccdddbd5ff2883decfee8a2cac2f4b677df2de6ef01b9aa5d029f076d30e32ff2d4bcc4a9
|
7
|
+
data.tar.gz: 962acbdb51b7d86eabb857df736e8bfdb1bf8a403ffd1db6adf6de0f0a43422b2379fc8cdf86a6d076586f2ec9c224200e26d370003994fbea1a89edec271f11
|
@@ -203,11 +203,11 @@ module CBin
|
|
203
203
|
def target_name
|
204
204
|
#区分多平台,如配置了多平台,会带上平台的名字
|
205
205
|
# 如libwebp-iOS
|
206
|
-
if @spec.available_platforms.count > 1
|
207
|
-
|
208
|
-
else
|
206
|
+
# if @spec.available_platforms.count > 1
|
207
|
+
# "#{@spec.name}-#{Platform.string_name(@spec.consumer(@platform).platform_name)}"
|
208
|
+
# else
|
209
209
|
@spec.name
|
210
|
-
end
|
210
|
+
# end
|
211
211
|
end
|
212
212
|
|
213
213
|
# 编译前需执行的的shell脚本
|
@@ -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.4
|
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-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parallel
|