Skip to content

Commit 21aeb17

Browse files
committed
Changes for v5.6.1
1 parent def3efa commit 21aeb17

File tree

6 files changed

+10
-5
lines changed

6 files changed

+10
-5
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
## CHANGELOG
22

3+
### 5.6.1 (2023-10-17)
4+
**SDK**
5+
- **Fix:** Fixed `getUsername` unicode issue
6+
---
7+
38
### 5.6.0 (2023-10-17)
49
**SDK**
510
- **Fix:** Updated JS Bridge after fixing linting issues.

MiniApp.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |miniapp|
22
miniapp.name = 'MiniApp'
3-
miniapp.version = '5.6.0'
3+
miniapp.version = '5.6.1'
44
miniapp.authors = "Rakuten Ecosystem Mobile"
55
miniapp.summary = "Rakuten's Mini App SDK"
66
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."

Sources/Classes/core/JavascriptBridge/MiniAppScriptMessageHandler.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ internal class MiniAppScriptMessageHandler: NSObject, WKScriptMessageHandler {
467467
self.executeJavaScriptCallback(responseStatus: .onError, messageId: callbackId, response: getMiniAppErrorMessage(MiniAppErrorType.hostAppError))
468468
return
469469
}
470-
self.executeJavaScriptCallback(responseStatus: .onSuccess, messageId: callbackId, response: userName)
470+
self.executeJavaScriptCallback(responseStatus: .onSuccess, messageId: callbackId, response: userName.base64Encoded() ?? "")
471471
case .failure(let error):
472472
self.handleMASDKError(error: error, callbackId: callbackId)
473473
}

Sources/Classes/core/MiniApp.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import UIKit
33

44
/// Mini App Public API methods
55
public class MiniApp: NSObject {
6-
public static let version = "5.6.0"
6+
public static let version = "5.6.1"
77
private static let shared = MiniApp()
88
private let realMiniApp = RealMiniApp()
99
public static var MAOrientationLock: UIInterfaceOrientationMask = []

Sources/Classes/js-miniapp

Tests/Unit/MiniAppScriptMessageHandlerTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1106,7 +1106,7 @@ class MiniAppScriptMessageHandlerTests: QuickSpec {
11061106
return
11071107
}
11081108
let environmentInfo = ResponseDecoder.decode(decodeType: MAHostEnvironmentInfo.self, data: responseData)
1109-
expect(environmentInfo?.sdkVersion).toEventually(equal("5.6.0"))
1109+
expect(environmentInfo?.sdkVersion).toEventually(equal("5.6.1"))
11101110
expect(environmentInfo?.hostVersion).toEventually(equal(Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String))
11111111
expect(environmentInfo?.hostLocale).toEventually(equal("en-US"))
11121112
}

0 commit comments

Comments
 (0)