From 0c49b45b0199e21ec6dcd8c758fcbb59ce33d4b2 Mon Sep 17 00:00:00 2001 From: pichillilorenzo Date: Thu, 14 Mar 2019 21:59:13 +0100 Subject: [PATCH] moved json serialization for JavaScriptBridgeInterface to dart side, fix #64, fix #46 --- .idea/workspace.xml | 145 +++++---- android/build.gradle | 1 - .../flutter_inappbrowser/FlutterWebView.java | 2 + .../JavaScriptBridgeInterface.java | 8 +- example/assets/index.html | 1 + example/lib/inline_example.screen.dart | 25 +- ios/Classes/InAppWebView.swift | 7 +- ios/Classes/JsonSerializer.swift | 284 ------------------ lib/flutter_inappbrowser.dart | 22 +- 9 files changed, 130 insertions(+), 365 deletions(-) delete mode 100644 ios/Classes/JsonSerializer.swift diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 22dc6f32..d235d503 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -15,30 +15,24 @@ - - - - + - - + - + - - + - @@ -56,39 +50,41 @@ - + - + + + - - + + - - + + - + - + @@ -109,7 +105,7 @@ - + @@ -119,10 +115,25 @@ + + + + + + + + + + + + - - + + + + + @@ -130,8 +141,8 @@ - - + + @@ -147,10 +158,6 @@ - initialData - openData - optionsType - InAppWebView fromInAppBrowser InAppWebViewController InAppBrowser @@ -175,8 +182,12 @@ onExit _handleMethod javaScriptHandlersMap - JavaScriptHandlerCallback onConsoleM + return this + return await + onCallJsHandler + JavaScriptHandlerCallback + ListenerCallback activity.getPreferences(0) @@ -230,11 +241,11 @@ @@ -249,6 +260,7 @@ + @@ -295,7 +307,6 @@ - @@ -446,8 +457,8 @@ - - + + @@ -456,7 +467,7 @@ - + @@ -464,7 +475,7 @@ - + @@ -489,13 +500,6 @@