Periphery cleanup (#5893)

This commit is contained in:
Mauro
2026-07-20 11:16:11 +02:00
committed by GitHub
parent 175aca596e
commit 9093631f8b
275 changed files with 381 additions and 2268 deletions
+3
View File
@@ -93,6 +93,7 @@ final nonisolated class AppHooks: AppHooksProtocol {
_clientBuilderHook.withLock { $0 }
}
// periphery:ignore - might be useful to have
func registerClientBuilderHook(_ hook: ClientBuilderHookProtocol) {
_clientBuilderHook.withLock { $0 = hook }
}
@@ -108,9 +109,11 @@ final nonisolated class AppHooks: AppHooksProtocol {
}
nonisolated protocol AppHooksProtocol: Sendable {
// periphery:ignore - required for the architecture
func setUp()
}
nonisolated extension AppHooksProtocol {
// periphery:ignore - required for the architecture
func setUp() { }
}
@@ -56,11 +56,9 @@ struct DefaultRemoteSettingsHook: RemoteSettingsHookProtocol {
}
private struct ElementWellKnown: Decodable {
var version: Int?
var enforceElementPro: Bool?
enum CodingKeys: String, CodingKey {
case version
case enforceElementPro = "enforce_element_pro"
}
}