Skip to content

Commit 57206dd

Browse files
committed
Update .gitignore to exclude new harmony package files, remove submodule entries from .gitmodules, and increment version in package.json to 10.34.1. Refactor build-profile.json5 for consistency and update PushyFileJSBundleProvider to handle optional chaining. Remove obsolete pushy.har file and adjust dependencies in oh-package.json5 for clarity.
1 parent 4e27d90 commit 57206dd

File tree

14 files changed

+107
-97
lines changed

14 files changed

+107
-97
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,8 @@ Example/testHotUpdate/harmony
5252
Example/testHotUpdate/android/app/.cxx
5353
Example/harmony_use_pushy/libs
5454
**/mcp.json
55+
56+
57+
harmony/package
58+
**/oh_modules
59+
harmony/pushy/.preview

.gitmodules

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,3 @@
44
[submodule "android/jni/HDiffPatch"]
55
path = android/jni/HDiffPatch
66
url = https://github.com/sisong/HDiffPatch.git
7-
[submodule "harmony/src/main/cpp/HDiffPatch"]
8-
path = harmony/src/main/cpp/HDiffPatch
9-
url = https://github.com/sisong/HDiffPatch.git
10-
[submodule "harmony/src/main/cpp/lzma"]
11-
path = harmony/src/main/cpp/lzma
12-
url = https://github.com/sisong/lzma.git
Lines changed: 40 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,49 @@
11
{
2-
"app": {
3-
"signingConfigs": [],
4-
"products": [
2+
app: {
3+
signingConfigs: [],
4+
products: [
55
{
6-
"name": "default",
7-
"signingConfig": "default",
8-
"compatibleSdkVersion": "5.0.0(12)",
9-
"runtimeOS": "HarmonyOS",
10-
"buildOption": {
11-
"strictMode": {
12-
"caseSensitiveCheck": true,
13-
"useNormalizedOHMUrl": true
14-
}
15-
}
16-
}
6+
name: 'default',
7+
signingConfig: 'default',
8+
compatibleSdkVersion: '5.0.0(12)',
9+
runtimeOS: 'HarmonyOS',
10+
buildOption: {
11+
strictMode: {
12+
caseSensitiveCheck: true,
13+
useNormalizedOHMUrl: true,
14+
},
15+
},
16+
},
1717
],
18-
"buildModeSet": [
18+
buildModeSet: [
1919
{
20-
"name": "debug",
20+
name: 'debug',
2121
},
2222
{
23-
"name": "release"
24-
}
25-
]
23+
name: 'release',
24+
},
25+
],
2626
},
27-
"modules": [
27+
modules: [
28+
{
29+
name: 'entry',
30+
srcPath: './entry',
31+
targets: [
32+
{
33+
name: 'default',
34+
applyToProducts: ['default'],
35+
},
36+
],
37+
},
2838
{
29-
"name": "entry",
30-
"srcPath": "./entry",
31-
"targets": [
39+
name: 'pushy',
40+
srcPath: '../../../harmony/pushy',
41+
targets: [
3242
{
33-
"name": "default",
34-
"applyToProducts": [
35-
"default"
36-
]
37-
}
38-
]
39-
}
40-
]
41-
}
43+
name: 'default',
44+
applyToProducts: ['default'],
45+
},
46+
],
47+
},
48+
],
49+
}

Example/harmony_use_pushy/harmony/entry/oh-package-lock.json5

Lines changed: 6 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
{
2-
"name": "entry",
3-
"version": "1.0.0",
4-
"description": "Please describe the basic information.",
5-
"main": "",
6-
"author": "",
7-
"license": "",
8-
"dependencies": {
9-
"@rnoh/react-native-openharmony": "0.72.38",
10-
"pushy": "file:../../node_modules/react-native-update/harmony/pushy.har",
11-
}
2+
name: 'entry',
3+
version: '1.0.0',
4+
description: 'Please describe the basic information.',
5+
main: '',
6+
author: '',
7+
license: '',
8+
dependencies: {
9+
'@rnoh/react-native-openharmony': '0.72.38',
10+
pushy: 'file:../../node_modules/react-native-update/harmony/pushy',
11+
},
1212
}
13-
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { appTasks } from '@ohos/hvigor-ohos-plugin';
1+
import {appTasks} from '@ohos/hvigor-ohos-plugin';
22

33
export default {
4-
system: appTasks, /* Built-in plugin of Hvigor. It cannot be modified. */
5-
plugins:[] /* Custom plugin to extend the functionality of Hvigor. */
6-
}
4+
system: appTasks /* Built-in plugin of Hvigor. It cannot be modified. */,
5+
plugins: [] /* Custom plugin to extend the functionality of Hvigor. */,
6+
};

harmony/pushy.har

-1.76 MB
Binary file not shown.

harmony/pushy/oh-package-lock.json5

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

harmony/pushy/oh-package.json5

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"license": "ISC",
2+
"license": "MIT",
33
"types": "",
44
"devDependencies": {},
55
"name": "pushy",
@@ -8,5 +8,6 @@
88
"version": "3.1.0-0.0.7",
99
"dependencies": {
1010
"@rnoh/react-native-openharmony":"^0.72.38"
11-
}
11+
},
12+
"modelVersion": "5.0.0"
1213
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../../android/jni/HDiffPatch

0 commit comments

Comments
 (0)