Skip to content

Commit

Permalink
Merge pull request #1180 from anyproto/ios-2649-update-zipfoundation-…
Browse files Browse the repository at this point in the history
…to-the-latest-version

iOS-2649 Resolve require APIs reasons | Update ZIPFoundation to the latest version
  • Loading branch information
joe-pusya authored Apr 10, 2024
2 parents d00b65d + dcb0c32 commit 6c2b12f
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Anytype.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -13043,7 +13043,7 @@
repositoryURL = "https://github.com/weichsel/ZIPFoundation";
requirement = {
kind = exactVersion;
version = 0.9.18;
version = 0.9.19;
};
};
2A6ED16E285B452600AAA21C /* XCRemoteSwiftPackageReference "swift-protobuf" */ = {
Expand All @@ -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" */ = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
},
{
Expand Down Expand Up @@ -176,8 +176,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/weichsel/ZIPFoundation",
"state" : {
"revision" : "b979e8b52c7ae7f3f39fa0182e738e9e7257eb78",
"version" : "0.9.18"
"revision" : "02b6abe5f6eef7e3cbd5f247c5cc24e246efcfe0",
"version" : "0.9.19"
}
}
],
Expand Down
2 changes: 1 addition & 1 deletion Anytype/Sources/CoreLayer/Sentry/SentryConfiguration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ final class SentryConfigurator: AppConfiguratorProtocol {

#if DEBUG
options.attachViewHierarchy = true
options.enableTimeToFullDisplay = true
options.enableTimeToFullDisplayTracing = true
#endif

options.environment = env
Expand Down
4 changes: 2 additions & 2 deletions Anytype/Sources/ServiceLayer/Auth/AuthService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down

0 comments on commit 6c2b12f

Please sign in to comment.