cocoapods-binary-artifactory-cache 0.0.17 → 0.0.18

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: b3c98fb11cc533e98b54664eb8e822b0892f169ff5fd6e5dfd1eb45419c41b59
4
+ data.tar.gz: d068a22a91643175e49e7e8b903c827070fd867427e956b8778455171527d58f
5
5
  SHA512:
6
- metadata.gz: f400141e821f7565acf193e0806ebfb83641ec03280269d325fc093e47f46adeded4061aa38b3e91e39b1427591d73e85f32e13c51d999c2cd11421600d1e6a1
7
- data.tar.gz: c504053566937d2c8548881b812c607e2d27e070322b202bc993045bc9bb1bdcc3a9c0185479ba85e5cf7588a7c293ee27b21514d2df30e1f3c644f0bcb7d41e
6
+ metadata.gz: 36d3f5db773f363fbfa4935d84738d3644f5cefef0004a1a8e6a8bbef0cb56524cf5dae02b9a8dc6ec6b4a55e9f7209e9a58ba535c598188e662c6acd46ee6eb
7
+ data.tar.gz: a583ee923c014c6fcae6fbee29fff49004209dae9319d6e653d439f590461b63c4a815db325b41e7826127ba693dee427addec466f900c51b522f577f31a4148
@@ -70,7 +70,7 @@ 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\"")
73
+ #args_[:default].prepend("OTHER_SWIFT_FLAGS=\"-Xfrontend -module-interface-preserve-types-as-written\"")
74
74
  args_[:simulator].prepend("ARCHS=x86_64", "ONLY_ACTIVE_ARCH=NO") if simulator == "iphonesimulator"
75
75
  args_[:simulator] += args_[:default]
76
76
  args_[:device].prepend("ONLY_ACTIVE_ARCH=NO")
@@ -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,7 +1,7 @@
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.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eugene Antropov