Files
mattermost-mobile/ios/ErrorReporting/Sentry.swift
Elias Nahum 784b05fe97 Upgrade Dependencies (#7299)
* upgrade reanimated

* update devDependencies

* upgrade react-intl

* update react-native and some dependencies

* update react-native-permissions

* update RN

* use Share sheet for Report a problem

* update Sentry

* remove step to downloadWebRTC

* update detox deps

* feedback review
2023-04-21 12:16:54 -04:00

28 lines
679 B
Swift

//
// Sentry.swift
// Mattermost
//
// Created by Avinash Lingaloo on 20/12/2022.
// Copyright © 2022 Facebook. All rights reserved.
//
import Foundation
import Sentry
func initSentryAppExt(){
if let SENTRY_ENABLED = Bundle.main.infoDictionary?["SENTRY_ENABLED"] as? String,
let SENTRY_DSN = Bundle.main.infoDictionary?["SENTRY_DSN_IOS"] as? String {
if(SENTRY_ENABLED=="true"){
SentrySDK.start { options in
options.dsn = SENTRY_DSN
options.enableAppHangTracking = true
options.enableCaptureFailedRequests = false
}
}
}
}
func testSentry(msg: String){
SentrySDK.capture(message: msg)
}