cocoapods-binary-artifactory-cache 0.0.17 → 0.0.19

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: 634960f98c20566d0f4ff323a25404dd5e9b92e40701d5052f1611a2dbf6ec87
4
- data.tar.gz: c9ebfff08ff11b7133290fb6f1280ab394ee4b49d9b72137502001484f82fc19
3
+ metadata.gz: b9ac2c625c4fd7321577bc3ba48e1addf900a5b4c758dbd7bed1f925b7923c79
4
+ data.tar.gz: 36a7598c9e21292baeccce39c30ba3f586cdc6350ebb8edeb0407d4fa2cfa840
5
5
  SHA512:
6
- metadata.gz: f400141e821f7565acf193e0806ebfb83641ec03280269d325fc093e47f46adeded4061aa38b3e91e39b1427591d73e85f32e13c51d999c2cd11421600d1e6a1
7
- data.tar.gz: c504053566937d2c8548881b812c607e2d27e070322b202bc993045bc9bb1bdcc3a9c0185479ba85e5cf7588a7c293ee27b21514d2df30e1f3c644f0bcb7d41e
6
+ metadata.gz: 83889a6b5b232e16281e17ca1f867ebd2124ba48b41569850c2e70eed78e2fca8bae46727f4ee5834475c2ac68366706c0ede49022aaae8812fed438c8d7c57c
7
+ data.tar.gz: 3082cfc6c9e4695840a7d2827c59ec8949fb5b79ba9f08a1b3c1ea7e507bcc4ae61e90d314ddabebca7cdb55ae0440ecae9f33c2def361da9911b2d42f006da7
@@ -70,8 +70,8 @@ module PodPrebuild
70
70
  args_[:default].prepend("DEBUG_INFORMATION_FORMAT=dwarf-with-dsym") unless disable_dsym?
71
71
  args_[:default].prepend("DEBUG_INFORMATION_FORMAT=dwarf") if disable_dsym?
72
72
  args_[:default].prepend("BUILD_LIBRARY_FOR_DISTRIBUTION=YES")
73
- args_[:default].prepend("OTHER_SWIFT_FLAGS=\"-Xfrontend -module-interface-preserve-types-as-written\"")
74
- args_[:simulator].prepend("ARCHS=x86_64", "ONLY_ACTIVE_ARCH=NO") if simulator == "iphonesimulator"
73
+ #args_[:default].prepend("OTHER_SWIFT_FLAGS=\"-Xfrontend -module-interface-preserve-types-as-written\"")
74
+ args_[:simulator].prepend("ARCHS=\"x86_64 arm64\"", "ONLY_ACTIVE_ARCH=NO") if simulator == "iphonesimulator"
75
75
  args_[:simulator] += args_[:default]
76
76
  args_[:device].prepend("ONLY_ACTIVE_ARCH=NO")
77
77
  args_[:device] += args_[:default]
@@ -132,17 +132,18 @@ module PodPrebuild
132
132
  targets.each do |target|
133
133
  escapedPod = target.product_module_name.gsub('/', '\/')
134
134
  # replace when framework and class in framework with the same name
135
- replaceString1 = "-e 's/[[:<:]]#{escapedPod}\\.#{escapedPod}\\./REPLACEME_POD\\./g'"
136
- replaceString2 = "-e 's/[[:<:]]#{escapedPod}\\.//g'"
137
- replaceString3 = "-e 's/REPLACEME_POD/#{escapedPod}/g'"
138
- Pod::UI.puts_indented "$ find '#{output_path(target)}/#{target.product_module_name}.xcframework' -name '*.swiftinterface' -exec sed -i -e #{replaceString1} #{replaceString2} #{replaceString3} {} \\\;"
139
- `find "#{output_path(target)}/#{target.product_module_name}.xcframework" -name '*.swiftinterface' -exec sed -i -e #{replaceString1} #{replaceString2} #{replaceString3} {} \\\;`
135
+ replaceString1 = "-e '/^import/! s/ #{escapedPod}\\./ /g'" #remove framework name in swiftinterface of it frameworkd
136
+ replaceString2 = "-e 's/\(#{escapedPod}\\./(/g'"
137
+ replaceString3 = "-e 's/\\[#{escapedPod}\\./[/g'"
138
+ replaceString4 = "-e 's/<#{escapedPod}\\./</g'"
139
+ Pod::UI.puts_indented "$ find '#{output_path(target)}/#{target.product_module_name}.xcframework' -name '*.swiftinterface' -exec sed -i -e #{replaceString1} #{replaceString2} #{replaceString3} #{replaceString4} {} \\\;"
140
+ `find "#{output_path(target)}/#{target.product_module_name}.xcframework" -name '*.swiftinterface' -exec sed -i -e #{replaceString1} #{replaceString2} #{replaceString3} #{replaceString4} {} \\\;`
140
141
  end
141
- # #remove dublication name in other frameworks
142
- # allDirTargets = Dir["#{@options[:output_path]}/*"].map { |x| x.gsub("#{@options[:output_path]}/", "") }
143
- # replaceString = allDirTargets.uniq().map{ |x| x.gsub('/', '\/')}.map{|x| "-e 's/#{x}\\.#{x}/#{x}/g'"}.join(' ')
144
- # Pod::UI.puts_indented "$ find #{@options[:output_path]} -name '*.swiftinterface' -exec sed -i -e #{replaceString} {} \\\;"
145
- # `find #{@options[:output_path]} -name '*.swiftinterface' -exec sed -i -e #{replaceString} {} \\\;`
142
+ #remove dublication name in other frameworks
143
+ allDirTargets = Dir["#{@options[:output_path]}/*"].map { |x| x.gsub("#{@options[:output_path]}/", "") }
144
+ replaceString = allDirTargets.uniq().map{ |x| x.gsub('/', '\/')}.map{|x| "-e 's/#{x}\\.#{x}/#{x}/g'"}.join(' ')
145
+ Pod::UI.puts_indented "$ find #{@options[:output_path]} -name '*.swiftinterface' -exec sed -i -e #{replaceString} {} \\\;"
146
+ `find #{@options[:output_path]} -name '*.swiftinterface' -exec sed -i -e #{replaceString} {} \\\;`
146
147
  end
147
148
 
148
149
  def create_fat_framework(target)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-binary-artifactory-cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.17
4
+ version: 0.0.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eugene Antropov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-12 00:00:00.000000000 Z
11
+ date: 2023-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocoapods