From 7756aa86220a4fc9fe44c6781aec6791e2ce3214 Mon Sep 17 00:00:00 2001 From: pichillilorenzo Date: Mon, 22 Oct 2018 00:41:39 +0200 Subject: [PATCH] v0.5.0 --- .idea/workspace.xml | 319 ++--- CHANGELOG.md | 11 + README.md | 889 ++++++++++---- android/src/main/AndroidManifest.xml | 4 +- .../ChromeCustomTabsActivity.java | 4 +- .../ChromeCustomTabsOptions.java | 2 +- .../CustomTabActivityHelper.java | 4 +- .../CustomTabsHelper.java | 3 +- .../KeepAliveService.java | 2 +- .../ServiceConnection.java | 2 +- .../ServiceConnectionCallback.java | 2 +- .../flutter_inappbrowser/FlutterWebView.java | 191 +++ .../FlutterWebViewFactory.java | 32 + .../InAppBrowserActivity.java | 368 ++++++ .../InAppBrowserFlutterPlugin.java | 269 ++--- .../InAppBrowserOptions.java | 16 - .../InAppWebChromeClient.java} | 59 +- .../InAppWebView/InAppWebView.java | 374 ++++++ .../InAppWebViewClient.java} | 84 +- .../InAppWebView/InAppWebViewOptions.java | 24 + .../JavaScriptBridgeInterface.java | 25 +- .../flutter_inappbrowser/Options.java | 2 +- .../flutter_inappbrowser/Util.java | 39 + .../flutter_inappbrowser/WebViewActivity.java | 517 --------- .../src/main/res/layout/activity_web_view.xml | 8 +- android/src/main/res/menu/menu_main.xml | 2 +- example/lib/main.dart | 228 +++- flutter_inappbrowser.iml | 1 - ios/Classes/InAppBrowserOptions.swift | 20 +- .../InAppBrowserWebViewController.swift | 128 +- ios/Classes/InAppWebView.swift | 13 + ios/Classes/InAppWebViewOptions.swift | 38 + ios/Classes/SwiftFlutterPlugin.swift | 104 +- ios/Storyboards/WebView.storyboard | 4 +- lib/flutter_inappbrowser.dart | 1030 +++++++++++------ pubspec.yaml | 4 +- 36 files changed, 3132 insertions(+), 1690 deletions(-) rename android/src/main/java/com/pichillilorenzo/flutter_inappbrowser/{chrome_custom_tabs => ChromeCustomTabs}/ChromeCustomTabsActivity.java (94%) rename android/src/main/java/com/pichillilorenzo/flutter_inappbrowser/{chrome_custom_tabs => ChromeCustomTabs}/ChromeCustomTabsOptions.java (85%) rename android/src/main/java/com/pichillilorenzo/flutter_inappbrowser/{chrome_custom_tabs => ChromeCustomTabs}/CustomTabActivityHelper.java (96%) rename android/src/main/java/com/pichillilorenzo/flutter_inappbrowser/{chrome_custom_tabs => ChromeCustomTabs}/CustomTabsHelper.java (97%) rename android/src/main/java/com/pichillilorenzo/flutter_inappbrowser/{chrome_custom_tabs => ChromeCustomTabs}/KeepAliveService.java (85%) rename android/src/main/java/com/pichillilorenzo/flutter_inappbrowser/{chrome_custom_tabs => ChromeCustomTabs}/ServiceConnection.java (94%) rename android/src/main/java/com/pichillilorenzo/flutter_inappbrowser/{chrome_custom_tabs => ChromeCustomTabs}/ServiceConnectionCallback.java (86%) create mode 100644 android/src/main/java/com/pichillilorenzo/flutter_inappbrowser/FlutterWebView.java create mode 100644 android/src/main/java/com/pichillilorenzo/flutter_inappbrowser/FlutterWebViewFactory.java create mode 100644 android/src/main/java/com/pichillilorenzo/flutter_inappbrowser/InAppBrowserActivity.java rename android/src/main/java/com/pichillilorenzo/flutter_inappbrowser/{InAppBrowserWebChromeClient.java => InAppWebView/InAppWebChromeClient.java} (57%) create mode 100644 android/src/main/java/com/pichillilorenzo/flutter_inappbrowser/InAppWebView/InAppWebView.java rename android/src/main/java/com/pichillilorenzo/flutter_inappbrowser/{InAppBrowserWebViewClient.java => InAppWebView/InAppWebViewClient.java} (77%) create mode 100644 android/src/main/java/com/pichillilorenzo/flutter_inappbrowser/InAppWebView/InAppWebViewOptions.java create mode 100644 android/src/main/java/com/pichillilorenzo/flutter_inappbrowser/Util.java delete mode 100644 android/src/main/java/com/pichillilorenzo/flutter_inappbrowser/WebViewActivity.java create mode 100644 ios/Classes/InAppWebView.swift create mode 100644 ios/Classes/InAppWebViewOptions.swift diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 638780df..354f7a5a 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -15,7 +15,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -35,8 +64,8 @@ - - + + @@ -44,11 +73,14 @@ - - + + - - + + + + + @@ -57,8 +89,8 @@ - - + + @@ -67,6 +99,29 @@ + + + + + + + + + + + + + + + + + + + + + + + @@ -78,36 +133,36 @@ - Client - LOAD_START_EVENT - loadstop - JSONO - closeDialog - LOAD_STOP_EVENT - com.pichillilorenzo.flutterwebview - flutter_webview - show - SELF - customscheme - EXIT - injectScriptCode - injectDeferredObject - sourceFile - hideUrlBar - InAppBrowser - presentationStyle - ### - inAppBrowserFallback - target - .assets - _blank - .html - close( - isOpened - javascript - header - localhost - /main.dart + isHi + isHidde + onWebViewCreated + WebViewCreatedCallback + MethodChannel + WebViewController + HashMap + String code + flutter_inappwebview + _closeServer + _startS + _throwIsAlreadyOpened + isHidden + shouldOverrideUrlLoading + toolbarTopFixedTitle + useChromeSafariBrowser + toolbat + onProgress + goBack + _controller + canGoBack + getOp + onLoadError + StatefulWidget + onLoadResource + useShouldOverrideUrlLoading + ): + InAppLocalhostServer + local + openWithSystemBrowser activity.getPreferences(0) @@ -147,20 +202,20 @@ - @@ -176,11 +231,6 @@ - - - - - @@ -202,8 +252,8 @@