Skip to content

Commit 42216b2

Browse files
authored
build(deps): bump sentry-cocoa from 8.46.0 to 8.53.2 (#4483)
1 parent 3d461f5 commit 42216b2

File tree

5 files changed

+129
-37
lines changed

5 files changed

+129
-37
lines changed

modules/sentry-cocoa.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version = 8.46.0
1+
version = 8.53.2
22
repo = https://github.com/getsentry/sentry-cocoa

scripts/generate-cocoa-bindings.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ Write-Output "iPhoneSdkVersion: $iPhoneSdkVersion"
9696

9797
## Imports in the various header files are provided in the "new" style of:
9898
# `#import <Sentry/SomeHeader.h>`
99+
# ...or:
100+
# `#import SENTRY_HEADER(SentryHeader)`
99101
# ...instead of:
100102
# `#import "SomeHeader.h"`
101103
# This causes sharpie to fail resolve those headers
@@ -106,6 +108,7 @@ foreach ($file in $filesToPatch)
106108
{
107109
$content = Get-Content -Path $file -Raw
108110
$content = $content -replace '<Sentry/([^>]+)>', '"$1"'
111+
$content = $content -replace '#import SENTRY_HEADER\(([^)]+)\)', '#import "$1.h"'
109112
Set-Content -Path $file -Value $content
110113
}
111114
else
@@ -206,7 +209,7 @@ $Text = $Text -replace '\bISentrySerializable\b', 'SentrySerializable'
206209
$Text = $Text -replace ': INSCopying,', ':' -replace '\s?[:,] INSCopying', ''
207210

208211
# Remove iOS attributes like [iOS (13, 0)]
209-
$Text = $Text -replace '\[iOS \(13, 0\)\]\n?', ''
212+
$Text = $Text -replace '\[iOS \(13,\s?0\)\]\n?', ''
210213

211214
# Fix delegate argument names
212215
$Text = $Text -replace '(NSError) arg\d', '$1 error'

src/Sentry.Bindings.Cocoa/ApiDefinitions.cs

Lines changed: 66 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ interface SentryDsn
384384
[Export ("getHash")]
385385
string Hash { get; }
386386

387-
// -(NSURL * _Nonnull)getStoreEndpoint;
387+
// -(NSURL * _Nonnull)getStoreEndpoint __attribute__((deprecated("This endpoint is no longer used")));
388388
[Export ("getStoreEndpoint")]
389389
NSUrl StoreEndpoint { get; }
390390

@@ -412,6 +412,10 @@ interface SentryEnvelopeItemHeader : SentrySerializable
412412
[Export ("initWithType:length:filenname:contentType:")]
413413
NativeHandle Constructor (string type, nuint length, string filename, string contentType);
414414

415+
// -(instancetype _Nonnull)initWithType:(NSString * _Nonnull)type length:(NSUInteger)length contentType:(NSString * _Nonnull)contentType itemCount:(NSNumber * _Nonnull)itemCount;
416+
[Export ("initWithType:length:contentType:itemCount:")]
417+
NativeHandle Constructor (string type, nuint length, string contentType, NSNumber itemCount);
418+
415419
// @property (readonly, copy, nonatomic) NSString * _Nonnull type;
416420
[Export ("type")]
417421
string Type { get; }
@@ -427,6 +431,14 @@ interface SentryEnvelopeItemHeader : SentrySerializable
427431
// @property (readonly, copy, nonatomic) NSString * _Nullable contentType;
428432
[NullAllowed, Export ("contentType")]
429433
string ContentType { get; }
434+
435+
// @property (readonly, copy, nonatomic) NSNumber * _Nullable itemCount;
436+
[NullAllowed, Export ("itemCount", ArgumentSemantic.Copy)]
437+
NSNumber ItemCount { get; }
438+
439+
// @property (copy, nonatomic) NSString * _Nullable platform;
440+
[NullAllowed, Export ("platform")]
441+
string Platform { get; set; }
430442
}
431443

432444
partial interface Constants
@@ -559,13 +571,6 @@ interface SentryEvent : SentrySerializable
559571
NativeHandle Constructor (NSError error);
560572
}
561573

562-
// @interface SentryEventDecodable : SentryEvent
563-
[BaseType (typeof(SentryEvent))]
564-
[Internal]
565-
interface SentryEventDecodable
566-
{
567-
}
568-
569574
// @interface SentryException : NSObject <SentrySerializable>
570575
[BaseType (typeof(NSObject))]
571576
[DisableDefaultCtor]
@@ -601,6 +606,20 @@ interface SentryException : SentrySerializable
601606
NativeHandle Constructor (string value, string type);
602607
}
603608

609+
// @interface SentryFeedbackAPI : NSObject
610+
[BaseType (typeof(NSObject))]
611+
[Internal]
612+
interface SentryFeedbackAPI
613+
{
614+
// -(void)showWidget __attribute__((availability(ios, introduced=13.0)));
615+
[Export ("showWidget")]
616+
void ShowWidget ();
617+
618+
// -(void)hideWidget __attribute__((availability(ios, introduced=13.0)));
619+
[Export ("hideWidget")]
620+
void HideWidget ();
621+
}
622+
604623
// @interface SentryFrame : NSObject <SentrySerializable>
605624
[BaseType (typeof(NSObject))]
606625
[Internal]
@@ -1024,6 +1043,23 @@ interface SentryHub
10241043
void Close ();
10251044
}
10261045

1046+
// @protocol SentryIntegrationProtocol <NSObject>
1047+
[Protocol]
1048+
[BaseType (typeof(NSObject))]
1049+
[Internal]
1050+
interface SentryIntegrationProtocol
1051+
{
1052+
// @required -(BOOL)installWithOptions:(SentryOptions * _Nonnull)options __attribute__((swift_name("install(with:)")));
1053+
[Abstract]
1054+
[Export ("installWithOptions:")]
1055+
bool InstallWithOptions (SentryOptions options);
1056+
1057+
// @required -(void)uninstall;
1058+
[Abstract]
1059+
[Export ("uninstall")]
1060+
void Uninstall ();
1061+
}
1062+
10271063
// @interface SentryMeasurementUnit : NSObject <NSCopying>
10281064
[BaseType (typeof(NSObject))]
10291065
[DisableDefaultCtor]
@@ -1522,6 +1558,10 @@ interface SentryOptions
15221558
[Export ("enableCoreDataTracing")]
15231559
bool EnableCoreDataTracing { get; set; }
15241560

1561+
// @property (copy, nonatomic) SentryProfilingConfigurationBlock _Nullable configureProfiling;
1562+
[NullAllowed, Export ("configureProfiling", ArgumentSemantic.Copy)]
1563+
SentryProfilingConfigurationBlock ConfigureProfiling { get; set; }
1564+
15251565
// @property (assign, nonatomic) BOOL enableAppLaunchProfiling;
15261566
[Export ("enableAppLaunchProfiling")]
15271567
bool EnableAppLaunchProfiling { get; set; }
@@ -1605,11 +1645,19 @@ interface SentryOptions
16051645
[Export ("spotlightUrl")]
16061646
string SpotlightUrl { get; set; }
16071647

1648+
// @property (readonly, nonatomic) NSObject * _Nonnull _swiftExperimentalOptions;
1649+
[Export ("_swiftExperimentalOptions")]
1650+
NSObject _swiftExperimentalOptions { get; }
1651+
16081652
// @property (copy, nonatomic) API_AVAILABLE(ios(13.0)) SentryUserFeedbackConfigurationBlock configureUserFeedback __attribute__((availability(ios, introduced=13.0)));
16091653
[Export ("configureUserFeedback", ArgumentSemantic.Copy)]
16101654
SentryUserFeedbackConfigurationBlock ConfigureUserFeedback { get; set; }
16111655
}
16121656

1657+
// typedef void (^SentryProfilingConfigurationBlock)(SentryProfileOptions * _Nonnull);
1658+
[Internal]
1659+
delegate void SentryProfilingConfigurationBlock (SentryProfileOptions arg0);
1660+
16131661
// @interface SentryReplayApi : NSObject
16141662
[BaseType (typeof(NSObject))]
16151663
[Internal]
@@ -1817,6 +1865,11 @@ interface SentrySDK
18171865
[Export ("captureFeedback:")]
18181866
void CaptureFeedback (SentryFeedback feedback);
18191867

1868+
// @property (readonly, nonatomic, class) API_AVAILABLE(ios(13.0)) SentryFeedbackAPI * feedback __attribute__((availability(ios, introduced=13.0)));
1869+
[Static]
1870+
[Export ("feedback")]
1871+
SentryFeedbackAPI Feedback { get; }
1872+
18201873
// +(void)addBreadcrumb:(SentryBreadcrumb * _Nonnull)crumb __attribute__((swift_name("addBreadcrumb(_:)")));
18211874
[Static]
18221875
[Export ("addBreadcrumb:")]
@@ -2325,33 +2378,6 @@ interface SentryUser : SentrySerializable
23252378
nuint Hash { get; }
23262379
}
23272380

2328-
// @interface SentryUserFeedback : NSObject <SentrySerializable>
2329-
[BaseType (typeof(NSObject))]
2330-
[DisableDefaultCtor]
2331-
[Internal]
2332-
interface SentryUserFeedback : SentrySerializable
2333-
{
2334-
// -(instancetype _Nonnull)initWithEventId:(SentryId * _Nonnull)eventId;
2335-
[Export ("initWithEventId:")]
2336-
NativeHandle Constructor (SentryId eventId);
2337-
2338-
// @property (readonly, nonatomic, strong) SentryId * _Nonnull eventId;
2339-
[Export ("eventId", ArgumentSemantic.Strong)]
2340-
SentryId EventId { get; }
2341-
2342-
// @property (copy, nonatomic) NSString * _Nonnull name;
2343-
[Export ("name")]
2344-
string Name { get; set; }
2345-
2346-
// @property (copy, nonatomic) NSString * _Nonnull email;
2347-
[Export ("email")]
2348-
string Email { get; set; }
2349-
2350-
// @property (copy, nonatomic) NSString * _Nonnull comments;
2351-
[Export ("comments")]
2352-
string Comments { get; set; }
2353-
}
2354-
23552381
// @interface SentryScreenFrames : NSObject <NSCopying>
23562382
[BaseType (typeof(NSObject))]
23572383
[DisableDefaultCtor]
@@ -2436,6 +2462,11 @@ interface PrivateSentrySDKOnly
24362462
[Export ("getExtraContext")]
24372463
NSDictionary ExtraContext { get; }
24382464

2465+
// +(void)setTrace:(SentryId * _Nonnull)traceId spanId:(SentrySpanId * _Nonnull)spanId;
2466+
[Static]
2467+
[Export ("setTrace:spanId:")]
2468+
void SetTrace (SentryId traceId, SentrySpanId spanId);
2469+
24392470
// +(uint64_t)startProfilerForTrace:(SentryId * _Nonnull)traceId;
24402471
[Static]
24412472
[Export ("startProfilerForTrace:")]

src/Sentry.Bindings.Cocoa/SwiftApiDefinitions.cs

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,30 @@ interface SentryId
6666
nuint Hash { get; }
6767
}
6868

69+
// @interface SentryProfileOptions : NSObject
70+
[BaseType(typeof(NSObject), Name = "_TtC6Sentry20SentryProfileOptions")]
71+
[DisableDefaultCtor]
72+
[Internal]
73+
interface SentryProfileOptions
74+
{
75+
// @property(nonatomic) enum SentryProfileLifecycle lifecycle;
76+
[Export("lifecycle", ArgumentSemantic.Assign)]
77+
SentryProfileLifecycle Lifecycle { get; set; }
78+
79+
// @property(nonatomic) float sessionSampleRate;
80+
[Export("sessionSampleRate")]
81+
float SessionSampleRate { get; set; }
82+
83+
// @property(nonatomic) BOOL profileAppStarts;
84+
[Export("profileAppStarts")]
85+
bool ProfileAppStarts { get; set; }
86+
87+
// - (nonnull instancetype) init OBJC_DESIGNATED_INITIALIZER;
88+
[Export("init")]
89+
[DesignatedInitializer]
90+
NativeHandle Constructor();
91+
}
92+
6993
// @interface SentrySessionReplayIntegration : SentryBaseIntegration
7094
[BaseType (typeof(NSObject))]
7195
[Internal]
@@ -224,6 +248,33 @@ interface SentryRRWebEvent : SentrySerializable
224248
new NSDictionary<NSString, NSObject> Serialize();
225249
}
226250

251+
// @interface SentryUserFeedback : NSObject <SentrySerializable>
252+
[BaseType(typeof(NSObject))]
253+
[DisableDefaultCtor]
254+
[Internal]
255+
interface SentryUserFeedback : SentrySerializable
256+
{
257+
// @property (nonatomic, readonly, strong) SentryId * _Nonnull eventId;
258+
[Export("eventId", ArgumentSemantic.Strong)]
259+
SentryId EventId { get; }
260+
261+
// @property (nonatomic, copy) NSString * _Nonnull name;
262+
[Export("name")]
263+
string Name { get; set; }
264+
265+
// @property (nonatomic, copy) NSString * _Nonnull email;
266+
[Export("email")]
267+
string Email { get; set; }
268+
269+
// @property (nonatomic, copy) NSString * _Nonnull comments;
270+
[Export("comments")]
271+
string Comments { get; set; }
272+
273+
// - (nonnull instancetype)initWithEventId:(SentryId * _Nonnull)eventId OBJC_DESIGNATED_INITIALIZER;
274+
[Export("initWithEventId:")]
275+
NativeHandle Constructor(SentryId eventId);
276+
}
277+
227278
[BaseType(typeof(NSObject), Name = "_TtC6Sentry31SentryUserFeedbackConfiguration")]
228279
[DisableDefaultCtor]
229280
[Internal]

src/Sentry.Bindings.Cocoa/SwiftStructsAndEnums.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ internal enum SentryLevel : ulong
2929
Fatal = 5
3030
}
3131

32+
[Native]
33+
internal enum SentryProfileLifecycle : long
34+
{
35+
Manual = 0,
36+
Trace = 1
37+
}
38+
3239
[Native]
3340
internal enum SentryReplayQuality : long
3441
{

0 commit comments

Comments
 (0)