From 8368483d84972375faa5903be542bd14a140dea3 Mon Sep 17 00:00:00 2001 From: Lorenzo Pichilli Date: Mon, 1 Feb 2021 16:22:25 +0100 Subject: [PATCH] removed unneeded Java code obj.put(uuid, uuid) on Android --- .../ChromeCustomTabsActivity.java | 3 -- .../InAppBrowser/InAppBrowserActivity.java | 1 - .../InAppWebView/FlutterWebView.java | 1 - .../InAppWebView/InAppWebView.java | 16 --------- .../InAppWebViewChromeClient.java | 36 ------------------- .../InAppWebView/InAppWebViewClient.java | 34 ------------------ .../InAppWebViewRenderProcessClient.java | 4 --- .../JavaScriptBridgeInterface.java | 2 -- example/.flutter-plugins-dependencies | 2 +- .../lib/in_app_browser_example.screen.dart | 1 - 10 files changed, 1 insertion(+), 99 deletions(-) diff --git a/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/ChromeCustomTabs/ChromeCustomTabsActivity.java b/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/ChromeCustomTabs/ChromeCustomTabsActivity.java index 80b82868..85d9fdae 100755 --- a/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/ChromeCustomTabs/ChromeCustomTabsActivity.java +++ b/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/ChromeCustomTabs/ChromeCustomTabsActivity.java @@ -88,14 +88,12 @@ public class ChromeCustomTabsActivity extends Activity implements MethodChannel. if (navigationEvent == TAB_SHOWN && !onChromeSafariBrowserOpened) { onChromeSafariBrowserOpened = true; Map obj = new HashMap<>(); - obj.put("uuid", uuid); channel.invokeMethod("onChromeSafariBrowserOpened", obj); } if (navigationEvent == NAVIGATION_FINISHED && !onChromeSafariBrowserCompletedInitialLoad) { onChromeSafariBrowserCompletedInitialLoad = true; Map obj = new HashMap<>(); - obj.put("uuid", uuid); channel.invokeMethod("onChromeSafariBrowserCompletedInitialLoad", obj); } } @@ -197,7 +195,6 @@ public class ChromeCustomTabsActivity extends Activity implements MethodChannel. customTabsSession = null; finish(); Map obj = new HashMap<>(); - obj.put("uuid", uuid); channel.invokeMethod("onChromeSafariBrowserClosed", obj); } diff --git a/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/InAppBrowser/InAppBrowserActivity.java b/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/InAppBrowser/InAppBrowserActivity.java index b3e25dc9..a4b6ba36 100755 --- a/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/InAppBrowser/InAppBrowserActivity.java +++ b/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/InAppBrowser/InAppBrowserActivity.java @@ -120,7 +120,6 @@ public class InAppBrowserActivity extends AppCompatActivity { } Map obj = new HashMap<>(); - obj.put("uuid", uuid); channel.invokeMethod("onBrowserCreated", obj); } diff --git a/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/InAppWebView/FlutterWebView.java b/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/InAppWebView/FlutterWebView.java index 863c60e0..cab5f196 100755 --- a/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/InAppWebView/FlutterWebView.java +++ b/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/InAppWebView/FlutterWebView.java @@ -97,7 +97,6 @@ public class FlutterWebView implements PlatformView { if (containerView == null && id instanceof String) { Map obj = new HashMap<>(); - obj.put("uuid", id); channel.invokeMethod("onHeadlessWebViewCreated", obj); } } diff --git a/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/InAppWebView/InAppWebView.java b/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/InAppWebView/InAppWebView.java index 4ef70e50..005503c2 100755 --- a/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/InAppWebView/InAppWebView.java +++ b/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/InAppWebView/InAppWebView.java @@ -822,8 +822,6 @@ final public class InAppWebView extends InputAwareWebView { @Override public void onFindResultReceived(int activeMatchOrdinal, int numberOfMatches, boolean isDoneCounting) { Map obj = new HashMap<>(); - if (inAppBrowserActivity != null) - obj.put("uuid", inAppBrowserActivity.uuid); obj.put("activeMatchOrdinal", activeMatchOrdinal); obj.put("numberOfMatches", numberOfMatches); obj.put("isDoneCounting", isDoneCounting); @@ -928,8 +926,6 @@ final public class InAppWebView extends InputAwareWebView { hitTestResultMap.put("extra", hitTestResult.getExtra()); Map obj = new HashMap<>(); - if (inAppBrowserActivity != null) - obj.put("uuid", inAppBrowserActivity.uuid); obj.put("hitTestResult", hitTestResultMap); channel.invokeMethod("onLongPressHitTestResult", obj); return false; @@ -1516,8 +1512,6 @@ final public class InAppWebView extends InputAwareWebView { } Map obj = new HashMap<>(); - if (inAppBrowserActivity != null) - obj.put("uuid", inAppBrowserActivity.uuid); obj.put("x", x); obj.put("y", y); channel.invokeMethod("onScrollChanged", obj); @@ -1549,8 +1543,6 @@ final public class InAppWebView extends InputAwareWebView { @Override public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype, long contentLength) { Map obj = new HashMap<>(); - if (inAppBrowserActivity != null) - obj.put("uuid", inAppBrowserActivity.uuid); obj.put("url", url); channel.invokeMethod("onDownloadStart", obj); } @@ -1610,8 +1602,6 @@ final public class InAppWebView extends InputAwareWebView { hitTestResultMap.put("extra", hitTestResult.getExtra()); Map obj = new HashMap<>(); - if (inAppBrowserActivity != null) - obj.put("uuid", inAppBrowserActivity.uuid); obj.put("hitTestResult", hitTestResultMap); channel.invokeMethod("onCreateContextMenu", obj); } @@ -1724,8 +1714,6 @@ final public class InAppWebView extends InputAwareWebView { callback.onActionItemClicked(actionMode, menuItem); Map obj = new HashMap<>(); - if (inAppBrowserActivity != null) - obj.put("uuid", inAppBrowserActivity.uuid); obj.put("androidId", itemId); obj.put("iosId", null); obj.put("title", itemTitle); @@ -1750,8 +1738,6 @@ final public class InAppWebView extends InputAwareWebView { hideContextMenu(); Map obj = new HashMap<>(); - if (inAppBrowserActivity != null) - obj.put("uuid", inAppBrowserActivity.uuid); obj.put("androidId", itemId); obj.put("iosId", null); obj.put("title", itemTitle); @@ -1837,8 +1823,6 @@ final public class InAppWebView extends InputAwareWebView { public void onHideContextMenu() { Map obj = new HashMap<>(); - if (inAppBrowserActivity != null) - obj.put("uuid", inAppBrowserActivity.uuid); channel.invokeMethod("onHideContextMenu", obj); } diff --git a/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/InAppWebView/InAppWebViewChromeClient.java b/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/InAppWebView/InAppWebViewChromeClient.java index b0e09bb4..1a8a88d3 100755 --- a/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/InAppWebView/InAppWebViewChromeClient.java +++ b/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/InAppWebView/InAppWebViewChromeClient.java @@ -139,8 +139,6 @@ public class InAppWebViewChromeClient extends WebChromeClient implements PluginR this.mCustomViewCallback = null; activity.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS); Map obj = new HashMap<>(); - if (inAppBrowserActivity != null) - obj.put("uuid", inAppBrowserActivity.uuid); channel.invokeMethod("onExitFullscreen", obj); } @@ -169,8 +167,6 @@ public class InAppWebViewChromeClient extends WebChromeClient implements PluginR ((FrameLayout) decorView).addView(this.mCustomView, FULLSCREEN_LAYOUT_PARAMS); Map obj = new HashMap<>(); - if (inAppBrowserActivity != null) - obj.put("uuid", inAppBrowserActivity.uuid); channel.invokeMethod("onEnterFullscreen", obj); } @@ -178,8 +174,6 @@ public class InAppWebViewChromeClient extends WebChromeClient implements PluginR public boolean onJsAlert(final WebView view, String url, final String message, final JsResult result) { Map obj = new HashMap<>(); - if (inAppBrowserActivity != null) - obj.put("uuid", inAppBrowserActivity.uuid); obj.put("url", url); obj.put("message", message); obj.put("iosIsMainFrame", null); @@ -265,8 +259,6 @@ public class InAppWebViewChromeClient extends WebChromeClient implements PluginR public boolean onJsConfirm(final WebView view, String url, final String message, final JsResult result) { Map obj = new HashMap<>(); - if (inAppBrowserActivity != null) - obj.put("uuid", inAppBrowserActivity.uuid); obj.put("url", url); obj.put("message", message); obj.put("iosIsMainFrame", null); @@ -365,8 +357,6 @@ public class InAppWebViewChromeClient extends WebChromeClient implements PluginR public boolean onJsPrompt(final WebView view, String url, final String message, final String defaultValue, final JsPromptResult result) { Map obj = new HashMap<>(); - if (inAppBrowserActivity != null) - obj.put("uuid", inAppBrowserActivity.uuid); obj.put("url", url); obj.put("message", message); obj.put("defaultValue", defaultValue); @@ -487,8 +477,6 @@ public class InAppWebViewChromeClient extends WebChromeClient implements PluginR public boolean onJsBeforeUnload(final WebView view, String url, final String message, final JsResult result) { Map obj = new HashMap<>(); - if (inAppBrowserActivity != null) - obj.put("uuid", inAppBrowserActivity.uuid); obj.put("url", url); obj.put("message", message); obj.put("iosIsMainFrame", null); @@ -592,8 +580,6 @@ public class InAppWebViewChromeClient extends WebChromeClient implements PluginR String url = result.getExtra(); final Map obj = new HashMap<>(); - if (inAppBrowserActivity != null) - obj.put("uuid", inAppBrowserActivity.uuid); obj.put("url", url); obj.put("windowId", windowId); obj.put("androidIsDialog", isDialog); @@ -636,9 +622,6 @@ public class InAppWebViewChromeClient extends WebChromeClient implements PluginR @Override public void onCloseWindow(WebView window) { final Map obj = new HashMap<>(); - if (inAppBrowserActivity != null) - obj.put("uuid", inAppBrowserActivity.uuid); - channel.invokeMethod("onCloseWindow", obj); super.onCloseWindow(window); @@ -647,9 +630,6 @@ public class InAppWebViewChromeClient extends WebChromeClient implements PluginR @Override public void onRequestFocus(WebView view) { final Map obj = new HashMap<>(); - if (inAppBrowserActivity != null) - obj.put("uuid", inAppBrowserActivity.uuid); - channel.invokeMethod("onRequestFocus", obj); super.onCloseWindow(view); @@ -658,8 +638,6 @@ public class InAppWebViewChromeClient extends WebChromeClient implements PluginR @Override public void onGeolocationPermissionsShowPrompt(final String origin, final GeolocationPermissions.Callback callback) { Map obj = new HashMap<>(); - if (inAppBrowserActivity != null) - obj.put("uuid", inAppBrowserActivity.uuid); obj.put("origin", origin); channel.invokeMethod("onGeolocationPermissionsShowPrompt", obj, new MethodChannel.Result() { @Override @@ -686,16 +664,12 @@ public class InAppWebViewChromeClient extends WebChromeClient implements PluginR @Override public void onGeolocationPermissionsHidePrompt() { Map obj = new HashMap<>(); - if (inAppBrowserActivity != null) - obj.put("uuid", inAppBrowserActivity.uuid); channel.invokeMethod("onGeolocationPermissionsHidePrompt", obj); } @Override public boolean onConsoleMessage(ConsoleMessage consoleMessage) { Map obj = new HashMap<>(); - if (inAppBrowserActivity != null) - obj.put("uuid", inAppBrowserActivity.uuid); obj.put("message", consoleMessage.message()); obj.put("messageLevel", consoleMessage.messageLevel().ordinal()); channel.invokeMethod("onConsoleMessage", obj); @@ -717,8 +691,6 @@ public class InAppWebViewChromeClient extends WebChromeClient implements PluginR } Map obj = new HashMap<>(); - if (inAppBrowserActivity != null) - obj.put("uuid", inAppBrowserActivity.uuid); obj.put("progress", progress); channel.invokeMethod("onProgressChanged", obj); @@ -733,8 +705,6 @@ public class InAppWebViewChromeClient extends WebChromeClient implements PluginR } Map obj = new HashMap<>(); - if (inAppBrowserActivity != null) - obj.put("uuid", inAppBrowserActivity.uuid); obj.put("title", title); channel.invokeMethod("onTitleChanged", obj); } @@ -757,8 +727,6 @@ public class InAppWebViewChromeClient extends WebChromeClient implements PluginR icon.recycle(); Map obj = new HashMap<>(); - if (inAppBrowserActivity != null) - obj.put("uuid", inAppBrowserActivity.uuid); obj.put("icon", byteArrayOutputStream.toByteArray()); channel.invokeMethod("onReceivedIcon", obj); } @@ -770,8 +738,6 @@ public class InAppWebViewChromeClient extends WebChromeClient implements PluginR super.onReceivedTouchIconUrl(view, url, precomposed); Map obj = new HashMap<>(); - if (inAppBrowserActivity != null) - obj.put("uuid", inAppBrowserActivity.uuid); obj.put("url", url); obj.put("precomposed", precomposed); channel.invokeMethod("onReceivedTouchIconUrl", obj); @@ -1142,8 +1108,6 @@ public class InAppWebViewChromeClient extends WebChromeClient implements PluginR public void onPermissionRequest(final PermissionRequest request) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { Map obj = new HashMap<>(); - if (inAppBrowserActivity != null) - obj.put("uuid", inAppBrowserActivity.uuid); obj.put("origin", request.getOrigin().toString()); obj.put("resources", Arrays.asList(request.getResources())); channel.invokeMethod("onPermissionRequest", obj, new MethodChannel.Result() { diff --git a/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/InAppWebView/InAppWebViewClient.java b/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/InAppWebView/InAppWebViewClient.java index 089e552e..bd0841cc 100755 --- a/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/InAppWebView/InAppWebViewClient.java +++ b/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/InAppWebView/InAppWebViewClient.java @@ -115,8 +115,6 @@ public class InAppWebViewClient extends WebViewClient { public void onShouldOverrideUrlLoading(final InAppWebView webView, final String url, final String method, final Map headers, final boolean isForMainFrame, boolean hasGesture, boolean isRedirect) { Map obj = new HashMap<>(); - if (inAppBrowserActivity != null) - obj.put("uuid", inAppBrowserActivity.uuid); obj.put("url", url); obj.put("method", method); obj.put("headers", headers); @@ -264,8 +262,6 @@ public class InAppWebViewClient extends WebViewClient { } Map obj = new HashMap<>(); - if (inAppBrowserActivity != null) - obj.put("uuid", inAppBrowserActivity.uuid); obj.put("url", url); channel.invokeMethod("onLoadStart", obj); } @@ -298,8 +294,6 @@ public class InAppWebViewClient extends WebViewClient { } Map obj = new HashMap<>(); - if (inAppBrowserActivity != null) - obj.put("uuid", inAppBrowserActivity.uuid); obj.put("url", url); channel.invokeMethod("onLoadStop", obj); } @@ -307,8 +301,6 @@ public class InAppWebViewClient extends WebViewClient { @Override public void doUpdateVisitedHistory(WebView view, String url, boolean isReload) { Map obj = new HashMap<>(); - if (inAppBrowserActivity != null) - obj.put("uuid", inAppBrowserActivity.uuid); obj.put("url", url); obj.put("androidIsReload", isReload); channel.invokeMethod("onUpdateVisitedHistory", obj); @@ -331,8 +323,6 @@ public class InAppWebViewClient extends WebViewClient { credentialsProposed = null; Map obj = new HashMap<>(); - if (inAppBrowserActivity != null) - obj.put("uuid", inAppBrowserActivity.uuid); obj.put("url", failingUrl); obj.put("code", errorCode); obj.put("message", description); @@ -347,8 +337,6 @@ public class InAppWebViewClient extends WebViewClient { super.onReceivedHttpError(view, request, errorResponse); if(request.isForMainFrame()) { Map obj = new HashMap<>(); - if (inAppBrowserActivity != null) - obj.put("uuid", inAppBrowserActivity.uuid); obj.put("url", request.getUrl().toString()); obj.put("statusCode", errorResponse.getStatusCode()); obj.put("description", errorResponse.getReasonPhrase()); @@ -381,8 +369,6 @@ public class InAppWebViewClient extends WebViewClient { previousAuthRequestFailureCount++; Map obj = new HashMap<>(); - if (inAppBrowserActivity != null) - obj.put("uuid", inAppBrowserActivity.uuid); obj.put("host", host); obj.put("protocol", protocol); obj.put("realm", realm); @@ -460,8 +446,6 @@ public class InAppWebViewClient extends WebViewClient { final int port = url.getPort(); Map obj = new HashMap<>(); - if (inAppBrowserActivity != null) - obj.put("uuid", inAppBrowserActivity.uuid); obj.put("host", host); obj.put("protocol", protocol); obj.put("realm", realm); @@ -545,8 +529,6 @@ public class InAppWebViewClient extends WebViewClient { final String realm = null; Map obj = new HashMap<>(); - if (inAppBrowserActivity != null) - obj.put("uuid", inAppBrowserActivity.uuid); obj.put("host", request.getHost()); obj.put("protocol", protocol); obj.put("realm", realm); @@ -603,8 +585,6 @@ public class InAppWebViewClient extends WebViewClient { webView.scale = newScale; Map obj = new HashMap<>(); - if (inAppBrowserActivity != null) - obj.put("uuid", inAppBrowserActivity.uuid); obj.put("oldScale", oldScale); obj.put("newScale", newScale); channel.invokeMethod("onScaleChanged", obj); @@ -614,8 +594,6 @@ public class InAppWebViewClient extends WebViewClient { @Override public void onSafeBrowsingHit(final WebView view, final WebResourceRequest request, final int threatType, final SafeBrowsingResponse callback) { Map obj = new HashMap<>(); - if (inAppBrowserActivity != null) - obj.put("uuid", inAppBrowserActivity.uuid); obj.put("url", request.getUrl().toString()); obj.put("threatType", threatType); @@ -691,8 +669,6 @@ public class InAppWebViewClient extends WebViewClient { if (webView.options.resourceCustomSchemes != null && webView.options.resourceCustomSchemes.contains(scheme)) { final Map obj = new HashMap<>(); - if (inAppBrowserActivity != null) - obj.put("uuid", inAppBrowserActivity.uuid); obj.put("url", url); obj.put("scheme", scheme); @@ -770,8 +746,6 @@ public class InAppWebViewClient extends WebViewClient { } final Map obj = new HashMap<>(); - if (inAppBrowserActivity != null) - obj.put("uuid", inAppBrowserActivity.uuid); obj.put("url", url); obj.put("method", method); obj.put("headers", headers); @@ -814,8 +788,6 @@ public class InAppWebViewClient extends WebViewClient { @Override public void onFormResubmission (final WebView view, final Message dontResend, final Message resend) { Map obj = new HashMap<>(); - if (inAppBrowserActivity != null) - obj.put("uuid", inAppBrowserActivity.uuid); obj.put("url", view.getUrl()); channel.invokeMethod("onFormResubmission", obj, new MethodChannel.Result() { @@ -857,8 +829,6 @@ public class InAppWebViewClient extends WebViewClient { public void onPageCommitVisible(WebView view, String url) { super.onPageCommitVisible(view, url); Map obj = new HashMap<>(); - if (inAppBrowserActivity != null) - obj.put("uuid", inAppBrowserActivity.uuid); obj.put("url", url); channel.invokeMethod("onPageCommitVisible", obj); } @@ -873,8 +843,6 @@ public class InAppWebViewClient extends WebViewClient { Integer rendererPriorityAtExit = detail.rendererPriorityAtExit(); Map obj = new HashMap<>(); - if (inAppBrowserActivity != null) - obj.put("uuid", inAppBrowserActivity.uuid); obj.put("didCrash", didCrash); obj.put("rendererPriorityAtExit", rendererPriorityAtExit); @@ -889,8 +857,6 @@ public class InAppWebViewClient extends WebViewClient { @Override public void onReceivedLoginRequest(WebView view, String realm, String account, String args) { Map obj = new HashMap<>(); - if (inAppBrowserActivity != null) - obj.put("uuid", inAppBrowserActivity.uuid); obj.put("realm", realm); obj.put("account", account); obj.put("args", args); diff --git a/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/InAppWebView/InAppWebViewRenderProcessClient.java b/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/InAppWebView/InAppWebViewRenderProcessClient.java index 76d06fb5..dd147b15 100644 --- a/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/InAppWebView/InAppWebViewRenderProcessClient.java +++ b/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/InAppWebView/InAppWebViewRenderProcessClient.java @@ -35,8 +35,6 @@ public class InAppWebViewRenderProcessClient extends WebViewRenderProcessClient @Override public void onRenderProcessUnresponsive(@NonNull WebView view, @Nullable final WebViewRenderProcess renderer) { Map obj = new HashMap<>(); - if (inAppBrowserActivity != null) - obj.put("uuid", inAppBrowserActivity.uuid); obj.put("url", view.getUrl()); channel.invokeMethod("onRenderProcessUnresponsive", obj, new MethodChannel.Result() { @@ -69,8 +67,6 @@ public class InAppWebViewRenderProcessClient extends WebViewRenderProcessClient @Override public void onRenderProcessResponsive(@NonNull WebView view, @Nullable final WebViewRenderProcess renderer) { Map obj = new HashMap<>(); - if (inAppBrowserActivity != null) - obj.put("uuid", inAppBrowserActivity.uuid); obj.put("url", view.getUrl()); channel.invokeMethod("onRenderProcessResponsive", obj, new MethodChannel.Result() { diff --git a/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/JavaScriptBridgeInterface.java b/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/JavaScriptBridgeInterface.java index 69f3cb25..560e7bd1 100755 --- a/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/JavaScriptBridgeInterface.java +++ b/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/JavaScriptBridgeInterface.java @@ -72,8 +72,6 @@ public class JavaScriptBridgeInterface { final InAppWebView webView = (inAppBrowserActivity != null) ? inAppBrowserActivity.webView : flutterWebView.webView; final Map obj = new HashMap<>(); - if (inAppBrowserActivity != null) - obj.put("uuid", inAppBrowserActivity.uuid); obj.put("handlerName", handlerName); obj.put("args", args); diff --git a/example/.flutter-plugins-dependencies b/example/.flutter-plugins-dependencies index a289c59e..fd9c51f2 100644 --- a/example/.flutter-plugins-dependencies +++ b/example/.flutter-plugins-dependencies @@ -1 +1 @@ -{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"device_info","path":"/Users/lorenzopichilli/flutter/.pub-cache/hosted/pub.dartlang.org/device_info-2.0.0-nullsafety.2/","dependencies":[]},{"name":"flutter_downloader","path":"/Users/lorenzopichilli/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_downloader-1.5.2/","dependencies":[]},{"name":"flutter_inappwebview","path":"/Users/lorenzopichilli/Desktop/flutter_inappwebview/","dependencies":["device_info"]},{"name":"integration_test","path":"/Users/lorenzopichilli/flutter/.pub-cache/git/plugins-16f3281b04b0db12e609352b1c9544901392e428/packages/integration_test/","dependencies":[]},{"name":"path_provider","path":"/Users/lorenzopichilli/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.27/","dependencies":[]},{"name":"permission_handler","path":"/Users/lorenzopichilli/flutter/.pub-cache/hosted/pub.dartlang.org/permission_handler-5.0.1+1/","dependencies":[]},{"name":"url_launcher","path":"/Users/lorenzopichilli/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-6.0.0-nullsafety.4/","dependencies":[]}],"android":[{"name":"device_info","path":"/Users/lorenzopichilli/flutter/.pub-cache/hosted/pub.dartlang.org/device_info-2.0.0-nullsafety.2/","dependencies":[]},{"name":"flutter_downloader","path":"/Users/lorenzopichilli/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_downloader-1.5.2/","dependencies":[]},{"name":"flutter_inappwebview","path":"/Users/lorenzopichilli/Desktop/flutter_inappwebview/","dependencies":["device_info"]},{"name":"integration_test","path":"/Users/lorenzopichilli/flutter/.pub-cache/git/plugins-16f3281b04b0db12e609352b1c9544901392e428/packages/integration_test/","dependencies":[]},{"name":"path_provider","path":"/Users/lorenzopichilli/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.27/","dependencies":[]},{"name":"permission_handler","path":"/Users/lorenzopichilli/flutter/.pub-cache/hosted/pub.dartlang.org/permission_handler-5.0.1+1/","dependencies":[]},{"name":"url_launcher","path":"/Users/lorenzopichilli/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-6.0.0-nullsafety.4/","dependencies":[]}],"macos":[{"name":"path_provider_macos","path":"/Users/lorenzopichilli/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-0.0.4+8/","dependencies":[]},{"name":"url_launcher_macos","path":"/Users/lorenzopichilli/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-0.1.0-nullsafety.2/","dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"/Users/lorenzopichilli/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-0.0.1+2/","dependencies":[]},{"name":"url_launcher_linux","path":"/Users/lorenzopichilli/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_linux-0.1.0-nullsafety.3/","dependencies":[]}],"windows":[{"name":"path_provider_windows","path":"/Users/lorenzopichilli/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-0.0.4+3/","dependencies":[]},{"name":"url_launcher_windows","path":"/Users/lorenzopichilli/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_windows-0.1.0-nullsafety.2/","dependencies":[]}],"web":[]},"dependencyGraph":[{"name":"device_info","dependencies":[]},{"name":"flutter_downloader","dependencies":[]},{"name":"flutter_inappwebview","dependencies":["device_info"]},{"name":"integration_test","dependencies":[]},{"name":"path_provider","dependencies":["path_provider_macos","path_provider_linux","path_provider_windows"]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_macos","dependencies":[]},{"name":"path_provider_windows","dependencies":[]},{"name":"permission_handler","dependencies":[]},{"name":"url_launcher","dependencies":["url_launcher_linux","url_launcher_macos","url_launcher_windows"]},{"name":"url_launcher_linux","dependencies":[]},{"name":"url_launcher_macos","dependencies":[]},{"name":"url_launcher_windows","dependencies":[]}],"date_created":"2021-02-01 14:15:06.451560","version":"1.26.0-18.0.pre.90"} \ No newline at end of file +{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"device_info","path":"/Users/lorenzopichilli/flutter/.pub-cache/hosted/pub.dartlang.org/device_info-2.0.0-nullsafety.2/","dependencies":[]},{"name":"flutter_downloader","path":"/Users/lorenzopichilli/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_downloader-1.5.2/","dependencies":[]},{"name":"flutter_inappwebview","path":"/Users/lorenzopichilli/Desktop/flutter_inappwebview/","dependencies":["device_info"]},{"name":"integration_test","path":"/Users/lorenzopichilli/flutter/.pub-cache/git/plugins-16f3281b04b0db12e609352b1c9544901392e428/packages/integration_test/","dependencies":[]},{"name":"path_provider","path":"/Users/lorenzopichilli/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.27/","dependencies":[]},{"name":"permission_handler","path":"/Users/lorenzopichilli/flutter/.pub-cache/hosted/pub.dartlang.org/permission_handler-5.0.1+1/","dependencies":[]},{"name":"url_launcher","path":"/Users/lorenzopichilli/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-6.0.0-nullsafety.4/","dependencies":[]}],"android":[{"name":"device_info","path":"/Users/lorenzopichilli/flutter/.pub-cache/hosted/pub.dartlang.org/device_info-2.0.0-nullsafety.2/","dependencies":[]},{"name":"flutter_downloader","path":"/Users/lorenzopichilli/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_downloader-1.5.2/","dependencies":[]},{"name":"flutter_inappwebview","path":"/Users/lorenzopichilli/Desktop/flutter_inappwebview/","dependencies":["device_info"]},{"name":"integration_test","path":"/Users/lorenzopichilli/flutter/.pub-cache/git/plugins-16f3281b04b0db12e609352b1c9544901392e428/packages/integration_test/","dependencies":[]},{"name":"path_provider","path":"/Users/lorenzopichilli/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.27/","dependencies":[]},{"name":"permission_handler","path":"/Users/lorenzopichilli/flutter/.pub-cache/hosted/pub.dartlang.org/permission_handler-5.0.1+1/","dependencies":[]},{"name":"url_launcher","path":"/Users/lorenzopichilli/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-6.0.0-nullsafety.4/","dependencies":[]}],"macos":[{"name":"path_provider_macos","path":"/Users/lorenzopichilli/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-0.0.4+8/","dependencies":[]},{"name":"url_launcher_macos","path":"/Users/lorenzopichilli/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-0.1.0-nullsafety.2/","dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"/Users/lorenzopichilli/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-0.0.1+2/","dependencies":[]},{"name":"url_launcher_linux","path":"/Users/lorenzopichilli/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_linux-0.1.0-nullsafety.3/","dependencies":[]}],"windows":[{"name":"path_provider_windows","path":"/Users/lorenzopichilli/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-0.0.4+3/","dependencies":[]},{"name":"url_launcher_windows","path":"/Users/lorenzopichilli/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_windows-0.1.0-nullsafety.2/","dependencies":[]}],"web":[]},"dependencyGraph":[{"name":"device_info","dependencies":[]},{"name":"flutter_downloader","dependencies":[]},{"name":"flutter_inappwebview","dependencies":["device_info"]},{"name":"integration_test","dependencies":[]},{"name":"path_provider","dependencies":["path_provider_macos","path_provider_linux","path_provider_windows"]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_macos","dependencies":[]},{"name":"path_provider_windows","dependencies":[]},{"name":"permission_handler","dependencies":[]},{"name":"url_launcher","dependencies":["url_launcher_linux","url_launcher_macos","url_launcher_windows"]},{"name":"url_launcher_linux","dependencies":[]},{"name":"url_launcher_macos","dependencies":[]},{"name":"url_launcher_windows","dependencies":[]}],"date_created":"2021-02-01 16:16:01.302566","version":"1.26.0-18.0.pre.90"} \ No newline at end of file diff --git a/example/lib/in_app_browser_example.screen.dart b/example/lib/in_app_browser_example.screen.dart index 28469817..59f8204e 100755 --- a/example/lib/in_app_browser_example.screen.dart +++ b/example/lib/in_app_browser_example.screen.dart @@ -22,7 +22,6 @@ class MyInAppBrowser extends InAppBrowser { @override Future onLoadStop(url) async { - print(await this.webViewController.getTitle()); print("\n\nStopped $url\n\n"); }