forked from Tencent/Hippy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(ohos): ohos framework hippy engine && bundle loader * feat(ohos): bridge interface * feat(ohos): ohos framework type error * feat(ohos): fix resManager null
- Loading branch information
1 parent
862345a
commit 068976c
Showing
17 changed files
with
854 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
framework/ohos/src/main/ets/hippy_framework/HippyEngineContextImpl.ets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import { TimeMonitor } from '../support/utils/TimeMonitor'; | ||
import { VfsManager } from '../vfs/VfsManager'; | ||
import { HippyBridgeManager } from './bridge/HippyBridgeManager'; | ||
import { DomManager } from './connector/DomManager'; | ||
import { JsDriver } from './connector/JsDriver'; | ||
import { HippyEngineContext } from './HippyEngineContext'; | ||
import { HippyGlobalConfigs } from './HippyGlobalConfigs'; | ||
import { HippyModuleManager } from './modules/HippyModuleManager'; | ||
|
||
|
||
export class HippyEngineContextImpl implements HippyEngineContext { | ||
private mGlobalConfigs: HippyGlobalConfigs; | ||
|
||
// TODO | ||
// private mDevtoolsManager: DevtoolsManager; | ||
|
||
|
||
public constructor( | ||
domManager: DomManager, | ||
globalConfigs: HippyGlobalConfigs) { | ||
this.mGlobalConfigs = globalConfigs; | ||
} | ||
|
||
getComponentName(): string { | ||
throw new Error('Method not implemented.'); | ||
} | ||
|
||
getVfsManager(): VfsManager { | ||
throw new Error('Method not implemented.'); | ||
} | ||
|
||
getJsDriver(): JsDriver { | ||
throw new Error('Method not implemented.'); | ||
} | ||
|
||
getMonitor(): TimeMonitor { | ||
throw new Error('Method not implemented.'); | ||
} | ||
|
||
getGlobalConfigs(): HippyGlobalConfigs { | ||
return this.mGlobalConfigs; | ||
} | ||
|
||
getModuleManager(): HippyModuleManager { | ||
throw new Error('Method not implemented.'); | ||
} | ||
|
||
getBridgeManager(): HippyBridgeManager { | ||
throw new Error('Method not implemented.'); | ||
} | ||
} |
Oops, something went wrong.