TF-4269 Integrate Sentry into iOS NSE and automate dSYM upload in CI

This commit is contained in:
dab246
2026-04-21 11:51:36 +07:00
parent 4505c50302
commit bab9d4f24c
17 changed files with 412 additions and 18 deletions
@@ -58,3 +58,21 @@ class KeychainController: KeychainControllerDelegate {
} catch {}
}
}
extension KeychainController {
/// The key used in Dart to store the Sentry configuration JSON
private var sentryConfigKey: String { "sentry_config_data" }
/// Retrieves and decodes the SentryConfig from Keychain
func retrieveSentryConfig() -> SentryConfig? {
do {
guard let configData = try keychain.getData(sentryConfigKey) else {
return nil
}
return try JSONDecoder().decode(SentryConfig.self, from: configData)
} catch {
TwakeLogger.shared.log(message: "SentryConfig could not be decoded from Keychain")
return nil
}
}
}