Skip to content

Commit

Permalink
Candidate v5.6.1 (#530)
Browse files Browse the repository at this point in the history
* Release candidate changes

* JS Changes

* v5.6.0 changes

* Updated bridge

* Changes for v5.6.1
  • Loading branch information
rleojoseph authored Nov 12, 2023
1 parent 2fccc8b commit b514dee
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 6 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
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.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."
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.4.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,051 −3 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.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"))
}
Expand Down
2 changes: 1 addition & 1 deletion USERGUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
]
```

Expand Down

0 comments on commit b514dee

Please sign in to comment.