cocoapods-fy-bin 0.2.2 → 0.2.4

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: 83385deb51078791c39ba4968f989f6a468bb8da5605dce88f9fa9a69fb65000
4
- data.tar.gz: 78d9204eed0956a83025a228b8aac72d562ef9f351c1ebc9c91b55120004e68b
3
+ metadata.gz: 82f7afcca88450b45007d5c07cf393892ab0ea960704a581a1586b589a2a1cf0
4
+ data.tar.gz: 6912610afce0c9dc5b2d855769814ec7aa72b9347a0dccd55d13b0935b4c691b
5
5
  SHA512:
6
- metadata.gz: 6ebaed0b8a01c84b64eff0897159a7301a1656c1e88ea66b20fcef790d17494e68df96a738d0a157601226dd238935076472650b1c1dfefac9f89fe96b84b1c7
7
- data.tar.gz: 7c20988186ac2e2e3211d9307f1f5779451539c1b4e0b17632de7a34089f46f9c4ff06b3b3e19c8e65f5db726ab9f9f1f01c9a9dd74b58d4e212cc332d5ff34b
6
+ metadata.gz: 3df0dde8075533c59d59d1fba10315032f42076672af1934798db9dccdddbd5ff2883decfee8a2cac2f4b677df2de6ef01b9aa5d029f076d30e32ff2d4bcc4a9
7
+ data.tar.gz: 962acbdb51b7d86eabb857df736e8bfdb1bf8a403ffd1db6adf6de0f0a43422b2379fc8cdf86a6d076586f2ec9c224200e26d370003994fbea1a89edec271f11
@@ -170,6 +170,7 @@ module Pod
170
170
  "--sources=#{sources_option(@code_dependencies, @sources)}",
171
171
  "--gen-directory=#{CBin::Config::Builder.instance.gen_dir}",
172
172
  '--clean',
173
+ '--platforms=ios',
173
174
  *@additional_args
174
175
  ]
175
176
 
@@ -1,6 +1,6 @@
1
1
 
2
2
  module CBin
3
- VERSION = '0.2.2'
3
+ VERSION = '0.2.4'
4
4
  end
5
5
 
6
6
  module Pod
@@ -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
- "#{@spec.name}-#{Platform.string_name(@spec.consumer(@platform).platform_name)}"
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
- # 解决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.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-10-13 00:00:00.000000000 Z
11
+ date: 2022-12-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parallel