Commit Graph

146 Commits

Author SHA1 Message Date
Lorenzo Pichilli 8dfddc2e12 Added ProcessGlobalConfig for Android WebViews, Added disableWebView static method on InAppWebViewController for Android, Added support for Android WebViewFeature.isStartupFeatureSupported, WebViewFeature.STARTUP_FEATURE_SET_DIRECTORY_BASE_PATHS, WebViewFeature.STARTUP_FEATURE_SET_DATA_DIRECTORY_SUFFIX, WebViewFeature.WEB_MESSAGE_ARRAY_BUFFER, Added WebMessage.type property, WebMessage.data property is of type dynamic, JavaScriptReplyProxy.postMessage is of type WebMessage, changed WebMessageListener.onPostMessage and WebMessagePort.setWebMessageCallback methods signature 2023-11-14 18:39:25 +01:00
Lorenzo Pichilli d5a0bb3e3e code format 2023-11-11 19:09:10 +01:00
Lorenzo Pichilli a623ee718d Throw an error if any controller is used after being disposed, created internal ChannelController class 2023-11-11 13:18:02 +01:00
Lorenzo Pichilli a7030772be updated InAppWebView.preventGestureDelay native implementation for ios 2023-11-09 19:35:50 +01:00
Lorenzo Pichilli 34e6bea153 Merge branch 'feat/disable-ios-delay' of https://github.com/andreasgangso/flutter_inappwebview into andreasgangso-feat/disable-ios-delay 2023-11-09 15:46:04 +01:00
Lorenzo Pichilli 62431838d9 Added InAppBrowser menu items feature, Added hideCloseButton, hideDefaultMenuItems, menuButtonColor InAppBrowser settings 2023-06-11 01:55:42 +02:00
Andreas Gangsø d1f5a6721c feat(ios): optional tradeoff to fix input delay (#1268) 2023-05-23 16:54:34 +02:00
Lorenzo Pichilli 5a113f6e8a Added InAppWebView keep alive feature, Added hasJavaScriptHandler, hasUserScript, hasWebMessageListener InAppWebViewController methods, HeadlessInAppWebView.webViewController could be null, Removed throwIfAlreadyOpened, throwIfNotOpened InAppBrowser methods, Removed throwIfAlreadyOpened, throwIfNotOpened ChromeSafariBrowser methods 2023-05-19 00:45:12 +02:00
Lorenzo Pichilli ae199f1dc4 Updated window.flutter_inappwebview.callHandler implementation: if there is an error/exception on Flutter/Dart side, the callHandler will reject the JavaScript promise with the error/exception message, so you can catch it also on JavaScript side, Fixed Android Web Storage Manager deleteAllData and deleteOrigin methods implementation, fix #1462, fix #1475 2023-05-15 13:46:42 +02:00
Lorenzo Pichilli 459875ff2e Updated code docs, Using Android WebViewClientCompat for Chromium-based WebView if the WebView package major version is >= 73 (https://bugs.chromium.org/p/chromium/issues/detail?id=925887), fix #1422 2022-12-03 15:58:12 +01:00
Lorenzo Pichilli fc98712f30 Updated code docs, Fixed some missing macOS asserts, fix #1447 2022-11-30 16:53:10 +01:00
Lorenzo Pichilli 2d32eff3f0 Fixed InAppWebViewSettings automatic infer if initialSettings is null 2022-11-28 15:12:02 +01:00
Lorenzo Pichilli 962fc35ff7 Removed Android Hybrid Composition constraint to use the pull-to-refresh feature, Removed Android com.squareup.okhttp3:okhttp dependency 2022-11-23 17:06:14 +01:00
Lorenzo Pichilli 3101b44c37 All PrintJobSettings properties are optionals, All PullToRefreshSettings properties are optionals, All WebAuthenticationSessionSettings properties are optionals, Automatically infer useShouldOverrideUrlLoading, useOnLoadResource, useOnDownloadStart, useShouldInterceptAjaxRequest, useShouldInterceptFetchRequest, useShouldInterceptRequest, useOnRenderProcessGone, useOnNavigationResponse settings if their value is null and the corresponding event is implemented by the WebView (InAppWebView and HeadlessInAppWebView, not InAppBrowser) before it's native initialization 2022-11-22 22:40:45 +01:00
Lorenzo Pichilli d39b1ef374 Fixed User Script remove methods, Fixed macOS available checks for XCode 14.1 2022-11-16 15:30:17 +01:00
Lorenzo Pichilli 2f8fa22db4 code format 2022-11-02 15:08:44 +01:00
Lorenzo Pichilli 06668703c4 Removed willSuppressErrorPage WebView Android setting in favor of disableDefaultErrorPage, Added isMultiProcessEnabled static method on InAppWebViewController for Android, Added onContentSizeChanged WebView event for iOS, Added onPermissionRequestCanceled and onRequestFocus WebView events for Android, Added defaultVideoPoster WebView setting for Android, Added TracingController for Android WebViews 2022-10-31 02:09:00 +01:00
Lorenzo Pichilli fa49616c63 updated some code docs, fix #1405 2022-10-27 20:51:31 +02:00
Lorenzo Pichilli fa5449a50d Created WebUri class to replace Uri dart core type, fix #1402, fix #1328, fix #1350 2022-10-27 11:02:49 +02:00
Lorenzo Pichilli cfd70fda6e release 6.0.0-beta.9 2022-10-26 17:52:35 +02:00
Lorenzo Pichilli 8e9c10246a Added startAnimations, exitAnimations, navigationBarColor, navigationBarDividerColor, secondaryToolbarColor ChromeSafariBrowser settings for Android, Added getVariationsHeader WebView static method, All ChromeSafariBrowserSettings properties are optionals 2022-10-25 11:18:53 +02:00
Lorenzo Pichilli d5170c3dd8 fix #1393 2022-10-24 14:27:37 +02:00
Lorenzo Pichilli 4973770c1c release 6.0.0-beta.7 2022-10-22 22:00:09 +02:00
Lorenzo Pichilli 14ff4921f8 Added InAppWebViewSettings.allowBackgroundAudioPlaying for Android, Added WebViewAssetLoader and InAppWebViewSettings.webViewAssetLoader for Android 2022-10-22 04:05:41 +02:00
Lorenzo Pichilli 00cf46faed code format 2022-10-20 16:50:11 +02:00
Lorenzo Pichilli 92eba92a6c Added InAppWebView.headlessWebView property to convert an HeadlessWebView to InAppWebView widget 2022-10-20 16:34:37 +02:00
Lorenzo Pichilli 786a544963 flutter format 2022-10-19 16:54:54 +02:00
Lorenzo Pichilli 624727fd4e Added windowType, windowAlphaValue, windowStyleMask, windowTitlebarSeparatorStyle, windowFrame for MacOS InAppBrowserSettings 2022-10-19 16:50:55 +02:00
Lorenzo Pichilli 78abd773b1 updated README, fixed swift Util getUrlAsset and getAbsPathAsset, fixed NSColor, added WKWebView runOpenPanelWith event 2022-10-19 13:14:53 +02:00
Lorenzo Pichilli 652ee52c75 updated macos docs, added getContentWidth WebView method 2022-10-18 18:12:33 +02:00
Lorenzo Pichilli f624f7c337 initial macos implementation 2022-10-17 02:23:05 +02:00
Lorenzo Pichilli 2786dd58d2 updated README minimum ios xcode version 2022-10-14 10:05:13 +02:00
Lorenzo Pichilli be58d859a4 code format 2022-10-14 02:28:23 +02:00
Lorenzo Pichilli 45c3652bc5 merged fix(ios): invoke onBrowserCreated when viewDidLoad is called with win…, updated webview debug settings, updated debug logging message with platform name 2022-10-13 21:18:07 +02:00
Lorenzo Pichilli f634c1ed83 merged Catch and ignore utf8 format exception in getFavicons() 2022-10-13 19:55:23 +02:00
Lorenzo Pichilli 9d54f918e1 Fixed iOS 14.0 crash when calling callAsyncJavaScript method 2022-10-13 14:27:40 +02:00
Lorenzo Pichilli e9b059b2e2 renamed findAllAsync to findAll 2022-10-12 10:27:58 +02:00
Lorenzo Pichilli 5d70469caa updated WebView docs 2022-10-11 17:14:48 +02:00
Lorenzo Pichilli 3b2add4199 code format 2022-10-11 16:19:36 +02:00
Lorenzo Pichilli abab589d80 use flutter_lints as linter 2022-10-08 19:07:50 +02:00
Lorenzo Pichilli 386bd2097e added loadSimulatedRequest iOS webview method 2022-10-08 18:57:29 +02:00
Lorenzo Pichilli 432e882e8f added minimumViewportInset and maximumViewportInset iOS webview settings 2022-10-08 15:20:09 +02:00
Lorenzo Pichilli f5a048cb69 added Find Interaction Controller 2022-10-08 14:19:35 +02:00
Lorenzo Pichilli 6d2408de0e added enterpriseAuthenticationAppLinkPolicyEnabled android webview setting 2022-10-07 02:34:09 +02:00
Lorenzo Pichilli b889efebf3 added requestedWithHeaderMode android webview settings, added getRequestedWithHeaderMode and setRequestedWithHeaderMode ServiceWorkerController methods 2022-10-07 02:26:28 +02:00
Lorenzo Pichilli 1fd8a062f3 updated algorithmicDarkeningAllowed 2022-10-07 01:50:51 +02:00
Lorenzo Pichilli 22ae9deac6 added android willSuppressErrorPage and algorithmicDarkeningAllowed settings 2022-10-07 01:45:15 +02:00
Lorenzo Pichilli 3a63c35a68 fixed tests 2022-10-06 15:13:31 +02:00
Lorenzo Pichilli caf8ae915b fixed nativeValue in case of null, updated log debug settings for flutter test cases 2022-10-05 19:48:34 +02:00
Lorenzo Pichilli 9d738d3435 updated all toValue and fromValue 2022-10-05 13:52:07 +02:00