diff --git a/CHANGELOG.md b/CHANGELOG.md index 1db5a9d1..6291f80e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 3.0.2, May 31, 2023 +* [iOS] Fix a crash on iOS on failing resource requests. + ## 3.0.1, May 30, 2023 * Changed access modifier of a native api in order to hide it from the sdk user. diff --git a/ios/Classes/NativeBridge/Errors/SdkError.swift b/ios/Classes/NativeBridge/Errors/SdkError.swift index 596e957f..971ae5e7 100644 --- a/ios/Classes/NativeBridge/Errors/SdkError.swift +++ b/ios/Classes/NativeBridge/Errors/SdkError.swift @@ -104,7 +104,7 @@ private extension ResourceResponse { func toJSON() -> [String: Any?] { return ["statusCode": statusCode, "headers": allHeaderFields, - "url": response.url, + "url": response.url?.absoluteString, "body": data != nil ? String(data: data!, encoding: .utf8) : nil ] } diff --git a/pubspec.yaml b/pubspec.yaml index 73d9e19d..5b299d99 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: onegini description: The Onegini Flutter Plugin is a plugin that allows you to utilize the Onegini Mobile SDKs in your Flutter applications. -version: 3.0.1 +version: 3.0.2 homepage: https://www.onegini.com environment: