cocoapods-binary-artifactory-cache 0.0.4 → 0.0.8
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: 309ba07d64e0cc7251aafff9b3dfa105b69133395a2b182281446aff7b7f1733
|
4
|
+
data.tar.gz: ba40e92ddf8d7d0c0a5458bb4e43b7b613b07c673c5d255dfd1604712fb4dcde
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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"
|
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
|
-
|
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
|
-
|
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
|
+
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-
|
11
|
+
date: 2022-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cocoapods
|