Skip to content

Commit 219f738

Browse files
committed
WIP: build(deps): bump sentry-cocoa from 8.53.2 to 8.54.0
1 parent 42216b2 commit 219f738

File tree

4 files changed

+241
-228
lines changed

4 files changed

+241
-228
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.53.2
1+
version = 8.54.0
22
repo = https://github.com/getsentry/sentry-cocoa

scripts/generate-cocoa-bindings.ps1

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ if (!(Test-Path '/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/
4949
# Verify checksum
5050
Write-Output "Verifying package checksum..."
5151
$actualSha256 = (Get-FileHash -Path $downloadPath -Algorithm SHA256).Hash.ToLower()
52-
52+
5353
if ($actualSha256 -ne $expectedSha256)
5454
{
5555
Write-Error "Checksum verification failed. Expected: $expectedSha256, Actual: $actualSha256"
5656
Remove-Item $downloadPath -Force -ErrorAction SilentlyContinue
5757
exit 1
5858
}
59-
59+
6060
Write-Output "Checksum verification passed."
6161

6262
if (Test-Path $downloadPath)
@@ -108,7 +108,7 @@ foreach ($file in $filesToPatch)
108108
{
109109
$content = Get-Content -Path $file -Raw
110110
$content = $content -replace '<Sentry/([^>]+)>', '"$1"'
111-
$content = $content -replace '#import SENTRY_HEADER\(([^)]+)\)', '#import "$1.h"'
111+
$content = $content -replace '#\s*import SENTRY_HEADER\(([^)]+)\)', '#import "$1.h"'
112112
Set-Content -Path $file -Value $content
113113
}
114114
else
@@ -209,7 +209,10 @@ $Text = $Text -replace '\bISentrySerializable\b', 'SentrySerializable'
209209
$Text = $Text -replace ': INSCopying,', ':' -replace '\s?[:,] INSCopying', ''
210210

211211
# Remove iOS attributes like [iOS (13, 0)]
212-
$Text = $Text -replace '\[iOS \(13,\s?0\)\]\n?', ''
212+
$Text = $Text -replace '\[iOS \(13,\s?0\)\]\n?\s*', ''
213+
214+
# Remove Unavailable attributes like [Unavailable (PlatformName.iOSAppExtension)]
215+
$Text = $Text -replace '\[Unavailable \(PlatformName\.\w+\)\]\n?\s*', ''
213216

214217
# Fix delegate argument names
215218
$Text = $Text -replace '(NSError) arg\d', '$1 error'
@@ -259,8 +262,9 @@ $Text = $Text -replace '\[Verify \(MethodToProperty\)\]\n\s*(.+) \{ get; \}', '$
259262
# We have some that accept either NSString or NSRegularExpression, which have no common type so they use NSObject
260263
$Text = $Text -replace '\s*\[Verify \(StronglyTypedNSArray\)\]\n', ''
261264

262-
# Fix broken line comment
265+
# Fix broken multi-line comments
263266
$Text = $Text -replace '(DEPRECATED_MSG_ATTRIBUTE\()\n\s*', '$1'
267+
$Text = $Text -replace '(DEPRECATED_MSG_ATTRIBUTE\([^)]*?)"\s*\r?\n\s*"', '$1 '
264268

265269
# Remove default IsEqual implementation (already implemented by NSObject)
266270
$Text = $Text -replace '(?ms)\n?^ *// [^\n]*isEqual:.*?$.*?;\n', ''

src/Sentry.Bindings.Cocoa/ApiDefinitions.cs

Lines changed: 10 additions & 222 deletions
Original file line numberDiff line numberDiff line change
@@ -612,11 +612,11 @@ interface SentryException : SentrySerializable
612612
interface SentryFeedbackAPI
613613
{
614614
// -(void)showWidget __attribute__((availability(ios, introduced=13.0)));
615-
[Export ("showWidget")]
615+
[Export ("showWidget")]
616616
void ShowWidget ();
617617

618618
// -(void)hideWidget __attribute__((availability(ios, introduced=13.0)));
619-
[Export ("hideWidget")]
619+
[Export ("hideWidget")]
620620
void HideWidget ();
621621
}
622622

@@ -1562,19 +1562,19 @@ interface SentryOptions
15621562
[NullAllowed, Export ("configureProfiling", ArgumentSemantic.Copy)]
15631563
SentryProfilingConfigurationBlock ConfigureProfiling { get; set; }
15641564

1565-
// @property (assign, nonatomic) BOOL enableAppLaunchProfiling;
1565+
// @property (assign, nonatomic) BOOL enableAppLaunchProfiling __attribute__((deprecated("This property is deprecated and will be removed in a future version of the SDK. See SentryProfileOptions.startOnAppStart and SentryProfileOptions.lifecycle")));
15661566
[Export ("enableAppLaunchProfiling")]
15671567
bool EnableAppLaunchProfiling { get; set; }
15681568

1569-
// @property (nonatomic, strong) NSNumber * _Nullable profilesSampleRate;
1570-
[NullAllowed, Export ("profilesSampleRate", ArgumentSemantic.Strong)]
1569+
// @property (nonatomic, strong) DEPRECATED_MSG_ATTRIBUTE("This property is deprecated and will be removed in a future version of the SDK. See SentryProfileOptions.sessionSampleRate") NSNumber * profilesSampleRate __attribute__((deprecated("This property is deprecated and will be removed in a future version of the SDK. See SentryProfileOptions.sessionSampleRate")));
1570+
[Export ("profilesSampleRate", ArgumentSemantic.Strong)]
15711571
NSNumber ProfilesSampleRate { get; set; }
15721572

1573-
// @property (nonatomic) SentryTracesSamplerCallback _Nullable profilesSampler;
1574-
[NullAllowed, Export ("profilesSampler", ArgumentSemantic.Assign)]
1573+
// @property (nonatomic) DEPRECATED_MSG_ATTRIBUTE("This property is deprecated and will be removed in a future version of the SDK. See SentryProfileOptions.sessionSampleRate") SentryTracesSamplerCallback profilesSampler __attribute__((deprecated("This property is deprecated and will be removed in a future version of the SDK. See SentryProfileOptions.sessionSampleRate")));
1574+
[Export ("profilesSampler", ArgumentSemantic.Assign)]
15751575
SentryTracesSamplerCallback ProfilesSampler { get; set; }
15761576

1577-
// @property (readonly, assign, nonatomic) BOOL isProfilingEnabled;
1577+
// @property (readonly, assign, nonatomic) BOOL isProfilingEnabled __attribute__((deprecated("This property is deprecated and will be removed in a future version of the SDK")));
15781578
[Export ("isProfilingEnabled")]
15791579
bool IsProfilingEnabled { get; }
15801580

@@ -1649,8 +1649,8 @@ interface SentryOptions
16491649
[Export ("_swiftExperimentalOptions")]
16501650
NSObject _swiftExperimentalOptions { get; }
16511651

1652-
// @property (copy, nonatomic) API_AVAILABLE(ios(13.0)) SentryUserFeedbackConfigurationBlock configureUserFeedback __attribute__((availability(ios, introduced=13.0)));
1653-
[Export ("configureUserFeedback", ArgumentSemantic.Copy)]
1652+
// @property (copy, nonatomic) API_AVAILABLE(ios(13.0)) SentryUserFeedbackConfigurationBlock configureUserFeedback __attribute__((availability(ios, introduced=13.0))) __attribute__((availability(macos_app_extension, unavailable))) __attribute__((availability(ios_app_extension, unavailable)));
1653+
[Export ("configureUserFeedback", ArgumentSemantic.Copy)]
16541654
SentryUserFeedbackConfigurationBlock ConfigureUserFeedback { get; set; }
16551655
}
16561656

@@ -1734,218 +1734,6 @@ interface SentryRequest : SentrySerializable
17341734
string Url { get; set; }
17351735
}
17361736

1737-
// @interface SentrySDK : NSObject
1738-
[BaseType (typeof(NSObject))]
1739-
[DisableDefaultCtor]
1740-
[Internal]
1741-
interface SentrySDK
1742-
{
1743-
// @property (readonly, nonatomic, class) id<SentrySpan> _Nullable span;
1744-
[Static]
1745-
[NullAllowed, Export ("span")]
1746-
SentrySpan Span { get; }
1747-
1748-
// @property (readonly, nonatomic, class) BOOL isEnabled;
1749-
[Static]
1750-
[Export ("isEnabled")]
1751-
bool IsEnabled { get; }
1752-
1753-
// @property (readonly, nonatomic, class) SentryReplayApi * _Nonnull replay;
1754-
[Static]
1755-
[Export ("replay")]
1756-
SentryReplayApi Replay { get; }
1757-
1758-
// +(void)startWithOptions:(SentryOptions * _Nonnull)options __attribute__((swift_name("start(options:)")));
1759-
[Static]
1760-
[Export ("startWithOptions:")]
1761-
void StartWithOptions (SentryOptions options);
1762-
1763-
// +(void)startWithConfigureOptions:(void (^ _Nonnull)(SentryOptions * _Nonnull))configureOptions __attribute__((swift_name("start(configureOptions:)")));
1764-
[Static]
1765-
[Export ("startWithConfigureOptions:")]
1766-
void StartWithConfigureOptions (Action<SentryOptions> configureOptions);
1767-
1768-
// +(SentryId * _Nonnull)captureEvent:(SentryEvent * _Nonnull)event __attribute__((swift_name("capture(event:)")));
1769-
[Static]
1770-
[Export ("captureEvent:")]
1771-
SentryId CaptureEvent (SentryEvent @event);
1772-
1773-
// +(SentryId * _Nonnull)captureEvent:(SentryEvent * _Nonnull)event withScope:(SentryScope * _Nonnull)scope __attribute__((swift_name("capture(event:scope:)")));
1774-
[Static]
1775-
[Export ("captureEvent:withScope:")]
1776-
SentryId CaptureEvent (SentryEvent @event, SentryScope scope);
1777-
1778-
// +(SentryId * _Nonnull)captureEvent:(SentryEvent * _Nonnull)event withScopeBlock:(void (^ _Nonnull)(SentryScope * _Nonnull))block __attribute__((swift_name("capture(event:block:)")));
1779-
[Static]
1780-
[Export ("captureEvent:withScopeBlock:")]
1781-
SentryId CaptureEvent (SentryEvent @event, Action<SentryScope> block);
1782-
1783-
// +(id<SentrySpan> _Nonnull)startTransactionWithName:(NSString * _Nonnull)name operation:(NSString * _Nonnull)operation __attribute__((swift_name("startTransaction(name:operation:)")));
1784-
[Static]
1785-
[Export ("startTransactionWithName:operation:")]
1786-
SentrySpan StartTransactionWithName (string name, string operation);
1787-
1788-
// +(id<SentrySpan> _Nonnull)startTransactionWithName:(NSString * _Nonnull)name operation:(NSString * _Nonnull)operation bindToScope:(BOOL)bindToScope __attribute__((swift_name("startTransaction(name:operation:bindToScope:)")));
1789-
[Static]
1790-
[Export ("startTransactionWithName:operation:bindToScope:")]
1791-
SentrySpan StartTransactionWithName (string name, string operation, bool bindToScope);
1792-
1793-
// +(id<SentrySpan> _Nonnull)startTransactionWithContext:(SentryTransactionContext * _Nonnull)transactionContext __attribute__((swift_name("startTransaction(transactionContext:)")));
1794-
[Static]
1795-
[Export ("startTransactionWithContext:")]
1796-
SentrySpan StartTransactionWithContext (SentryTransactionContext transactionContext);
1797-
1798-
// +(id<SentrySpan> _Nonnull)startTransactionWithContext:(SentryTransactionContext * _Nonnull)transactionContext bindToScope:(BOOL)bindToScope __attribute__((swift_name("startTransaction(transactionContext:bindToScope:)")));
1799-
[Static]
1800-
[Export ("startTransactionWithContext:bindToScope:")]
1801-
SentrySpan StartTransactionWithContext (SentryTransactionContext transactionContext, bool bindToScope);
1802-
1803-
// +(id<SentrySpan> _Nonnull)startTransactionWithContext:(SentryTransactionContext * _Nonnull)transactionContext bindToScope:(BOOL)bindToScope customSamplingContext:(NSDictionary<NSString *,id> * _Nonnull)customSamplingContext __attribute__((swift_name("startTransaction(transactionContext:bindToScope:customSamplingContext:)")));
1804-
[Static]
1805-
[Export ("startTransactionWithContext:bindToScope:customSamplingContext:")]
1806-
SentrySpan StartTransactionWithContext (SentryTransactionContext transactionContext, bool bindToScope, NSDictionary<NSString, NSObject> customSamplingContext);
1807-
1808-
// +(id<SentrySpan> _Nonnull)startTransactionWithContext:(SentryTransactionContext * _Nonnull)transactionContext customSamplingContext:(NSDictionary<NSString *,id> * _Nonnull)customSamplingContext __attribute__((swift_name("startTransaction(transactionContext:customSamplingContext:)")));
1809-
[Static]
1810-
[Export ("startTransactionWithContext:customSamplingContext:")]
1811-
SentrySpan StartTransactionWithContext (SentryTransactionContext transactionContext, NSDictionary<NSString, NSObject> customSamplingContext);
1812-
1813-
// +(SentryId * _Nonnull)captureError:(NSError * _Nonnull)error __attribute__((swift_name("capture(error:)")));
1814-
[Static]
1815-
[Export ("captureError:")]
1816-
SentryId CaptureError (NSError error);
1817-
1818-
// +(SentryId * _Nonnull)captureError:(NSError * _Nonnull)error withScope:(SentryScope * _Nonnull)scope __attribute__((swift_name("capture(error:scope:)")));
1819-
[Static]
1820-
[Export ("captureError:withScope:")]
1821-
SentryId CaptureError (NSError error, SentryScope scope);
1822-
1823-
// +(SentryId * _Nonnull)captureError:(NSError * _Nonnull)error withScopeBlock:(void (^ _Nonnull)(SentryScope * _Nonnull))block __attribute__((swift_name("capture(error:block:)")));
1824-
[Static]
1825-
[Export ("captureError:withScopeBlock:")]
1826-
SentryId CaptureError (NSError error, Action<SentryScope> block);
1827-
1828-
// +(SentryId * _Nonnull)captureException:(NSException * _Nonnull)exception __attribute__((swift_name("capture(exception:)")));
1829-
[Static]
1830-
[Export ("captureException:")]
1831-
SentryId CaptureException (NSException exception);
1832-
1833-
// +(SentryId * _Nonnull)captureException:(NSException * _Nonnull)exception withScope:(SentryScope * _Nonnull)scope __attribute__((swift_name("capture(exception:scope:)")));
1834-
[Static]
1835-
[Export ("captureException:withScope:")]
1836-
SentryId CaptureException (NSException exception, SentryScope scope);
1837-
1838-
// +(SentryId * _Nonnull)captureException:(NSException * _Nonnull)exception withScopeBlock:(void (^ _Nonnull)(SentryScope * _Nonnull))block __attribute__((swift_name("capture(exception:block:)")));
1839-
[Static]
1840-
[Export ("captureException:withScopeBlock:")]
1841-
SentryId CaptureException (NSException exception, Action<SentryScope> block);
1842-
1843-
// +(SentryId * _Nonnull)captureMessage:(NSString * _Nonnull)message __attribute__((swift_name("capture(message:)")));
1844-
[Static]
1845-
[Export ("captureMessage:")]
1846-
SentryId CaptureMessage (string message);
1847-
1848-
// +(SentryId * _Nonnull)captureMessage:(NSString * _Nonnull)message withScope:(SentryScope * _Nonnull)scope __attribute__((swift_name("capture(message:scope:)")));
1849-
[Static]
1850-
[Export ("captureMessage:withScope:")]
1851-
SentryId CaptureMessage (string message, SentryScope scope);
1852-
1853-
// +(SentryId * _Nonnull)captureMessage:(NSString * _Nonnull)message withScopeBlock:(void (^ _Nonnull)(SentryScope * _Nonnull))block __attribute__((swift_name("capture(message:block:)")));
1854-
[Static]
1855-
[Export ("captureMessage:withScopeBlock:")]
1856-
SentryId CaptureMessage (string message, Action<SentryScope> block);
1857-
1858-
// +(void)captureUserFeedback:(SentryUserFeedback * _Nonnull)userFeedback __attribute__((swift_name("capture(userFeedback:)"))) __attribute__((deprecated("Use SentrySDK.captureFeedback or use or configure our new managed UX with SentryOptions.configureUserFeedback.")));
1859-
[Static]
1860-
[Export ("captureUserFeedback:")]
1861-
void CaptureUserFeedback (SentryUserFeedback userFeedback);
1862-
1863-
// +(void)captureFeedback:(SentryFeedback * _Nonnull)feedback __attribute__((swift_name("capture(feedback:)")));
1864-
[Static]
1865-
[Export ("captureFeedback:")]
1866-
void CaptureFeedback (SentryFeedback feedback);
1867-
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-
1873-
// +(void)addBreadcrumb:(SentryBreadcrumb * _Nonnull)crumb __attribute__((swift_name("addBreadcrumb(_:)")));
1874-
[Static]
1875-
[Export ("addBreadcrumb:")]
1876-
void AddBreadcrumb (SentryBreadcrumb crumb);
1877-
1878-
// +(void)configureScope:(void (^ _Nonnull)(SentryScope * _Nonnull))callback;
1879-
[Static]
1880-
[Export ("configureScope:")]
1881-
void ConfigureScope (Action<SentryScope> callback);
1882-
1883-
// @property (readonly, nonatomic, class) BOOL crashedLastRun;
1884-
[Static]
1885-
[Export ("crashedLastRun")]
1886-
bool CrashedLastRun { get; }
1887-
1888-
// @property (readonly, nonatomic, class) BOOL detectedStartUpCrash;
1889-
[Static]
1890-
[Export ("detectedStartUpCrash")]
1891-
bool DetectedStartUpCrash { get; }
1892-
1893-
// +(void)setUser:(SentryUser * _Nullable)user;
1894-
[Static]
1895-
[Export ("setUser:")]
1896-
void SetUser ([NullAllowed] SentryUser user);
1897-
1898-
// +(void)startSession;
1899-
[Static]
1900-
[Export ("startSession")]
1901-
void StartSession ();
1902-
1903-
// +(void)endSession;
1904-
[Static]
1905-
[Export ("endSession")]
1906-
void EndSession ();
1907-
1908-
// +(void)crash;
1909-
[Static]
1910-
[Export ("crash")]
1911-
void Crash ();
1912-
1913-
// +(void)reportFullyDisplayed;
1914-
[Static]
1915-
[Export ("reportFullyDisplayed")]
1916-
void ReportFullyDisplayed ();
1917-
1918-
// +(void)pauseAppHangTracking;
1919-
[Static]
1920-
[Export ("pauseAppHangTracking")]
1921-
void PauseAppHangTracking ();
1922-
1923-
// +(void)resumeAppHangTracking;
1924-
[Static]
1925-
[Export ("resumeAppHangTracking")]
1926-
void ResumeAppHangTracking ();
1927-
1928-
// +(void)flush:(NSTimeInterval)timeout __attribute__((swift_name("flush(timeout:)")));
1929-
[Static]
1930-
[Export ("flush:")]
1931-
void Flush (double timeout);
1932-
1933-
// +(void)close;
1934-
[Static]
1935-
[Export ("close")]
1936-
void Close ();
1937-
1938-
// +(void)startProfiler;
1939-
[Static]
1940-
[Export ("startProfiler")]
1941-
void StartProfiler ();
1942-
1943-
// +(void)stopProfiler;
1944-
[Static]
1945-
[Export ("stopProfiler")]
1946-
void StopProfiler ();
1947-
}
1948-
19491737
// @interface SentrySamplingContext : NSObject
19501738
[BaseType (typeof(NSObject))]
19511739
[Internal]

0 commit comments

Comments
 (0)