Skip to content

Allow for custom crash directory and FileProtectionType #155

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

Closed
wants to merge 1 commit into from

Conversation

melekr
Copy link
Collaborator

@melekr melekr commented Apr 9, 2025

Usage sample:

    `
    let customDir = try? FileManager.default.url(for: .libraryDirectory, in: .userDomainMask, appropriateFor: nil, create: true)
    let directoryUrl = customDir!.appendingPathComponent("my-crash-directory")
    
    let backtraceConfigurations = BacktraceClientConfiguration(credentials: backtraceCredentials,
                                                               dbSettings: backtraceDatabaseSettings,
                                                               reportsPerMin: 10,
                                                               allowsAttachingDebugger: true,
                                                               detectOOM: true,
                                                               crashDirectory: directoryUrl,
                                                               fileProtection: .none)
    
    BacktraceClient.shared = try? BacktraceClient(configuration: backtraceConfigurations)
    `

ref: BT-5555

@melekr melekr self-assigned this Apr 9, 2025
@melekr melekr closed this Apr 23, 2025
@melekr
Copy link
Collaborator Author

melekr commented Apr 23, 2025

#157

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.

1 participant