From f7e79d44d867ca1a2ca3a30f9994392ca2cd547e Mon Sep 17 00:00:00 2001 From: Arthur Pires Date: Thu, 9 Jan 2025 15:20:06 -0300 Subject: [PATCH 1/4] Fixing error: method does not override any method from its superclass --- .../ios/Classes/InAppWebView/InAppWebView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flutter_inappwebview_ios/ios/Classes/InAppWebView/InAppWebView.swift b/flutter_inappwebview_ios/ios/Classes/InAppWebView/InAppWebView.swift index 25dee18da..56b3a810c 100755 --- a/flutter_inappwebview_ios/ios/Classes/InAppWebView/InAppWebView.swift +++ b/flutter_inappwebview_ios/ios/Classes/InAppWebView/InAppWebView.swift @@ -1429,7 +1429,7 @@ public class InAppWebView: WKWebView, UIScrollViewDelegate, WKUIDelegate, } } - public override func evaluateJavaScript(_ javaScriptString: String, completionHandler: ((Any?, Error?) -> Void)? = nil) { + open override func evaluateJavaScript(_ javaScriptString: String, completionHandler: (@MainActor (Any?, Error?) -> Void)? = nil) { if let applePayAPIEnabled = settings?.applePayAPIEnabled, applePayAPIEnabled { if let completionHandler = completionHandler { completionHandler(nil, nil) From fb4e50698f707f721f3afdfce6982ac34b7e86a8 Mon Sep 17 00:00:00 2001 From: Arthur Pires Date: Tue, 28 Jan 2025 20:23:41 -0300 Subject: [PATCH 2/4] Forcing flutter_inappwebview_ios to use local version instead of fetch remote one --- flutter_inappwebview/pubspec.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flutter_inappwebview/pubspec.yaml b/flutter_inappwebview/pubspec.yaml index ef480d4a4..e77b04edd 100755 --- a/flutter_inappwebview/pubspec.yaml +++ b/flutter_inappwebview/pubspec.yaml @@ -20,7 +20,8 @@ dependencies: sdk: flutter flutter_inappwebview_platform_interface: ^1.0.10 flutter_inappwebview_android: ^1.0.12 - flutter_inappwebview_ios: ^1.0.13 + flutter_inappwebview_ios: + path: ../flutter_inappwebview_ios flutter_inappwebview_macos: ^1.0.11 flutter_inappwebview_web: ^1.0.8 From b0826c4efd2f2248a47679f94f4bbd1fefb57399 Mon Sep 17 00:00:00 2001 From: Arthur Pires Date: Tue, 28 Jan 2025 21:31:12 -0300 Subject: [PATCH 3/4] use path to flutter_inappwebview_ios --- flutter_inappwebview/pubspec.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/flutter_inappwebview/pubspec.yaml b/flutter_inappwebview/pubspec.yaml index e77b04edd..bc9e78fa6 100755 --- a/flutter_inappwebview/pubspec.yaml +++ b/flutter_inappwebview/pubspec.yaml @@ -4,6 +4,7 @@ version: 6.0.0 homepage: https://inappwebview.dev/ repository: https://github.com/pichillilorenzo/flutter_inappwebview issue_tracker: https://github.com/pichillilorenzo/flutter_inappwebview/issues +publish_to: none topics: - html - webview @@ -20,7 +21,8 @@ dependencies: sdk: flutter flutter_inappwebview_platform_interface: ^1.0.10 flutter_inappwebview_android: ^1.0.12 - flutter_inappwebview_ios: + # flutter_inappwebview_ios: ^1.0.13 + flutter_inappwebview_ios: path: ../flutter_inappwebview_ios flutter_inappwebview_macos: ^1.0.11 flutter_inappwebview_web: ^1.0.8 From 919a27d4f02a774d7f9bd196011d9a54964023f7 Mon Sep 17 00:00:00 2001 From: Arthur Pires Date: Tue, 28 Jan 2025 21:32:44 -0300 Subject: [PATCH 4/4] use fork to point to ios --- flutter_inappwebview/pubspec.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flutter_inappwebview/pubspec.yaml b/flutter_inappwebview/pubspec.yaml index bc9e78fa6..4838bd451 100755 --- a/flutter_inappwebview/pubspec.yaml +++ b/flutter_inappwebview/pubspec.yaml @@ -23,7 +23,10 @@ dependencies: flutter_inappwebview_android: ^1.0.12 # flutter_inappwebview_ios: ^1.0.13 flutter_inappwebview_ios: - path: ../flutter_inappwebview_ios + git: + url: https://github.com/nubank/flutter_inappwebview.git + ref: b0826c4efd2f2248a47679f94f4bbd1fefb57399 + path: flutter_inappwebview_ios flutter_inappwebview_macos: ^1.0.11 flutter_inappwebview_web: ^1.0.8