update sdk12

Signed-off-by: zhouhongli2023 <zhouhongli5@huawei.com>
This commit is contained in:
zhouhongli2023
2024-12-26 15:27:28 +08:00
parent 8072d2bf01
commit 5810f226c0
7 changed files with 16 additions and 142 deletions
+1 -1
View File
@@ -18,7 +18,7 @@
{
"name": "default",
"signingConfig": "debug",
"compileSdkVersion": 10,
"compileSdkVersion": 12,
"compatibleSdkVersion": 9
}
]
+11 -9
View File
@@ -2,13 +2,11 @@
"module": {
"name": "entry",
"type": "entry",
"srcEntrance": "./ets/Application/MyAbilityStage.ts",
"srcEntry": "./ets/Application/MyAbilityStage.ts",
"description": "$string:entry_description",
"mainElement": "com.ohos.mms.MainAbility",
"deviceTypes": [
"default",
"tablet",
"car"
"default"
],
"deliveryWithInstall": true,
"installationFree": false,
@@ -22,7 +20,7 @@
"abilities": [
{
"name": "com.ohos.mms.MainAbility",
"srcEntrance": "./ets/MainAbility/MainAbility.ts",
"srcEntry": "./ets/MainAbility/MainAbility.ts",
"description": "$string:mainability_description",
"icon": "$media:smsmms",
"label": "$string:messages",
@@ -60,15 +58,18 @@
},
{
"name": "ohos.permission.READ_CONTACTS",
"reason": "$string:permission_read_write_contacts"
"reason": "$string:permission_read_write_contacts",
"usedScene": {}
},
{
"name": "ohos.permission.READ_MESSAGES",
"reason": "$string:permission_read_write_messages"
"reason": "$string:permission_read_write_messages",
"usedScene": {}
},
{
"name": "ohos.permission.SEND_MESSAGES",
"reason": "$string:permission_send_messages"
"reason": "$string:permission_send_messages",
"usedScene": {}
},
{
"name": "ohos.permission.SET_TELEPHONY_STATE",
@@ -80,7 +81,8 @@
},
{
"name": "ohos.permission.RECEIVE_SMS",
"reason": "$string:permission_receive_message_service"
"reason": "$string:permission_receive_message_service",
"usedScene": {}
},
{
"name": "ohos.permission.PLACE_CALL",
+3 -5
View File
@@ -1,8 +1,6 @@
{
"hvigorVersion": "3.0.2",
"dependencies": {
"@ohos/hvigor-ohos-plugin": "3.0.2"
},
"modelVersion": "5.0.1",
"dependencies": {},
"execution": {
// "daemon": true, /* Enable daemon compilation. Default: true */
// "incremental": true, /* Enable incremental compilation. Default: true */
@@ -15,4 +13,4 @@
"debugging": {
// "stacktrace": false /* Disable stacktrace compilation. Default: false */
}
}
}
File diff suppressed because one or more lines are too long
-48
View File
@@ -1,48 +0,0 @@
#!/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
@@ -1,64 +0,0 @@
@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
+1
View File
@@ -1,4 +1,5 @@
{
"modelVersion": "5.0.1",
"license": "ISC",
"devDependencies": {
"@ohos/hypium": "1.0.6"