Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add reports-only set up API #548

Merged
merged 7 commits into from
Aug 28, 2024
Merged

Add reports-only set up API #548

merged 7 commits into from
Aug 28, 2024

Conversation

bamx23
Copy link
Collaborator

@bamx23 bamx23 commented Aug 27, 2024

It was impossible to read reports without "installing" KSCrash. Yet there might be cases when reading reports and staring crash monitoring should be configured separately:

  1. Migrations of reports store path.
  2. Delayed installation after a user consent.

This PR adds a new API method (both ObjC/Swift and C) to just setup reports store. And also fixes the crashes if reports API is used before this new method is called or full installation is done.

@bamx23 bamx23 requested a review from GLinnik21 August 27, 2024 12:51
Sources/KSCrashRecording/KSCrash.m Outdated Show resolved Hide resolved
Sources/KSCrashRecording/include/KSCrash.h Outdated Show resolved Hide resolved
@GLinnik21
Copy link
Collaborator

Setting up reporter twise is a legitimate scenario, but there is no protection against calling setupReportStoreWithPath: after a full installation.

@bamx23 bamx23 marked this pull request as ready for review August 28, 2024 10:37
@bamx23 bamx23 changed the title Add reports-only install Add reports-only set up API Aug 28, 2024
@bamx23 bamx23 merged commit 33feb0a into master Aug 28, 2024
26 checks passed
@bamx23 bamx23 deleted the reports-install branch August 28, 2024 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants