Skip to content

Commit

Permalink
Changes for v5.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rleojoseph committed Oct 17, 2023
1 parent def3efa commit 21aeb17
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
## 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.
Expand Down
2 changes: 1 addition & 1 deletion MiniApp.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |miniapp|
miniapp.name = 'MiniApp'
miniapp.version = '5.6.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."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/Classes/core/MiniApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import UIKit

/// Mini App Public API methods
public class MiniApp: NSObject {
public static let version = "5.6.0"
public static let version = "5.6.1"
private static let shared = MiniApp()
private let realMiniApp = RealMiniApp()
public static var MAOrientationLock: UIInterfaceOrientationMask = []
Expand Down
2 changes: 1 addition & 1 deletion Sources/Classes/js-miniapp
Submodule js-miniapp updated 1 files
+2,036 −10 bridge.js
2 changes: 1 addition & 1 deletion Tests/Unit/MiniAppScriptMessageHandlerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1106,7 +1106,7 @@ class MiniAppScriptMessageHandlerTests: QuickSpec {
return
}
let environmentInfo = ResponseDecoder.decode(decodeType: MAHostEnvironmentInfo.self, data: responseData)
expect(environmentInfo?.sdkVersion).toEventually(equal("5.6.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"))
}
Expand Down

0 comments on commit 21aeb17

Please sign in to comment.