From f680396dab3af88b31e01ccf936bf49595026121 Mon Sep 17 00:00:00 2001 From: sufulu <1760473022@qq.com> Date: Wed, 16 May 2018 16:03:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E5=85=A5js=E5=92=8C=E8=B0=83=E7=94=A8?= =?UTF-8?q?js=E6=96=B9=E6=B3=95=E5=AE=8C=E6=88=90=20=E4=BB=A5=E5=8F=8Awebv?= =?UTF-8?q?iew=E7=9A=84=E5=AE=89=E5=85=A8=E6=BC=8F=E6=B4=9E=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 8 ++ .idea/misc.xml | 67 ---------- README.md | 3 +- app/proguard-rules.pro | 2 +- .../main/java/com/prim/web/MainActivity.java | 48 +++++-- primweb-core/proguard-rules.pro | 2 +- .../java/com/prim/primweb/core/PrimWeb.java | 91 +++++++++---- .../core/client/MyAndroidWebChromeClient.java | 120 ++++++++++++++++++ .../core/client/MyX5WebChromeClient.java | 89 +++++++++++++ .../core/jsinterface/SafeJsInterface.java | 40 +++++- .../core/setting/DefaultWebSetting.java | 7 + .../prim/primweb/core/utils/PrimWebUtils.java | 7 + .../primweb/core/webview/IAgentWebView.java | 10 ++ .../core/webview/PrimAgentWebView.java | 112 +++++++++++++--- .../primweb/core/webview/X5AgentWebView.java | 40 ++++++ 15 files changed, 523 insertions(+), 123 deletions(-) create mode 100644 primweb-core/src/main/java/com/prim/primweb/core/client/MyAndroidWebChromeClient.java create mode 100644 primweb-core/src/main/java/com/prim/primweb/core/client/MyX5WebChromeClient.java diff --git a/.gitignore b/.gitignore index 39fb081..e54a36f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,17 @@ *.iml +*.apk .gradle /local.properties /.idea/workspace.xml /.idea/libraries +/.idea/compiler.xml +/.idea/gradle.xml +/.idea/runConfigurations.xml +/.idea/misc.xml +/.idea/modules.xml + .DS_Store /build /captures .externalNativeBuild +/.idea/markdown-navigator.xml diff --git a/.idea/misc.xml b/.idea/misc.xml index 5e16501..3963879 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,72 +1,5 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -