Skip to content

Commit cee613c

Browse files
committed
Fix build
1 parent 9a1df8a commit cee613c

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

Sources/Sentry/SentryDependencyContainer.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@
8181
#define SENTRY_THREAD_SANITIZER_DOUBLE_CHECKED_LOCK \
8282
SENTRY_DISABLE_THREAD_SANITIZER("Double-checked locks produce false alarms.")
8383

84+
@interface SentryFileManager () <SentryFileManagerProtocol>
85+
@end
86+
8487
@interface SentryDependencyContainer ()
8588

8689
@property (nonatomic, strong) id<SentryANRTracker> anrTracker;

Sources/Swift/Persistence/SentryScopeContextPersistentStore.swift

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
11
@_implementationOnly import _SentryPrivate
22

3+
@_spi(Private) @objc public protocol SentryFileManagerProtocol {
4+
func moveState(_ stateFilePath: String, toPreviousState previousStateFilePath: String)
5+
func readData(fromPath path: String) throws -> Data
6+
@objc(writeData:toPath:)
7+
@discardableResult func write(_ data: Data, toPath path: String) -> Bool
8+
func removeFile(atPath path: String)
9+
func getSentryPathAsURL() -> URL
10+
}
11+
312
@objcMembers
413
@_spi(Private) public class SentryScopeContextPersistentStore: NSObject {
5-
private let fileManager: SentryFileManager
14+
private let fileManager: SentryFileManagerProtocol
615

7-
public init(fileManager: SentryFileManager) {
16+
public init(fileManager: SentryFileManagerProtocol) {
817
self.fileManager = fileManager
918
}
1019

Tests/SentryTests/Integrations/WatchdogTerminations/SentryWatchdogTerminationTrackerTests.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
@_spi(Private) import SentryTestUtils
33
import XCTest
44

5+
@_spi(Private) extension SentryFileManager: @retroactive SentryFileManagerProtocol { }
6+
57
#if os(iOS) || os(tvOS) || targetEnvironment(macCatalyst)
68
class SentryWatchdogTerminationTrackerTests: NotificationCenterTestCase {
79

0 commit comments

Comments
 (0)