From 4f40c2d4aab4c7a345750d4e201813f08505f1e8 Mon Sep 17 00:00:00 2001 From: Michiel Vrins Date: Wed, 31 May 2023 14:14:48 +0200 Subject: [PATCH 1/2] Fix a crash where resource errors would not properly stringify a URL --- ios/Classes/NativeBridge/Errors/SdkError.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ] } From 24a5df3a30a9875e33790ff6533e57f55666ec6a Mon Sep 17 00:00:00 2001 From: Michiel Vrins Date: Wed, 31 May 2023 14:46:46 +0200 Subject: [PATCH 2/2] Release 3.0.2 --- CHANGELOG.md | 3 +++ pubspec.yaml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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/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: