From f3f0876f285c46b7e4357a03a978f6b4db2bb8fa Mon Sep 17 00:00:00 2001 From: pichillilorenzo Date: Tue, 12 Mar 2019 02:14:30 +0100 Subject: [PATCH] fix #56, some code cleanup --- .idea/vcs.xml | 1 + .idea/workspace.xml | 501 +++++++++--------- CHANGELOG.md | 7 +- README.md | 2 + .../flutter_inappbrowser/FlutterWebView.java | 12 +- .../InAppBrowserActivity.java | 31 +- .../InAppBrowserFlutterPlugin.java | 39 +- .../InAppWebView/InAppWebView.java | 20 + example/assets/index.html | 6 +- example/assets/page-1.html | 31 ++ example/assets/page-2.html | 31 ++ example/assets/page-3.html | 31 ++ example/ios/Runner.xcodeproj/project.pbxproj | 4 - example/lib/chrome_safari_example.screen.dart | 2 +- example/lib/inline_example.screen.dart | 17 +- example/lib/main.dart | 3 + example/lib/webview_example.screen.dart | 7 +- example/pubspec.yaml | 3 + flutter_inappbrowser.iml | 2 + ios/Classes/FlutterWebViewController.swift | 22 +- .../InAppBrowserWebViewController.swift | 12 +- ios/Classes/InAppWebView.swift | 15 +- ios/Classes/SwiftFlutterPlugin.swift | 271 +++------- pubspec.yaml | 2 +- 24 files changed, 558 insertions(+), 514 deletions(-) create mode 100644 example/assets/page-1.html create mode 100644 example/assets/page-2.html create mode 100644 example/assets/page-3.html diff --git a/.idea/vcs.xml b/.idea/vcs.xml index 94a25f7f4..c7434d0ce 100644 --- a/.idea/vcs.xml +++ b/.idea/vcs.xml @@ -2,5 +2,6 @@ + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml index ac4fdf884..2fe307376 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -15,13 +15,48 @@ + + + + + + - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -31,28 +66,37 @@ + + + + + + + + + + - - + + - - + + - - + + - - + + @@ -68,13 +112,6 @@ - takeS - Completer - args.putIfAbsent('isLocalFile', () => true); - args.putIfAbsent('isLocalFile', () => - Opens the - _isOpened - initialFile onBrowserCreated getUrl onScrollChanged @@ -98,6 +135,13 @@ AndroidView _uuidGenerator in the flutter + RELOAD + localhostServer + initialFile + loadFile + openFile + File + onExit activity.getPreferences(0) @@ -135,22 +179,27 @@ @@ -165,7 +214,6 @@ - @@ -206,6 +254,7 @@