From 455ea4f3d204bf804ead9800bc3cb70b9b665017 Mon Sep 17 00:00:00 2001 From: jennmueng Date: Sun, 8 Nov 2020 20:55:35 +0700 Subject: [PATCH 1/2] feat: Expose SentryFileManager and SentryCurrentDateProvider --- Sentry.xcodeproj/project.pbxproj | 8 ++++---- Sources/Sentry/Public/Sentry.h | 4 +++- .../{include => Public}/SentryCurrentDateProvider.h | 0 Sources/Sentry/{include => Public}/SentryFileManager.h | 0 4 files changed, 7 insertions(+), 5 deletions(-) rename Sources/Sentry/{include => Public}/SentryCurrentDateProvider.h (100%) rename Sources/Sentry/{include => Public}/SentryFileManager.h (100%) diff --git a/Sentry.xcodeproj/project.pbxproj b/Sentry.xcodeproj/project.pbxproj index 4e620c887c8..fa373c375e3 100644 --- a/Sentry.xcodeproj/project.pbxproj +++ b/Sentry.xcodeproj/project.pbxproj @@ -52,7 +52,7 @@ 635B3F391EBC6E2500A6176D /* SentryAsynchronousOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 635B3F371EBC6E2500A6176D /* SentryAsynchronousOperation.m */; }; 6360850D1ED2AFE100E8599E /* SentryBreadcrumb.h in Headers */ = {isa = PBXBuildFile; fileRef = 6360850B1ED2AFE100E8599E /* SentryBreadcrumb.h */; settings = {ATTRIBUTES = (Public, ); }; }; 6360850E1ED2AFE100E8599E /* SentryBreadcrumb.m in Sources */ = {isa = PBXBuildFile; fileRef = 6360850C1ED2AFE100E8599E /* SentryBreadcrumb.m */; }; - 636085131ED47BE600E8599E /* SentryFileManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 636085111ED47BE600E8599E /* SentryFileManager.h */; }; + 636085131ED47BE600E8599E /* SentryFileManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 636085111ED47BE600E8599E /* SentryFileManager.h */; settings = {ATTRIBUTES = (Public, ); }; }; 636085141ED47BE600E8599E /* SentryFileManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 636085121ED47BE600E8599E /* SentryFileManager.m */; }; 63717D63226746A000C37CAE /* SentryUnsignedLongLongValueTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 63717D62226746A000C37CAE /* SentryUnsignedLongLongValueTest.m */; }; 637533582243A0100002F77F /* NSString+SentryUnsignedLongLongValue.h in Headers */ = {isa = PBXBuildFile; fileRef = 637533562243A0100002F77F /* NSString+SentryUnsignedLongLongValue.h */; settings = {ATTRIBUTES = (Private, ); }; }; @@ -350,7 +350,7 @@ 7BE1E33624F90AFA009D3AD0 /* SentryMigrateSessionInitTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7BE1E33524F90AFA009D3AD0 /* SentryMigrateSessionInitTests.swift */; }; 7BE3C7672445C0CA00A38442 /* SentryCurrentDate.h in Headers */ = {isa = PBXBuildFile; fileRef = 7BE3C7662445C0CA00A38442 /* SentryCurrentDate.h */; }; 7BE3C7692445C1A800A38442 /* SentryCurrentDate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7BE3C7682445C1A800A38442 /* SentryCurrentDate.m */; }; - 7BE3C76B2445C27A00A38442 /* SentryCurrentDateProvider.h in Headers */ = {isa = PBXBuildFile; fileRef = 7BE3C76A2445C27A00A38442 /* SentryCurrentDateProvider.h */; }; + 7BE3C76B2445C27A00A38442 /* SentryCurrentDateProvider.h in Headers */ = {isa = PBXBuildFile; fileRef = 7BE3C76A2445C27A00A38442 /* SentryCurrentDateProvider.h */; settings = {ATTRIBUTES = (Public, ); }; }; 7BE3C76F2445C2F800A38442 /* SentryDefaultCurrentDateProvider.h in Headers */ = {isa = PBXBuildFile; fileRef = 7BE3C76E2445C2F800A38442 /* SentryDefaultCurrentDateProvider.h */; }; 7BE3C7712445C30D00A38442 /* SentryDefaultCurrentDateProvider.m in Sources */ = {isa = PBXBuildFile; fileRef = 7BE3C7702445C30D00A38442 /* SentryDefaultCurrentDateProvider.m */; }; 7BE3C7752445C82300A38442 /* SentryCurrentDateTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7BE3C7742445C82300A38442 /* SentryCurrentDateTests.swift */; }; @@ -446,7 +446,7 @@ 635B3F371EBC6E2500A6176D /* SentryAsynchronousOperation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SentryAsynchronousOperation.m; sourceTree = ""; }; 6360850B1ED2AFE100E8599E /* SentryBreadcrumb.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SentryBreadcrumb.h; path = Public/SentryBreadcrumb.h; sourceTree = ""; }; 6360850C1ED2AFE100E8599E /* SentryBreadcrumb.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SentryBreadcrumb.m; sourceTree = ""; }; - 636085111ED47BE600E8599E /* SentryFileManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SentryFileManager.h; path = include/SentryFileManager.h; sourceTree = ""; }; + 636085111ED47BE600E8599E /* SentryFileManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SentryFileManager.h; path = Public/SentryFileManager.h; sourceTree = ""; }; 636085121ED47BE600E8599E /* SentryFileManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SentryFileManager.m; sourceTree = ""; }; 63717D62226746A000C37CAE /* SentryUnsignedLongLongValueTest.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryUnsignedLongLongValueTest.m; sourceTree = ""; }; 637533562243A0100002F77F /* NSString+SentryUnsignedLongLongValue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "NSString+SentryUnsignedLongLongValue.h"; path = "include/NSString+SentryUnsignedLongLongValue.h"; sourceTree = ""; }; @@ -758,7 +758,7 @@ 7BE1E33524F90AFA009D3AD0 /* SentryMigrateSessionInitTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryMigrateSessionInitTests.swift; sourceTree = ""; }; 7BE3C7662445C0CA00A38442 /* SentryCurrentDate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryCurrentDate.h; path = include/SentryCurrentDate.h; sourceTree = ""; }; 7BE3C7682445C1A800A38442 /* SentryCurrentDate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryCurrentDate.m; sourceTree = ""; }; - 7BE3C76A2445C27A00A38442 /* SentryCurrentDateProvider.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryCurrentDateProvider.h; path = include/SentryCurrentDateProvider.h; sourceTree = ""; }; + 7BE3C76A2445C27A00A38442 /* SentryCurrentDateProvider.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryCurrentDateProvider.h; path = Public/SentryCurrentDateProvider.h; sourceTree = ""; }; 7BE3C76E2445C2F800A38442 /* SentryDefaultCurrentDateProvider.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryDefaultCurrentDateProvider.h; path = include/SentryDefaultCurrentDateProvider.h; sourceTree = ""; }; 7BE3C7702445C30D00A38442 /* SentryDefaultCurrentDateProvider.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryDefaultCurrentDateProvider.m; sourceTree = ""; }; 7BE3C7742445C82300A38442 /* SentryCurrentDateTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryCurrentDateTests.swift; sourceTree = ""; }; diff --git a/Sources/Sentry/Public/Sentry.h b/Sources/Sentry/Public/Sentry.h index 06f57c5afae..2b63b9feffe 100644 --- a/Sources/Sentry/Public/Sentry.h +++ b/Sources/Sentry/Public/Sentry.h @@ -9,6 +9,7 @@ FOUNDATION_EXPORT const unsigned char SentryVersionString[]; #import "SentryBreadcrumb.h" #import "SentryClient.h" #import "SentryCrashExceptionApplication.h" +#import "SentryCurrentDateProvider.h" #import "SentryDebugMeta.h" #import "SentryDefines.h" #import "SentryDsn.h" @@ -17,6 +18,7 @@ FOUNDATION_EXPORT const unsigned char SentryVersionString[]; #import "SentryError.h" #import "SentryEvent.h" #import "SentryException.h" +#import "SentryFileManager.h" #import "SentryFrame.h" #import "SentryHub.h" #import "SentryId.h" @@ -32,4 +34,4 @@ FOUNDATION_EXPORT const unsigned char SentryVersionString[]; #import "SentryStacktrace.h" #import "SentryThread.h" #import "SentryUser.h" -#import "SentryUserFeedback.h" +#import "SentryUserFeedback.h" \ No newline at end of file diff --git a/Sources/Sentry/include/SentryCurrentDateProvider.h b/Sources/Sentry/Public/SentryCurrentDateProvider.h similarity index 100% rename from Sources/Sentry/include/SentryCurrentDateProvider.h rename to Sources/Sentry/Public/SentryCurrentDateProvider.h diff --git a/Sources/Sentry/include/SentryFileManager.h b/Sources/Sentry/Public/SentryFileManager.h similarity index 100% rename from Sources/Sentry/include/SentryFileManager.h rename to Sources/Sentry/Public/SentryFileManager.h From d049650907b14bc6d7bb1cc0f280622510c2a2ef Mon Sep 17 00:00:00 2001 From: jennmueng Date: Sun, 8 Nov 2020 21:15:32 +0700 Subject: [PATCH 2/2] meta: Changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 90c59d872ed..14db610007a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## unreleased - perf: Async synching of scope on to SentryCrash #832 +- feat: Expose SentryFileManager and SentryCurrentDateProvider #835 ## 6.0.7