Skip to content

Commit ac624dc

Browse files
committed
v3.8.2 candidate
1 parent 3ab7838 commit ac624dc

File tree

3 files changed

+16
-9
lines changed

3 files changed

+16
-9
lines changed

CHANGELOG.md

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

3+
### 3.8.2 (2022-01-17)
4+
5+
**SDK**
6+
7+
- **Fix:** Memory leak issue fix
8+
9+
---
310
### 3.8.0 (2021-11-09)
411

512
**SDK**

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 = '3.8.0'
3+
miniapp.version = '3.8.2'
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."

MiniApp/Classes/core/Display/RealMiniAppView.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@ internal class RealMiniAppView: UIView {
8989
}
9090

9191
fileprivate func initExternalWebViewClosures() {
92-
onExternalWebviewResponse = { (url) in
93-
self.webView.load(URLRequest(url: url))
92+
onExternalWebviewResponse = { [weak self] (url) in
93+
self?.webView.load(URLRequest(url: url))
9494
}
95-
onExternalWebviewClose = { (url) in
96-
self.didReceiveEvent(.externalWebViewClosed, message: url.absoluteString)
95+
onExternalWebviewClose = { [weak self] (url) in
96+
self?.didReceiveEvent(.externalWebViewClosed, message: url.absoluteString)
9797
NotificationCenter.default.sendCustomEvent(MiniAppEvent.Event(type: .resume, comment: "MiniApp close external webview"))
9898
}
9999
}
@@ -141,11 +141,11 @@ internal class RealMiniAppView: UIView {
141141
}
142142

143143
func observeWebView() {
144-
canGoBackObservation = webView.observe(\.canGoBack, options: .initial) { (webView, _) in
145-
self.navigationDelegate?.miniAppNavigationCanGo(back: webView.canGoBack, forward: webView.canGoForward)
144+
canGoBackObservation = webView.observe(\.canGoBack, options: .initial) { [weak self] (webView, _) in
145+
self?.navigationDelegate?.miniAppNavigationCanGo(back: webView.canGoBack, forward: webView.canGoForward)
146146
}
147-
canGoForwardObservation = webView.observe(\.canGoForward) { (webView, _) in
148-
self.navigationDelegate?.miniAppNavigationCanGo(back: webView.canGoBack, forward: webView.canGoForward)
147+
canGoForwardObservation = webView.observe(\.canGoForward) { [weak self] (webView, _) in
148+
self?.navigationDelegate?.miniAppNavigationCanGo(back: webView.canGoBack, forward: webView.canGoForward)
149149
}
150150
NotificationCenter.default.addObserver(self,
151151
selector: #selector(sendCustomEvent(notification:)),

0 commit comments

Comments
 (0)