feat: add Sentry error tracking and Expo Updates
This commit is contained in:
@@ -4,6 +4,15 @@ module.exports = (config) => ({
|
||||
type: "watch",
|
||||
icon: "../../assets/icon.png",
|
||||
deploymentTarget: "10.0",
|
||||
frameworks: ["SwiftUI"],
|
||||
swiftPackages: [
|
||||
{
|
||||
name: "SentrySPM",
|
||||
repositoryURL: "https://github.com/getsentry/sentry-cocoa.git",
|
||||
kind: "upToNextMajorVersion",
|
||||
minimumVersion: "9.25.0",
|
||||
},
|
||||
],
|
||||
entitlements: {
|
||||
"com.apple.security.application-groups":
|
||||
config.ios?.entitlements?.[
|
||||
|
||||
@@ -1,11 +1,19 @@
|
||||
import SwiftUI
|
||||
import WatchConnectivity
|
||||
import Sentry
|
||||
|
||||
@main
|
||||
struct SwimTrackerWatchApp: App {
|
||||
@StateObject private var workoutManager = WorkoutManager()
|
||||
|
||||
init() {
|
||||
SentrySDK.start { options in
|
||||
options.dsn = "https://6197bcf085d63727d829aa89ede8e973@o4507430203293696.ingest.de.sentry.io/4511875297706064"
|
||||
options.debug = false
|
||||
options.tracesSampleRate = 1.0
|
||||
options.enableLogs = true
|
||||
}
|
||||
|
||||
if WCSession.isSupported() {
|
||||
let session = WCSession.default
|
||||
session.delegate = PhoneConnector.shared
|
||||
|
||||
Reference in New Issue
Block a user