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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3c98fb11cc533e98b54664eb8e822b0892f169ff5fd6e5dfd1eb45419c41b59
|
4
|
+
data.tar.gz: d068a22a91643175e49e7e8b903c827070fd867427e956b8778455171527d58f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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/
|
136
|
-
replaceString2 = "-e 's
|
137
|
-
replaceString3 = "-e 's
|
138
|
-
|
139
|
-
|
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
|
-
#
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
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)
|