feat: add minimal HarmonyOS standard project shell

This commit is contained in:
OpenClaw committed 2026-03-09 17:13:12 +08:00
1 parent 8b6e24fa61
commit 6c99ae75f6
11 files changed
+154

No files matched your search

@@ -0,0 +1,18 @@
import UIAbility from '@ohos.app.ability.UIAbility';
import window from '@ohos.window';
import hilog from '@ohos.hilog';
const DOMAIN = 0xFF00;
const TAG = 'EntryAbility';
export default class EntryAbility extends UIAbility {
onWindowStageCreate(windowStage: window.WindowStage): void {
windowStage.loadContent('pages/ShellRootPage', (err) => {
if (err.code) {
hilog.error(DOMAIN, TAG, 'Failed to load ShellRootPage: %{public}s', JSON.stringify(err));
return;
}
hilog.info(DOMAIN, TAG, 'ShellRootPage loaded');
});
}
}