日历ide适配升级

Signed-off-by: tianlanqing <1692438977@qq.com>
This commit is contained in:
tianlanqing
2023-10-26 12:01:25 +08:00
parent 29bc4b573e
commit acb850a64c
14 changed files with 1085 additions and 82 deletions
+28 -4
View File
@@ -29,6 +29,18 @@
desc="流水线编译,不手动修改"
name="gradlew"
type="filename"/>
<filteritem
desc="hvigor配置文件,DevEco Studio自动生成,不手动修改"
name="hvigorw"
type="filename"/>
<filteritem
desc="hvigor配置文件,DevEco Studio自动生成,不手动修改"
name="hvigorw.bat"
type="filename"/>
<filteritem
desc="hvigor配置文件,DevEco Studio自动生成,不手动修改"
name="hvigor/hvigor-wrapper.js"
type="filename"/>
</filefilter>
<filefilter
desc="Filters for resources files policies"
@@ -77,10 +89,22 @@
desc="hvigor配置文件,DevEco Studio自动生成,不手动修改"
name="*.json5.ftl"
type="filename"/>
<filteritem
desc="流水线编译,不手动修改"
name="gradlew"
type="filename"/>
<filteritem
desc="流水线编译,不手动修改"
name="gradlew"
type="filename"/>
<filteritem
desc="hvigor配置文件,DevEco Studio自动生成,不手动修改"
name="hvigorw"
type="filename"/>
<filteritem
desc="hvigor配置文件,DevEco Studio自动生成,不手动修改"
name="hvigorw.bat"
type="filename"/>
<filteritem
desc="hvigor配置文件,DevEco Studio自动生成,不手动修改"
name="hvigor/hvigor-wrapper.js"
type="filename"/>
</filefilter>
</filefilterlist>
</oatconfig>
+2 -2
View File
@@ -14,12 +14,12 @@
}
}
],
"compileSdkVersion": 10,
"compatibleSdkVersion": 9,
"products": [
{
"name": "default",
"signingConfig": "release",
"compileSdkVersion": 10,
"compatibleSdkVersion": 9
}
]
},
@@ -1,14 +1,10 @@
{
"license": "ISC",
"types": "",
"name": "@ohos/common",
"description": "a npm package which contains arkUI2.0 page",
"ohos": {
"org": ""
},
"version": "1.0.0",
"main": "index.ets",
"types": "",
"repository": {},
"license": "ISC",
"dependencies": {},
"type": "module"
}
"version": "1.0.0",
"dependencies": {}
}
@@ -1,18 +1,14 @@
{
"license": "ISC",
"types": "",
"name": "@ohos/datamanager",
"description": "a npm package which contains arkUI2.0 page",
"ohos": {
"org": ""
},
"version": "1.0.0",
"main": "index.ets",
"types": "",
"repository": {},
"license": "ISC",
"version": "1.0.0",
"dependencies": {
"@ohos/common": "file:../common",
"@ohos/datastructure": "file:../datastructure",
"@ohos/rrule": "file:../rrule"
},
"type": "module"
}
"@ohos/rrule": "file:../rrule",
"@ohos/common": "file:../common"
}
}
@@ -1,18 +1,14 @@
{
"license": "ISC",
"types": "",
"name": "@ohos/dataprovider",
"description": "a npm package which contains arkUI2.0 page",
"ohos": {
"org": ""
},
"version": "1.0.0",
"main": "index.ets",
"types": "",
"repository": {},
"license": "ISC",
"version": "1.0.0",
"dependencies": {
"@ohos/common": "file:../common",
"@ohos/datastructure": "file:../datastructure",
"@ohos/datamanager": "file:../datamanager",
"@ohos/datastructure": "file:../datastructure"
},
"type": "module"
}
"@ohos/common": "file:../common"
}
}
@@ -1,14 +1,10 @@
{
"license": "ISC",
"types": "",
"name": "@ohos/datastructure",
"description": "a npm package which contains arkUI2.0 page",
"ohos": {
"org": ""
},
"version": "1.0.0",
"main": "index.ets",
"types": "",
"repository": {},
"license": "ISC",
"dependencies": {},
"type": "module"
}
"version": "1.0.0",
"dependencies": {}
}
@@ -1,17 +1,14 @@
{
"license": "ISC",
"types": "",
"name": "@ohos/entry",
"description": "a npm package which contains arkUI2.0 page",
"ohos": {
"org": ""
},
"version": "1.0.0",
"main": "index.ets",
"types": "",
"repository": {},
"license": "ISC",
"version": "1.0.0",
"dependencies": {
"@ohos/common": "file:../common",
"@ohos/datamanager": "file:../datamanager",
"@ohos/dataprovider": "file:../dataprovider"
"@ohos/dataprovider": "file:../dataprovider",
"@ohos/common": "file:../common"
}
}
}
+18
View File
@@ -0,0 +1,18 @@
{
"hvigorVersion": "3.0.2",
"dependencies": {
"@ohos/hvigor-ohos-plugin": "3.0.2"
},
"execution": {
// "daemon": true, /* Enable daemon compilation. Default: true */
// "incremental": true, /* Enable incremental compilation. Default: true */
// "parallel": true, /* Enable parallel compilation. Default: true */
// "typeCheck": false, /* Enable typeCheck. Default: false */
},
"logging": {
// "level": "info" /* Define the log level. Value: [ "debug" | "info" | "warn" | "error" ]. Default: "info" */
},
"debugging": {
// "stacktrace": false /* Disable stacktrace compilation. Default: false */
}
}
File diff suppressed because one or more lines are too long
+48
View File
@@ -0,0 +1,48 @@
#!/bin/bash
# ----------------------------------------------------------------------------
# Hvigor startup script, version 1.0.0
#
# Required ENV vars:
# ------------------
# NODE_HOME - location of a Node home dir
# or
# Add /usr/local/nodejs/bin to the PATH environment variable
# ----------------------------------------------------------------------------
HVIGOR_APP_HOME="`pwd -P`"
HVIGOR_WRAPPER_SCRIPT=${HVIGOR_APP_HOME}/hvigor/hvigor-wrapper.js
warn() {
echo ""
echo -e "\033[1;33m`date '+[%Y-%m-%d %H:%M:%S]'`$@\033[0m"
}
error() {
echo ""
echo -e "\033[1;31m`date '+[%Y-%m-%d %H:%M:%S]'`$@\033[0m"
}
fail() {
error "$@"
exit 1
}
# Determine node to start hvigor wrapper script
if [ -n "${NODE_HOME}" ];then
EXECUTABLE_NODE="${NODE_HOME}/bin/node"
if [ ! -x "$EXECUTABLE_NODE" ];then
fail "ERROR: NODE_HOME is set to an invalid directory,check $NODE_HOME\n\nPlease set NODE_HOME in your environment to the location where your nodejs installed"
fi
else
EXECUTABLE_NODE="node"
which ${EXECUTABLE_NODE} > /dev/null 2>&1 || fail "ERROR: NODE_HOME is not set and not 'node' command found in your path"
fi
# Check hvigor wrapper script
if [ ! -r "$HVIGOR_WRAPPER_SCRIPT" ];then
fail "ERROR: Couldn't find hvigor/hvigor-wrapper.js in ${HVIGOR_APP_HOME}"
fi
# start hvigor-wrapper script
exec "${EXECUTABLE_NODE}" \
"${HVIGOR_WRAPPER_SCRIPT}" "$@"
+64
View File
@@ -0,0 +1,64 @@
@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@rem Hvigor startup script for Windows
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
set WRAPPER_MODULE_PATH=%APP_HOME%\hvigor\hvigor-wrapper.js
set NODE_EXE=node.exe
goto start
:start
@rem Find node.exe
if defined NODE_HOME goto findNodeFromNodeHome
%NODE_EXE% --version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto execute
echo.
echo ERROR: NODE_HOME is not set and no 'node' command could be found in your PATH.
echo.
echo Please set the NODE_HOME variable in your environment to match the
echo location of your NodeJs installation.
goto fail
:findNodeFromNodeHome
set NODE_HOME=%NODE_HOME:"=%
set NODE_EXE_PATH=%NODE_HOME%/%NODE_EXE%
if exist "%NODE_EXE_PATH%" goto execute
echo.
echo ERROR: NODE_HOME is not set and no 'node' command could be found in your PATH.
echo.
echo Please set the NODE_HOME variable in your environment to match the
echo location of your NodeJs installation.
goto fail
:execute
@rem Execute hvigor
"%NODE_EXE%" "%WRAPPER_MODULE_PATH%" %*
if "%ERRORLEVEL%" == "0" goto hvigorwEnd
:fail
exit /b 1
:hvigorwEnd
if "%OS%" == "Windows_NT" endlocal
:end
+11
View File
@@ -0,0 +1,11 @@
{
"license": "ISC",
"devDependencies": {
"@ohos/hypium": "1.0.6"
},
"name": "CalendarData",
"description": "example description should more than 30",
"repository": {},
"version": "1.0.0",
"dependencies": {}
}
-18
View File
@@ -1,18 +0,0 @@
{
"name": "CalendarData",
"version": "1.0.0",
"ohos": {
"org": "huawei",
"buildTool": "hvigor",
"directoryLevel": "project"
},
"description": "example description",
"repository": {},
"license": "ISC",
"dependencies": {
"hypium": "^1.0.0",
"@ohos/hvigor": "1.4.0",
"@ohos/hvigor-ohos-plugin": "1.4.0",
"@ohos/hypium": "1.0.3"
}
}
@@ -1,16 +1,12 @@
{
"license": "ISC",
"types": "",
"name": "@ohos/rrule",
"description": "a npm package which contains arkUI2.0 page",
"ohos": {
"org": ""
},
"version": "1.0.0",
"main": "index.ets",
"types": "",
"repository": {},
"license": "ISC",
"version": "1.0.0",
"dependencies": {
"@ohos/common": "file:../common"
},
"type": "module"
}
}
}