diff --git a/Anytype.xcodeproj/project.pbxproj b/Anytype.xcodeproj/project.pbxproj index 1f908370fb..e549a02e6c 100644 --- a/Anytype.xcodeproj/project.pbxproj +++ b/Anytype.xcodeproj/project.pbxproj @@ -13059,7 +13059,7 @@ repositoryURL = "https://github.com/getsentry/sentry-cocoa"; requirement = { kind = exactVersion; - version = 8.8.0; + version = 8.21.0; }; }; 2AC1262B2B90F65F003A4A8D /* XCRemoteSwiftPackageReference "Factory" */ = { diff --git a/Anytype.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/Anytype.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved index f58f2ed6af..2ab55af1cc 100644 --- a/Anytype.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/Anytype.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -86,8 +86,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/getsentry/sentry-cocoa", "state" : { - "revision" : "d277532e1c8af813981ba01f591b15bbdd735615", - "version" : "8.8.0" + "revision" : "38f4f70d07117b9f958a76b1bff278c2f29ffe0e", + "version" : "8.21.0" } }, { diff --git a/Anytype/Sources/CoreLayer/Sentry/SentryConfiguration.swift b/Anytype/Sources/CoreLayer/Sentry/SentryConfiguration.swift index e53bf8f19f..663c9ccd8f 100644 --- a/Anytype/Sources/CoreLayer/Sentry/SentryConfiguration.swift +++ b/Anytype/Sources/CoreLayer/Sentry/SentryConfiguration.swift @@ -22,7 +22,7 @@ final class SentryConfigurator: AppConfiguratorProtocol { #if DEBUG options.attachViewHierarchy = true - options.enableTimeToFullDisplay = true + options.enableTimeToFullDisplayTracing = true #endif options.environment = env diff --git a/Anytype/Sources/ServiceLayer/Auth/AuthService.swift b/Anytype/Sources/ServiceLayer/Auth/AuthService.swift index ecba98550c..a5011c94a2 100644 --- a/Anytype/Sources/ServiceLayer/Auth/AuthService.swift +++ b/Anytype/Sources/ServiceLayer/Auth/AuthService.swift @@ -51,7 +51,7 @@ final class AuthService: AuthServiceProtocol { AnytypeAnalytics.instance().setNetworkId(account.info.networkId) AnytypeAnalytics.instance().logAccountCreate(analyticsId: analyticsId, middleTime: middleTime) AnytypeAnalytics.instance().logCreateSpace(route: .navigation) - appErrorLoggerConfiguration.setUserId(analyticsId) + await appErrorLoggerConfiguration.setUserId(analyticsId) UserDefaultsConfig.usersId = account.id @@ -82,7 +82,7 @@ final class AuthService: AuthServiceProtocol { AnytypeAnalytics.instance().setUserId(analyticsId) AnytypeAnalytics.instance().setNetworkId(account.info.networkId) AnytypeAnalytics.instance().logAccountOpen(analyticsId: analyticsId) - appErrorLoggerConfiguration.setUserId(analyticsId) + await appErrorLoggerConfiguration.setUserId(analyticsId) switch account.status { case .active, .pendingDeletion: diff --git a/Anytype/Sources/ServiceLayer/Configuration/AnytypeErrorLoggerConfiguration.swift b/Anytype/Sources/ServiceLayer/Configuration/AnytypeErrorLoggerConfiguration.swift index 167ae7e37f..9e35eecbfe 100644 --- a/Anytype/Sources/ServiceLayer/Configuration/AnytypeErrorLoggerConfiguration.swift +++ b/Anytype/Sources/ServiceLayer/Configuration/AnytypeErrorLoggerConfiguration.swift @@ -1,12 +1,16 @@ import Foundation import Sentry +@MainActor protocol AppErrorLoggerConfigurationProtocol: AnyObject { func setUserId(_ userId: String) } +@MainActor final class AppErrorLoggerConfiguration: AppErrorLoggerConfigurationProtocol { + nonisolated init() {} + // MARK: - AppErrorLoggerConfigurationProtocol func setUserId(_ userId: String) {