* update dev deps * partial update dependencies * update watermelondb * update rn to 0.76.5, expo to 52.0.18 and others * upgrade android firebase * upgrade detox deps * fix package-lock.json * update emm and paste-input * update turbo-log * update network library * fix tests * review feedback * fix Keyboard blocking signIn button * Fall back to iphone 14 iOS 17.2 simulator as app crashes on iOS 17.4 * changes in deleteCredentialsForServer is causing a crash * withOptions x2 clearly is wrong * re-add cli-platform-apple fix * fix: RN 0.76.5 issue with bottom sheet disappearing (#8478) * experiment, using view vs BottomSheetView * revert previous & try disabling enableDynamicSizing * revert an unintended removal --------- Co-authored-by: yasserfaraazkhan <attitude3cena.yf@gmail.com> Co-authored-by: Mattermost Build <build@mattermost.com> Co-authored-by: Rahim Rahman <rahim.rahman@mattermost.com>
27 lines
679 B
Swift
27 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 = false
|
|
options.enableCaptureFailedRequests = true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func testSentry(msg: String){
|
|
SentrySDK.capture(message: msg)
|
|
}
|