diff --git a/CHANGELOG.md b/CHANGELOG.md index 14791a74..781546cf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,20 @@ ## CHANGELOG +### 5.6.1 (2023-10-17) +**SDK** +- **Fix:** Fixed `getUsername` unicode issue +--- + +### 5.6.0 (2023-10-17) +**SDK** +- **Fix:** Updated JS Bridge after fixing linting issues. +--- + +### 5.5.0 (2023-10-16) +**SDK** +- **Fix:** Fix character escaping issue in Universal bridge (`sendJsonToMiniApp`) +--- + ### 5.4.0 (2023-08-28) **SDK** - **Feature:** Added a new interface `downloadMiniApp(appId:versionId:completionHandler:)` to download Miniapp from platform in background if needed. diff --git a/MiniApp.podspec b/MiniApp.podspec index 5d11ebb5..465805a7 100644 --- a/MiniApp.podspec +++ b/MiniApp.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |miniapp| miniapp.name = 'MiniApp' - miniapp.version = '5.4.0' + miniapp.version = '5.6.1' miniapp.authors = "Rakuten Ecosystem Mobile" miniapp.summary = "Rakuten's Mini App SDK" miniapp.description = "This open-source library allows you to integrate Mini App ecosystem into your iOS applications. Mini App SDK also facilitates communication between a mini app and the host app via a message bridge." diff --git a/Sources/Classes/core/JavascriptBridge/MiniAppScriptMessageHandler.swift b/Sources/Classes/core/JavascriptBridge/MiniAppScriptMessageHandler.swift index e6f7ed64..fb06e7a3 100644 --- a/Sources/Classes/core/JavascriptBridge/MiniAppScriptMessageHandler.swift +++ b/Sources/Classes/core/JavascriptBridge/MiniAppScriptMessageHandler.swift @@ -467,7 +467,7 @@ internal class MiniAppScriptMessageHandler: NSObject, WKScriptMessageHandler { self.executeJavaScriptCallback(responseStatus: .onError, messageId: callbackId, response: getMiniAppErrorMessage(MiniAppErrorType.hostAppError)) return } - self.executeJavaScriptCallback(responseStatus: .onSuccess, messageId: callbackId, response: userName) + self.executeJavaScriptCallback(responseStatus: .onSuccess, messageId: callbackId, response: userName.base64Encoded() ?? "") case .failure(let error): self.handleMASDKError(error: error, callbackId: callbackId) } diff --git a/Sources/Classes/core/MiniApp.swift b/Sources/Classes/core/MiniApp.swift index fe43d4da..3fdd43c2 100644 --- a/Sources/Classes/core/MiniApp.swift +++ b/Sources/Classes/core/MiniApp.swift @@ -3,7 +3,7 @@ import UIKit /// Mini App Public API methods public class MiniApp: NSObject { - public static let version = "5.4.0" + public static let version = "5.6.1" private static let shared = MiniApp() private let realMiniApp = RealMiniApp() public static var MAOrientationLock: UIInterfaceOrientationMask = [] diff --git a/Sources/Classes/js-miniapp b/Sources/Classes/js-miniapp index 63ab0dd1..c4e40088 160000 --- a/Sources/Classes/js-miniapp +++ b/Sources/Classes/js-miniapp @@ -1 +1 @@ -Subproject commit 63ab0dd11e7f36dd62ddfabb37bc1ec839d4a9fd +Subproject commit c4e400886536451979a1b0b617a31df8f402b5a0 diff --git a/Tests/Unit/MiniAppScriptMessageHandlerTests.swift b/Tests/Unit/MiniAppScriptMessageHandlerTests.swift index a731f727..419629bd 100644 --- a/Tests/Unit/MiniAppScriptMessageHandlerTests.swift +++ b/Tests/Unit/MiniAppScriptMessageHandlerTests.swift @@ -1106,7 +1106,7 @@ class MiniAppScriptMessageHandlerTests: QuickSpec { return } let environmentInfo = ResponseDecoder.decode(decodeType: MAHostEnvironmentInfo.self, data: responseData) - expect(environmentInfo?.sdkVersion).toEventually(equal("5.4.0")) + expect(environmentInfo?.sdkVersion).toEventually(equal("5.6.1")) expect(environmentInfo?.hostVersion).toEventually(equal(Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String)) expect(environmentInfo?.hostLocale).toEventually(equal("en-US")) } diff --git a/USERGUIDE.md b/USERGUIDE.md index aad7c38b..d06cd5d4 100644 --- a/USERGUIDE.md +++ b/USERGUIDE.md @@ -83,7 +83,7 @@ To integrate MiniApp SDK into your Xcode project using Swift Package Manager, ad ```ruby dependencies: [ - .package(url: "https://github.com/rakutentech/ios-miniapp.git", .upToNextMajor(from: "5.4.0")) + .package(url: "https://github.com/rakutentech/ios-miniapp.git", .upToNextMajor(from: "5.6.0")) ] ```