From c72877367cbd160d9db43386e01bda8f11426710 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E8=B5=9B=E8=B5=9B?= <15868191030@163.com> Date: Tue, 6 Jul 2021 16:28:31 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=BC=BA=E5=B0=91?= =?UTF-8?q?=E7=9A=84=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 ++ fungamerefresh/src/main/config.json | 28 +++++++++++++++++++ .../main/resources/base/element/string.json | 8 ++++++ 3 files changed, 38 insertions(+) create mode 100644 fungamerefresh/src/main/config.json create mode 100644 fungamerefresh/src/main/resources/base/element/string.json diff --git a/.gitignore b/.gitignore index 37a4eb8..78a8007 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,5 @@ .externalNativeBuild /entry/.preview .cxx +upload.gradle +upload1.gradle \ No newline at end of file diff --git a/fungamerefresh/src/main/config.json b/fungamerefresh/src/main/config.json new file mode 100644 index 0000000..7c4bab7 --- /dev/null +++ b/fungamerefresh/src/main/config.json @@ -0,0 +1,28 @@ +{ + "app": { + "bundleName": "com.hitomi.fungamerefreshdemo", + "vendor": "hitomi", + "version": { + "code": 1000000, + "name": "1.0" + }, + "apiVersion": { + "compatible": 5, + "target": 5, + "releaseType": "Beta1" + } + }, + "deviceConfig": {}, + "module": { + "package": "com.hitomi.refresh", + "deviceType": [ + "phone" + ], + "distro": { + "deliveryWithInstall": true, + "moduleName": "fungamerefresh", + "moduleType": "har", + "installationFree": true + } + } +} \ No newline at end of file diff --git a/fungamerefresh/src/main/resources/base/element/string.json b/fungamerefresh/src/main/resources/base/element/string.json new file mode 100644 index 0000000..872bdf9 --- /dev/null +++ b/fungamerefresh/src/main/resources/base/element/string.json @@ -0,0 +1,8 @@ +{ + "string": [ + { + "name": "app_name", + "value": "fungamerefresh" + } + ] +} -- Gitee From c6067b938709cb71b04737341da37b4ef744168c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E8=B5=9B=E8=B5=9B?= <15868191030@163.com> Date: Tue, 6 Jul 2021 16:57:34 +0800 Subject: [PATCH 2/2] =?UTF-8?q?pref:=E4=B8=8A=E4=BC=A0har=E5=88=B0maven?= =?UTF-8?q?=EF=BC=8C=E4=BF=AE=E6=94=B9readme=E9=87=8C=E7=9A=84=E5=AF=BC?= =?UTF-8?q?=E5=85=A5=E9=A1=B9=E7=9B=AE=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 28 ++++++++++++++++------------ entry/build.gradle | 2 +- 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index e0d63dd..82d89b7 100644 --- a/README.md +++ b/README.md @@ -7,19 +7,23 @@ # 导入项目 - 添加har包到libs文件夹内 -har包在entry的libs下 -在entry的gradle内添加如下代码 -```gradle -implementation fileTree(dir: 'libs', include: ['*.jar', '*.har']) -``` + 通过library生成har包,添加har包到libs文件夹内 + 在entry的gradle内添加如下代码 -方法二: -将library导入到自己项目中 -在entry的gradle内添加如下代码 -```gradle - implementation project(':fungamerefresh') -``` + ```gradle + implementation fileTree(dir: 'libs', include: ['*.jar', '*.har']) + ``` + + 方法二: + + ```gradle + allprojects{ + repositories{ + mavenCentral() + } + } + implementation 'io.openharmony.tpc.thirdlib:FunGameRefresh:1.0.0' + ``` # 用法 `XML` init: diff --git a/entry/build.gradle b/entry/build.gradle index e39509e..7a8db0f 100644 --- a/entry/build.gradle +++ b/entry/build.gradle @@ -18,7 +18,7 @@ ohos { dependencies { implementation fileTree(dir: 'libs', include: ['*.jar', '*.har']) - implementation project(':fungamerefresh') + implementation 'io.openharmony.tpc.thirdlib:FunGameRefresh:1.0.0' testImplementation 'junit:junit:4.13' ohosTestImplementation 'com.huawei.ohos.testkit:runner:1.0.0.100' } -- Gitee