cocoapods-binary-artifactory-cache 0.0.3 → 0.0.4
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: c3952f7d41c52225754ab6fb440bbe463a03ef18d1cbed050afd7871736a7616
|
4
|
+
data.tar.gz: 1c3498df4b195fec0fc735bae25816aeaebce23804602f4e04f3d83cdd6f9321
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe2096715d5b55deb8b46628929d5a7907ec017fe97a736f42eb5c2ccbbe34a6a5a930fb59bbc46785e7cfd87ada31e68671db7327f9f780cda888b6029c1663
|
7
|
+
data.tar.gz: 357329eda6a326265e5c0295a5852d7ebee579037587c8ac90954ee730ea723a1989ead84235e140bbed1395e174a38faa86e5b638e78ab2ed9ede0f5b1c3c3a
|
@@ -30,6 +30,7 @@ module PodPrebuild
|
|
30
30
|
collect_output(target, Dir[target_products_dir_of(target, sdks[0]) + "/*"])
|
31
31
|
end
|
32
32
|
end
|
33
|
+
fix_swiftinterface_files(targets)
|
33
34
|
end
|
34
35
|
|
35
36
|
private
|
@@ -125,6 +126,20 @@ module PodPrebuild
|
|
125
126
|
`#{cmd.join(" ")}`
|
126
127
|
end
|
127
128
|
|
129
|
+
def fix_swiftinterface_files(targets)
|
130
|
+
targets.each do |target|
|
131
|
+
escapedPod = target.product_module_name.gsub('/', '\/')
|
132
|
+
# replace when framework and class in framework with the same name
|
133
|
+
replaceString1 = "-e '/^import/! s/ #{escapedPod}\\./ /g'" #remove framework name in swiftinterface of it frameworkd
|
134
|
+
replaceString2 = "-e 's/\(#{escapedPod}\\./(/g'"
|
135
|
+
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
|
+
end
|
138
|
+
#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(' ')
|
140
|
+
`find #{@options[:output_path]} -name '*.swiftinterface' -exec sed -i -e #{replaceString} {} \\\;`
|
141
|
+
end
|
142
|
+
|
128
143
|
def create_fat_framework(target)
|
129
144
|
# When merging contents of `simulator` & `device`, prefer contents of `device` over `simulator`
|
130
145
|
# https://github.com/grab/cocoapods-binary-cache/issues/25
|
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.4
|
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-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cocoapods
|
@@ -199,7 +199,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
199
199
|
- !ruby/object:Gem::Version
|
200
200
|
version: '0'
|
201
201
|
requirements: []
|
202
|
-
rubygems_version: 3.
|
202
|
+
rubygems_version: 3.3.5
|
203
203
|
signing_key:
|
204
204
|
specification_version: 4
|
205
205
|
summary: Reduce build time by building pod frameworks and cache it in artifactory
|