-
Notifications
You must be signed in to change notification settings - Fork 56
fix: Fix crash after SDK initialization #369
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
Changes from 1 commit
2c32b5d
8357618
44b0f41
75652d3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
…ple classes
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -158,7 +158,17 @@ | |
| } | ||
|
|
||
| static let folder: FolderProtocol = { | ||
| (try? CrowdinFolder.shared.createFolder(with: Strings.XCStrings.rawValue)) ?? CrowdinFolder.shared | ||
| do { | ||
| return try CrowdinFolder.shared.createFolder(with: Strings.XCStrings.rawValue) | ||
| } catch { | ||
| CrowdinLogsCollector.shared.add( | ||
| log: CrowdinLog( | ||
| type: .error, | ||
| message: "XCStringsStorage: Failed to create '\(Strings.XCStrings.rawValue)' folder. Falling back to root CrowdinFolder. Error: \(error.localizedDescription)" | ||
| ) | ||
| ) | ||
| return CrowdinFolder.shared | ||
| } | ||
| }() | ||
|
|
||
| static func getFile(path: String) -> Data? { | ||
|
|
@@ -170,7 +180,7 @@ | |
| } | ||
| } | ||
|
|
||
| class CrowdinXcstringsDownloadOperation: CrowdinDownloadOperation { | ||
|
Check warning on line 183 in Sources/CrowdinSDK/Providers/Crowdin/LocalizationDownloader/Operations/CrowdinXcstringsDownloadOperation.swift
|
||
| var timestamp: TimeInterval? | ||
| let eTagStorage: AnyEtagStorage | ||
| var completion: CrowdinDownloadOperationCompletion? = nil | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.