Skip to content

Commit 4255ce8

Browse files
committed
fix(harmony): update harmony sidebar
1 parent 34b2e36 commit 4255ce8

File tree

8 files changed

+52
-46
lines changed

8 files changed

+52
-46
lines changed

docs/harmony/c-api-css.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Harmony CSS 属性支持
2+
title: Harmony-CPP CSS 属性支持
33
---
44

55
:::info

docs/harmony/c-api.md

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Taro 鸿蒙插件安装和使用
2+
title: Harmony-CPP 插件安装和使用
33
---
44

55
:::info
@@ -248,41 +248,3 @@ eventCenter?.on('__taroPluginEtsMethodsTrigger', (option: IEtsMethodsOptions) =>
248248
```
249249

250250
> 未实现的 API 可以通过监听 `__taroNotSupport` 事件自定义实现。
251-
252-
## 常见问题
253-
254-
### **ERROR: Failed to get ModuleInfo properties 'meta.pkgPath'**
255-
256-
本地可能存在部分混淆导致 IDE 无法正确解析依赖,需要检查 `build-profile.json5``obfuscation-rules.txt` 等文件中是否开启混淆配置,需要关闭后清理 IDE 缓存重新编译。
257-
258-
```diff
259-
- -enable-property-obfuscation
260-
- -enable-toplevel-obfuscation
261-
- -enable-filename-obfuscation
262-
- -enable-export-obfuscation
263-
```
264-
265-
### **ERROR: Cannot resolved import statement**
266-
267-
本地执行 library 编译时,启用 `useNormalizedOHMUrl` 配置会导致外部依赖无法解析,建议在 library 模块中使用 `useNormalizedOHMUrl: false` 或者移除该配置。
268-
269-
### **ERROR: Duplicated files found in module default**
270-
271-
不使用核心库切换到使用核心库时可能会出现该问题,需要清理 build-profile.json5 文件中关于 so 包的配置项。
272-
273-
```diff
274-
{
275-
"apiType": "stageMode",
276-
"buildOption": {
277-
- "externalNativeOptions": {
278-
- "path": "./src/main/cpp/CMakeLists.txt",
279-
- "arguments": "-DCMAKE_JOB_POOL_COMPILE:STRING=compile -DCMAKE_JOB_POOL_LINK:STRING=link -DCMAKE_JOB_POOLS:STRING=compile=8;link=8",
280-
- "cppFlags": "",
281-
- "abiFilters": [
282-
- "arm64-v8a"
283-
- ]
284-
- }
285-
},
286-
...
287-
}
288-
```

docs/harmony/hybrid.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Harmony Hybrid 方案
2+
title: Hybrid 容器方案
33
---
44

55
:::info

docs/harmony/lazy/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: 长列表组件使用教程
2+
title: Harmony 长列表使用教程
33
---
44

55
:::info

docs/harmony/lazy/reuse.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: 长列表组件节点复用
2+
title: Harmony 长列表节点复用
33
---
44

55
:::info

docs/harmony/troubleshooting.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
title: 常见问题
3+
---
4+
5+
### **ERROR: Failed to get ModuleInfo properties 'meta.pkgPath'**
6+
7+
本地可能存在部分混淆导致 IDE 无法正确解析依赖,需要检查 `build-profile.json5``obfuscation-rules.txt` 等文件中是否开启混淆配置,需要关闭后清理 IDE 缓存重新编译。
8+
9+
```diff
10+
- -enable-property-obfuscation
11+
- -enable-toplevel-obfuscation
12+
- -enable-filename-obfuscation
13+
- -enable-export-obfuscation
14+
```
15+
16+
### **ERROR: Cannot resolved import statement**
17+
18+
本地执行 library 编译时,启用 `useNormalizedOHMUrl` 配置会导致外部依赖无法解析,建议在 library 模块中使用 `useNormalizedOHMUrl: false` 或者移除该配置。
19+
20+
### **ERROR: Duplicated files found in module default**
21+
22+
不使用核心库切换到使用核心库时可能会出现该问题,需要清理 build-profile.json5 文件中关于 so 包的配置项。
23+
24+
```diff
25+
{
26+
"apiType": "stageMode",
27+
"buildOption": {
28+
- "externalNativeOptions": {
29+
- "path": "./src/main/cpp/CMakeLists.txt",
30+
- "arguments": "-DCMAKE_JOB_POOL_COMPILE:STRING=compile -DCMAKE_JOB_POOL_LINK:STRING=link -DCMAKE_JOB_POOLS:STRING=compile=8;link=8",
31+
- "cppFlags": "",
32+
- "abiFilters": [
33+
- "arm64-v8a"
34+
- ]
35+
- }
36+
},
37+
...
38+
}
39+
```

docs/react-native-harmony.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: OpenHarmony React Native 开发流程
2+
title: React Native 方案
33
---
44

55
:::tip Taro v4.0.0-beta.36+ 开始支持

sidebars.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,17 @@ module.exports = {
7777
{
7878
label: 'React Native',
7979
type: 'category',
80-
items: ['react-native', 'react-native-remind','react-native-harmony'],
80+
items: ['react-native', 'react-native-remind'],
8181
},
8282
{
8383
label: '鸿蒙 & OpenHarmony',
8484
type: 'category',
85-
items: ['harmony/index', 'harmony/c-api', 'harmony/hybrid', 'harmony/c-api-css', 'harmony/lazy/index', 'harmony/lazy/reuse'],
85+
items: ['harmony/index', 'harmony/c-api', 'harmony/c-api-css', 'harmony/lazy/index', 'harmony/lazy/reuse', 'harmony/troubleshooting'],
86+
},
87+
{
88+
label: 'OpenHarmony 更多方案',
89+
type: 'category',
90+
items: ['react-native-harmony', 'harmony/hybrid'],
8691
},
8792
],
8893
进阶指南: [

0 commit comments

Comments
 (0)