kuikly-ohos-compile-plugin
v0.0.1-alpha.5
Published
kuikly ohos compiler plugin
Downloads
92
Readme
kuikly-ohos-compile-plugin
Introduction
Plugins can be used to unified-compile with Android studio and DevEco studio.
Getting started
- Add dependencies ohosProject -> .ohpmrc
registry=https://registry.npmjs.org/ohosProject -> hvigor/hvigor-config.json5
...
"dependencies": {
...
"kuikly-ohos-compile-plugin": "latest"
...
},
...- Configure local.properties If you need to use this plugin, please configure the local.properties in the ohos project root directory with the appropriate information first
# kuiklyCompilePlugin
# REQUIRED Parameters
kuikly.projectPath=Your kuikly project root path
kuikly.moduleName=Your kuikly module name
kuikly.ohosGradleSettings=settings.ohos.gradle
# OPTIONAL Parameters
kuikly.soPath=Your so product path(Relative path to the Ohos project root directory, the default is entry/libs/arm64-v8a)
kuikly.headerPath=Your header product path(Relative path to the Ohos project root directory, the default is entry/src/main/cpp)
kuikly.compilePluginEnabled=Whether the kuikly compile plugin is enabled during build(true or false, the default is true)
# kuiklyCopyAssetsPlugin
# REQUIRED Parameters
kuikly.assetsPath=`Your assets absolute path`- Configure plugin parameters
ohosProject -> entry/hvigorfile.ts
import { kuiklyCompilePlugin, kuiklyCopyAssetsPlugin } from 'kuikly-ohos-compile-plugin';
export default {
...
plugins:[kuiklyCompilePlugin(), kuiklyCopyAssetsPlugin()] /* Custom plugin to extend the functionality of Hvigor. */
...
}
