From 1dfa6323c6c0703a4aa89ea553bfc7d13867bef9 Mon Sep 17 00:00:00 2001 From: pichillilorenzo Date: Mon, 11 Mar 2019 03:34:58 +0100 Subject: [PATCH] added support for iOS inline native WebView integrated in the flutter widget tree (#18, #45), fix #54 #38 #26 #32 #33 #29 #15 --- .idea/workspace.xml | 421 +++++++------ CHANGELOG.md | 10 + README.md | 33 +- android/build.gradle | 2 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../InAppWebView/InAppWebViewClient.java | 17 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- example/ios/Runner.xcodeproj/project.pbxproj | 4 +- example/lib/webview_example.screen.dart | 5 +- flutter_inappbrowser.iml | 2 +- .../InAppBrowserWebViewController.swift | 585 +----------------- ios/Classes/InAppWebView.swift | 136 +++- ios/Classes/SwiftFlutterPlugin.swift | 12 +- pubspec.yaml | 4 +- 14 files changed, 464 insertions(+), 771 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 5564f63f..7df95f0c 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -16,7 +16,19 @@ - + + + + + + + + + + + + + @@ -36,8 +48,8 @@ - - + + @@ -45,13 +57,31 @@ - - + + - - + + + + + + + + + + + + + + + + + + + + - + @@ -68,20 +98,6 @@ - assert( - sNotEmpty() - loadData - _valide - initialized - HashMap - headers - .cast - WebView - print - throw - InAppWeb - Boolean - [WebHistory.list] open Cannot laod _throwIsNotOpened @@ -98,6 +114,20 @@ initialData openData optionsType + InAppWebView + fromInAppBrowser + InAppWebViewController + _handleMethod + InAppBrowser + handlerTest + onLoadStart + distributionUrl + args.putIfAbsent('isData', () => false); + VERSIONING_SYSTEM + config.build_settings['SWIFT_VERSION'] + BUILD TARGET + InAppWebView { + AndroidView activity.getPreferences(0) @@ -132,26 +162,29 @@ - + @@ -159,7 +192,35 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + +