cocoapods-binary-artifactory-cache 0.0.4 → 0.0.8

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: c3952f7d41c52225754ab6fb440bbe463a03ef18d1cbed050afd7871736a7616
4
- data.tar.gz: 1c3498df4b195fec0fc735bae25816aeaebce23804602f4e04f3d83cdd6f9321
3
+ metadata.gz: 309ba07d64e0cc7251aafff9b3dfa105b69133395a2b182281446aff7b7f1733
4
+ data.tar.gz: ba40e92ddf8d7d0c0a5458bb4e43b7b613b07c673c5d255dfd1604712fb4dcde
5
5
  SHA512:
6
- metadata.gz: fe2096715d5b55deb8b46628929d5a7907ec017fe97a736f42eb5c2ccbbe34a6a5a930fb59bbc46785e7cfd87ada31e68671db7327f9f780cda888b6029c1663
7
- data.tar.gz: 357329eda6a326265e5c0295a5852d7ebee579037587c8ac90954ee730ea723a1989ead84235e140bbed1395e174a38faa86e5b638e78ab2ed9ede0f5b1c3c3a
6
+ metadata.gz: c2c2265d23530c2448b3cbc6b6a44a83a1f91a0a5544feca9c6a6532e6c6b29bd190770d9ef3da34155c54038077eafeb887ff8c0847fd96b7a4b8d4c2df2f0c
7
+ data.tar.gz: 50886e06eec27b830fbc88f05e2201833937b4bf450a5bb953378ba98645c6b40e42ea97805e3f153ad204bcc2155ef9e35b562050c73f214fa42724d822c146
@@ -100,8 +100,9 @@ module PodPrebuild
100
100
  output = "#{output_path(target)}/#{target.product_module_name}.xcframework"
101
101
  FileUtils.rm_rf(output)
102
102
 
103
- cmd = ["xcodebuild", "-create-xcframework", "-allow-internal-distribution"]
104
-
103
+ cmd = ["xcodebuild", "-create-xcframework"]
104
+ # -allow-internal-distribution
105
+ #
105
106
  # for each sdk, the order of params must be -framework then -debug-symbols
106
107
  # to prevent duplicated file error when copying dSYMs
107
108
  sdks.each do |sdk|
@@ -133,10 +134,14 @@ module PodPrebuild
133
134
  replaceString1 = "-e '/^import/! s/ #{escapedPod}\\./ /g'" #remove framework name in swiftinterface of it frameworkd
134
135
  replaceString2 = "-e 's/\(#{escapedPod}\\./(/g'"
135
136
  replaceString3 = "-e 's/\\[#{escapedPod}\\./[/g'"
136
- `find "#{output_path(target)}/#{target.product_module_name}.xcframework" -name '*.swiftinterface' -exec sed -i -e #{replaceString1} #{replaceString2} #{replaceString3} {} \\\;`
137
+ replaceString4 = "-e 's/<#{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} #{replaceString4} {} \\\;"
139
+ `find "#{output_path(target)}/#{target.product_module_name}.xcframework" -name '*.swiftinterface' -exec sed -i -e #{replaceString1} #{replaceString2} #{replaceString3} #{replaceString4} {} \\\;`
137
140
  end
138
141
  #remove dublication name in other frameworks
139
- replaceString = targets.map { |x| x.product_module_name }.uniq().map{ |x| x.gsub('/', '\/')}.map{|x| "-e 's/#{x}\\.#{x}/#{x}/g'"}.join(' ')
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} {} \\\;"
140
145
  `find #{@options[:output_path]} -name '*.swiftinterface' -exec sed -i -e #{replaceString} {} \\\;`
141
146
  end
142
147
 
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.4
4
+ version: 0.0.8
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-01-19 00:00:00.000000000 Z
11
+ date: 2022-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocoapods