cocoapods-bb-PodAssistant 0.3.17.8 → 0.3.18.0
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 06655c945f4d08be05c7ce08ee2de4ddcc6edc3bf6b401133df102d0689acb02
|
|
4
|
+
data.tar.gz: 4f6754226090df3f8224679083aa18606cef1659ea73d86cde31706df0288707
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4eee56b7dcc7f5f1bba72292ff4d9a755ee2bd617d6c28e8129b008d4d791f11242068d643abc5d1524b1d5833aecaef53fe70ea2cb8e66e9f3e43a4400b08c8
|
|
7
|
+
data.tar.gz: 0f60876ba2251d8d70ca29f8afd533b323e7b4457fbe2e3fcad8a0397378765f310cc605f786b0e6be1b32716a84bcb87e95511ddc76ee990f402a3dcce971c1
|
|
@@ -106,11 +106,20 @@ module SecurityHardening
|
|
|
106
106
|
|
|
107
107
|
# swift加固标记
|
|
108
108
|
swift_flags = Array(settings['OTHER_SWIFT_FLAGS'] || '$(inherited)')
|
|
109
|
-
|
|
109
|
+
.flat_map { |flag| flag.split(/\s+/) }
|
|
110
|
+
.reject(&:empty?)
|
|
111
|
+
# 清理历史重复的 O-MVLL 参数
|
|
112
|
+
swift_flags.delete(omvll_swift_flag)
|
|
113
|
+
# 根据开关重新添加
|
|
110
114
|
if enable_omvll == true
|
|
111
|
-
swift_flags << omvll_swift_flag
|
|
112
|
-
|
|
113
|
-
|
|
115
|
+
swift_flags << omvll_swift_flag
|
|
116
|
+
# workaround = [
|
|
117
|
+
# '-Xfrontend',
|
|
118
|
+
# '-disable-round-trip-debug-types'
|
|
119
|
+
# ]
|
|
120
|
+
# unless swift_flags.each_cons(2).any? { |pair| pair == workaround }
|
|
121
|
+
# swift_flags.concat(workaround)
|
|
122
|
+
# end
|
|
114
123
|
end
|
|
115
124
|
settings['OTHER_SWIFT_FLAGS'] = swift_flags
|
|
116
125
|
end
|