From bb3736c97bc2dd820aa6b9feb917ae969ba0a1ad Mon Sep 17 00:00:00 2001 From: 17351781990 <827990754@qq.com> Date: Mon, 23 Aug 2021 10:54:57 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E5=86=85=E5=AE=B9?= =?UTF-8?q?=E3=80=91=EF=BC=9A=E4=BF=AE=E6=94=B9readme=E9=87=8C=E9=9D=A2?= =?UTF-8?q?=E6=95=99=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 +------- ohos/README.md | 8 +------- ohos/entry/src/main/config.json | 2 +- .../java/com/zyao89/view/zweb/constants/ZWebConstant.java | 1 - 4 files changed, 3 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 526d162..a91e34e 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ public void onInitialize() { String MAIN_HTML = "xxx.html"; // 1. 创建配置文件,并带入主页 URL -ZWebConfig config = new ZWebConfig.Builder(ZWebConstant.MAIN_HTML_TEST) +ZWebConfig config = new ZWebConfig.Builder(ZWebConstant.MAIN_HTML) // 注册状态监听 .setOnStateListener(this) // 注册原生协议UI实现 @@ -105,12 +105,6 @@ public void onBackPressed(){ } // 分别实现其他生命周期传递 -@Override -protected void onPause(){ - mZWebInstance.onActivityPause(); - super.onPause(); -} - @Override protected void onActive() { mZWebInstance.onActivityResume(); diff --git a/ohos/README.md b/ohos/README.md index 526d162..a91e34e 100644 --- a/ohos/README.md +++ b/ohos/README.md @@ -57,7 +57,7 @@ public void onInitialize() { String MAIN_HTML = "xxx.html"; // 1. 创建配置文件,并带入主页 URL -ZWebConfig config = new ZWebConfig.Builder(ZWebConstant.MAIN_HTML_TEST) +ZWebConfig config = new ZWebConfig.Builder(ZWebConstant.MAIN_HTML) // 注册状态监听 .setOnStateListener(this) // 注册原生协议UI实现 @@ -105,12 +105,6 @@ public void onBackPressed(){ } // 分别实现其他生命周期传递 -@Override -protected void onPause(){ - mZWebInstance.onActivityPause(); - super.onPause(); -} - @Override protected void onActive() { mZWebInstance.onActivityResume(); diff --git a/ohos/entry/src/main/config.json b/ohos/entry/src/main/config.json index 66e07f2..cc01c93 100644 --- a/ohos/entry/src/main/config.json +++ b/ohos/entry/src/main/config.json @@ -1,6 +1,6 @@ { "app": { - "bundleName": "com.jaredrummler.htmlbuilder", + "bundleName": "com.zyao89.view", "vendor": "zyao89", "version": { "code": 1000000, diff --git a/ohos/z_webview/src/main/java/com/zyao89/view/zweb/constants/ZWebConstant.java b/ohos/z_webview/src/main/java/com/zyao89/view/zweb/constants/ZWebConstant.java index b5d564d..a11dee2 100644 --- a/ohos/z_webview/src/main/java/com/zyao89/view/zweb/constants/ZWebConstant.java +++ b/ohos/z_webview/src/main/java/com/zyao89/view/zweb/constants/ZWebConstant.java @@ -11,7 +11,6 @@ import com.zyao89.view.zweb.ResourceTable; */ public class ZWebConstant { public static final String MAIN_HTML = "https://com.zyao89.view/rawfile/index.html"; - public static final String MAIN_HTML_TEST = "file:///ohos_res/raw/index_test.html"; public static final int MAIN_FRAMEWORK = ResourceTable.Profile_zweb; -- Gitee