cocoapods-fy-bin 0.0.2 → 0.0.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dbd6a96a75872847c4d3ffa42076280cb90f67aa4cd2e74797f9d5a790868b16
|
4
|
+
data.tar.gz: 8eaf53a48a9b6b8a45a21af3882555e2be94ed0ceac822b70d3e3e13df83598c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd12f4edf60d61d00355766162b006e65b8860b3b0f62c40c9cbb09dece4ad9b20325425ceca2f87f35c7550e5f0cb5c1d7ba50f17def194e763f7b26af1c78d
|
7
|
+
data.tar.gz: bfc73167c0affefa93ed0be862b1cd913e8d75ecabf3a18057b1467bbc26344018fbefc1627c32828526bcf951369a0d054b473e6fbf6636c8986742a4a304d6
|
@@ -45,6 +45,7 @@ module Pod
|
|
45
45
|
UI.warn "====== cocoapods-fy-bin #{CBin::VERSION} 版本 ======== \n "
|
46
46
|
UI.warn "====== #{@env} 环境 ======== \n "
|
47
47
|
|
48
|
+
@podspec = argv.shift_argument
|
48
49
|
@code_dependencies = argv.flag?('code-dependencies')
|
49
50
|
@framework_output = argv.flag?('framework-output', false )
|
50
51
|
@clean = argv.flag?('no-clean', false)
|
@@ -21,8 +21,7 @@ module Pod
|
|
21
21
|
['--all-make', '对该组件的依赖库,全部制作为二进制组件'],
|
22
22
|
['--configuration', 'Build the specified configuration (e.g. Release ). Defaults to Debug'],
|
23
23
|
['--env', "该组件上传的环境 %w[dev debug_iphoneos release_iphoneos]"],
|
24
|
-
['--archs', "需要二进制组件的架构"]
|
25
|
-
['--spec', "指定spec文件"]
|
24
|
+
['--archs', "需要二进制组件的架构"]
|
26
25
|
].concat(Pod::Command::Gen.options).concat(super).uniq
|
27
26
|
end
|
28
27
|
|
@@ -30,10 +29,8 @@ module Pod
|
|
30
29
|
|
31
30
|
@env = argv.option('env') || 'dev'
|
32
31
|
CBin.config.set_configuration_env(@env)
|
33
|
-
@podspec = argv.shift_argument
|
34
|
-
puts @podspec
|
32
|
+
@podspec = argv.shift_argument
|
35
33
|
@specification = Specification.from_file(@podspec)
|
36
|
-
|
37
34
|
@code_dependencies = argv.flag?('code-dependencies')
|
38
35
|
@allow_prerelease = argv.flag?('allow-prerelease')
|
39
36
|
@framework_output = argv.flag?('framework-output', false )
|
@@ -299,21 +299,26 @@ module CBin
|
|
299
299
|
|
300
300
|
exclude_frameworks = ["Foundation","Swift","UIKit","_Concurrency"]
|
301
301
|
Dir.chdir(swift_module_dir_path) {
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
302
|
+
if File.exist?("./arm64.swiftinterface")
|
303
|
+
arr = IO.readlines("arm64.swiftinterface")
|
304
|
+
arr.map { |item|
|
305
|
+
if item.include?("import ")
|
306
|
+
items = item.split(" ")
|
307
|
+
item_last = items.last
|
308
|
+
if !exclude_frameworks.include?(item_last)
|
309
|
+
`find . -name "*.swiftinterface" -exec sed -i -e 's/#{item_last}\\.Method/#{item_last}BDF\\.Method/g' {} \\;`
|
310
|
+
`find . -name "*.swiftinterface" -exec sed -i -e 's/#{item_last}\\.#{item_last}/#{item_last}ACE\\.#{item_last}BDF/g' {} \\;`
|
311
|
+
`find . -name "*.swiftinterface" -exec sed -i -e 's/#{item_last}\\./#{item_last}ACE\\./g' {} \\;`
|
312
|
+
`find . -name "*.swiftinterface" -exec sed -i -e 's/#{item_last}ACE\\.//g' {} \\;`
|
313
|
+
`find . -name "*.swiftinterface" -exec sed -i -e 's/#{item_last}BDF/#{item_last}/g' {} \\;`
|
314
|
+
`find . -name "*.swiftinterface-e" | xargs rm -rf`
|
315
|
+
end
|
314
316
|
end
|
315
|
-
|
316
|
-
|
317
|
+
}
|
318
|
+
end
|
319
|
+
# if File.exist?("./arm64-apple-ios.swiftinterface")
|
320
|
+
# arr = IO.readlines("arm64-apple-ios.swiftinterface")
|
321
|
+
# end
|
317
322
|
}
|
318
323
|
end
|
319
324
|
end
|