cocoapods-fy-bin 0.0.3 → 0.0.4
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 +41 -26
- 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: fabe41cc6cda2f5994cb55fa2c3385f5ae5df84cd585763ae319659098cd0e7e
|
4
|
+
data.tar.gz: e4cb60fbd085a56011ca5345bd1ae9764a73a1478de19fe1c49b95211fad730b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 528c535a2d41e5bc101aabc3a8891fb3d605f7a85441b02b07c85f5ea069aadffb642b6292ef30053c97d075ca730f5d7d922d98eabd611cf9139b02a0612dc6
|
7
|
+
data.tar.gz: 4c1707bbd3842bc0a38e7f61ea427c0c19163cc69e9e104c51a4ca0dd9b2b7079635fae7b2c10d480981b9ff874d5c3b4fddbae0cda137f215f3226180d117e9
|
@@ -167,7 +167,7 @@ module CBin
|
|
167
167
|
|
168
168
|
def compile
|
169
169
|
defines = "GCC_PREPROCESSOR_DEFINITIONS='$(inherited)'"
|
170
|
-
defines += '
|
170
|
+
defines += " SWIFT_ACTIVE_COMPILATION_CONDITIONS='$(inherited)' "
|
171
171
|
defines += @spec.consumer(@platform).compiler_flags.join(' ')
|
172
172
|
|
173
173
|
options = ios_build_options
|
@@ -203,6 +203,7 @@ module CBin
|
|
203
203
|
|
204
204
|
unless File.exist?("Pods.xcodeproj") #cocoapods-generate v2.0.0
|
205
205
|
command = "xcodebuild #{defines} #{args} CONFIGURATION_BUILD_DIR=#{File.join(File.expand_path("..", build_dir), File.basename(build_dir))} clean build -configuration #{build_model} -target #{target_name} -project ./Pods/Pods.xcodeproj 2>&1"
|
206
|
+
puts command
|
206
207
|
else
|
207
208
|
command = "xcodebuild #{defines} #{args} CONFIGURATION_BUILD_DIR=#{build_dir} clean build -configuration #{build_model} -target #{target_name} -project ./Pods.xcodeproj 2>&1"
|
208
209
|
end
|
@@ -295,31 +296,45 @@ module CBin
|
|
295
296
|
if File.exist?(swift_module_map_dir)
|
296
297
|
`ditto #{swift_module_map_dir} #{framework.swift_module_path}`
|
297
298
|
# 解决module与class名称冲突问题
|
298
|
-
swift_module_dir_path = File.expand_path(framework.swift_module_path)
|
299
|
-
|
300
|
-
exclude_frameworks = ["Foundation","Swift","UIKit","_Concurrency"]
|
301
|
-
Dir.chdir(swift_module_dir_path) {
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
299
|
+
# swift_module_dir_path = File.expand_path(framework.swift_module_path)
|
300
|
+
#
|
301
|
+
# exclude_frameworks = ["Foundation","Swift","UIKit","_Concurrency"]
|
302
|
+
# Dir.chdir(swift_module_dir_path) {
|
303
|
+
# if File.exist?("./arm64.swiftinterface")
|
304
|
+
# arr = IO.readlines("arm64.swiftinterface")
|
305
|
+
# arr.map { |item|
|
306
|
+
# if item.include?("import ")
|
307
|
+
# items = item.split(" ")
|
308
|
+
# item_last = items.last
|
309
|
+
# if !exclude_frameworks.include?(item_last)
|
310
|
+
# `find . -name "*.swiftinterface" -exec sed -i -e 's/#{item_last}\\.Method/#{item_last}BDF\\.Method/g' {} \\;`
|
311
|
+
# `find . -name "*.swiftinterface" -exec sed -i -e 's/#{item_last}\\.#{item_last}/#{item_last}ACE\\.#{item_last}BDF/g' {} \\;`
|
312
|
+
# `find . -name "*.swiftinterface" -exec sed -i -e 's/#{item_last}\\./#{item_last}ACE\\./g' {} \\;`
|
313
|
+
# `find . -name "*.swiftinterface" -exec sed -i -e 's/#{item_last}ACE\\.//g' {} \\;`
|
314
|
+
# `find . -name "*.swiftinterface" -exec sed -i -e 's/#{item_last}BDF/#{item_last}/g' {} \\;`
|
315
|
+
# `find . -name "*.swiftinterface-e" | xargs rm -rf`
|
316
|
+
# end
|
317
|
+
# end
|
318
|
+
# }
|
319
|
+
# end
|
320
|
+
# if File.exist?("./arm64-apple-ios.swiftinterface")
|
321
|
+
# arr = IO.readlines("arm64-apple-ios.swiftinterface")
|
322
|
+
# arr.map { |item|
|
323
|
+
# if item.include?("import ")
|
324
|
+
# items = item.split(" ")
|
325
|
+
# item_last = items.last
|
326
|
+
# if !exclude_frameworks.include?(item_last)
|
327
|
+
# `find . -name "*.swiftinterface" -exec sed -i -e 's/#{item_last}\\.Method/#{item_last}BDF\\.Method/g' {} \\;`
|
328
|
+
# `find . -name "*.swiftinterface" -exec sed -i -e 's/#{item_last}\\.#{item_last}/#{item_last}ACE\\.#{item_last}BDF/g' {} \\;`
|
329
|
+
# `find . -name "*.swiftinterface" -exec sed -i -e 's/#{item_last}\\./#{item_last}ACE\\./g' {} \\;`
|
330
|
+
# `find . -name "*.swiftinterface" -exec sed -i -e 's/#{item_last}ACE\\.//g' {} \\;`
|
331
|
+
# `find . -name "*.swiftinterface" -exec sed -i -e 's/#{item_last}BDF/#{item_last}/g' {} \\;`
|
332
|
+
# `find . -name "*.swiftinterface-e" | xargs rm -rf`
|
333
|
+
# end
|
334
|
+
# end
|
335
|
+
# }
|
336
|
+
# end
|
337
|
+
# }
|
323
338
|
end
|
324
339
|
end
|
325
340
|
|
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.0.
|
4
|
+
version: 0.0.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-08-
|
11
|
+
date: 2022-08-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parallel
|