Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Candidate v5.6.1 #530

Merged
merged 5 commits into from
Nov 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading