kuikly-ohos-compile-plugin-snapshot
v0.0.1-aplha.1
Published
kuikly ohos compiler plugin
Readme
kuikly-ohos-compile-plugin
Introduction
Plugins can be used to unified-compile with Android studio and DevEco studio.
Getting started
- Add dependencies
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
soPath=Your so product path(Relative path to the Ohos project root directory, the default is entry/libs/arm64-v8a)
headerPath=Your header product path(Relative path to the Ohos project root directory, the default is entry/src/main/cpp)
# 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. */
...
}
