cocoapods-fy-bin 0.0.1 → 0.0.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: 10b2f2a6df7efa962d991a830ec44831e2be19f9196e944afc54992066f647e3
4
- data.tar.gz: f7ca5842682ae9ebd59231c208608ece878d97df2ce6af166a0e3233797ee7cd
3
+ metadata.gz: fabe41cc6cda2f5994cb55fa2c3385f5ae5df84cd585763ae319659098cd0e7e
4
+ data.tar.gz: e4cb60fbd085a56011ca5345bd1ae9764a73a1478de19fe1c49b95211fad730b
5
5
  SHA512:
6
- metadata.gz: e3377e6ab124ffe92d9627640dde7c94dc8e3128bf4b11d4246bf52e3702307e9c24bef16447c831f42a23e0f1f7d5cc5a0b55f7f6778317bebeb7a951261129
7
- data.tar.gz: a681ac3e8b80a19d541d15af2f2eb24224bf7efad88797e21480dc48e0fb0d7f613f2905c8a1cbf39e733622e0dc5856c8d96203907809a5917b585da38c1229
6
+ metadata.gz: 528c535a2d41e5bc101aabc3a8891fb3d605f7a85441b02b07c85f5ea069aadffb642b6292ef30053c97d075ca730f5d7d922d98eabd611cf9139b02a0612dc6
7
+ data.tar.gz: 4c1707bbd3842bc0a38e7f61ea427c0c19163cc69e9e104c51a4ca0dd9b2b7079635fae7b2c10d480981b9ff874d5c3b4fddbae0cda137f215f3226180d117e9
@@ -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)
@@ -29,10 +29,8 @@ module Pod
29
29
 
30
30
  @env = argv.option('env') || 'dev'
31
31
  CBin.config.set_configuration_env(@env)
32
-
33
- @podspec = argv.shift_argument || find_podspec
32
+ @podspec = argv.shift_argument
34
33
  @specification = Specification.from_file(@podspec)
35
-
36
34
  @code_dependencies = argv.flag?('code-dependencies')
37
35
  @allow_prerelease = argv.flag?('allow-prerelease')
38
36
  @framework_output = argv.flag?('framework-output', false )
@@ -1,6 +1,6 @@
1
1
 
2
2
  module CBin
3
- VERSION = '0.0.1'
3
+ VERSION = '0.0.4'
4
4
  end
5
5
 
6
6
  module Pod
@@ -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,26 +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
- arr = IO.readlines("arm64.swiftinterface")
303
- arr.map { |item|
304
- if item.include?("import ")
305
- items = item.split(" ")
306
- item_last = items.last
307
- if !exclude_frameworks.include?(item_last)
308
- `find . -name "*.swiftinterface" -exec sed -i -e 's/#{item_last}\\.Method/#{item_last}BDF\\.Method/g' {} \\;`
309
- `find . -name "*.swiftinterface" -exec sed -i -e 's/#{item_last}\\.#{item_last}/#{item_last}ACE\\.#{item_last}BDF/g' {} \\;`
310
- `find . -name "*.swiftinterface" -exec sed -i -e 's/#{item_last}\\./#{item_last}ACE\\./g' {} \\;`
311
- `find . -name "*.swiftinterface" -exec sed -i -e 's/#{item_last}ACE\\.//g' {} \\;`
312
- `find . -name "*.swiftinterface" -exec sed -i -e 's/#{item_last}BDF/#{item_last}/g' {} \\;`
313
- `find . -name "*.swiftinterface-e" | xargs rm -rf`
314
- end
315
- end
316
- }
317
- }
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
+ # }
318
338
  end
319
339
  end
320
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.1
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-07-27 00:00:00.000000000 Z
11
+ date: 2022-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parallel