Skip to content

Conversation

@kattrali
Copy link
Contributor

Adds additional start selectors for the Objective-C interface, mostly to ease configuring with different options (accounting for the lack of default parameters).

Removes the public unstable APIs for initializing fatal issue reporting in favor of the new configuration object.

Examples

Creating a configuration:

CAPConfiguration *config = [[CAPConfiguration alloc]
                              initWithEnableFatalIssueReporting:YES
                              enableURLSessionIntegration:YES];
CAPConfiguration *config = [[CAPConfiguration alloc]
                              initWithEnableFatalIssueReporting:YES
                              enableURLSessionIntegration:YES
                              sleepMode:CAPSleepModeInactive];

Starting with a config:

[CAPLogger startWithAPIKey:@"<some key>"
           sessionStrategy:[CAPSessionStrategy activityBased]
             configuration:config];
[CAPLogger startWithAPIKey:@"<some key>"
           sessionStrategy:[CAPSessionStrategy activityBased]
             configuration:config
                    apiURL:[NSURL URLWithString:@"<some url>"]];

@kattrali kattrali force-pushed the delisa/bit-5647-objc-config branch from bfd35fe to 36ccc2f Compare June 26, 2025 15:46
@kattrali kattrali marked this pull request as ready for review June 26, 2025 16:50
@kattrali kattrali force-pushed the delisa/bit-5647-objc-config branch from 36ccc2f to 70a0c91 Compare June 26, 2025 16:58
@kattrali kattrali merged commit 7728ab6 into main Jun 27, 2025
15 of 17 checks passed
@kattrali kattrali deleted the delisa/bit-5647-objc-config branch June 27, 2025 09:04
@github-actions github-actions bot locked and limited conversation to collaborators Jun 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants