diff --git a/build-profile.json5 b/build-profile.json5 index ff56c69..a66c77a 100644 --- a/build-profile.json5 +++ b/build-profile.json5 @@ -3,15 +3,14 @@ "signingConfigs": [ { "name": "default", - "type": "HarmonyOS", "material": { - "certpath": "C:\\Users\\lixiao\\.ohos\\config\\auto_debug_assistedDrive_com.duolun.myapplication_260086000249443288.cer", - "storePassword": "0000001B67EB2DAE4AE9F16DAD55EC4F056F51AC43C48F8B1FA1FD1D1FC0A0043838E9C8CC4EDED212AD2A", + "certpath": "C:\\Users\\lixiao\\.ohos\\config\\openharmony\\auto_ohos_default_assistedDrive_com.duolun.myapplication.cer", + "storePassword": "0000001A78AD688CBC1DBFD79BF9FC921E8E1D6E1090159805708C96F8E01D4030A64244CF8703DF8818", "keyAlias": "debugKey", - "keyPassword": "0000001B5E84CD6F55A7E74A671F6B5BA5120AD37E2054A028BBB4E640C37DB774114EFEB98BB322509AAF", - "profile": "C:\\Users\\lixiao\\.ohos\\config\\auto_debug_assistedDrive_com.duolun.myapplication_260086000249443288.p7b", + "keyPassword": "0000001A8E470AB8DD0263B1F5F7A0703880A31C127A26A78D5526164C5AD31D6E416B2A700555E56DCC", + "profile": "C:\\Users\\lixiao\\.ohos\\config\\openharmony\\auto_ohos_default_assistedDrive_com.duolun.myapplication.p7b", "signAlg": "SHA256withECDSA", - "storeFile": "C:\\Users\\lixiao\\.ohos\\config\\auto_debug_assistedDrive_com.duolun.myapplication_260086000249443288.p12" + "storeFile": "C:\\Users\\lixiao\\.ohos\\config\\openharmony\\auto_ohos_default_assistedDrive_com.duolun.myapplication.p12" } } ], diff --git a/entry/build-profile.json5 b/entry/build-profile.json5 index 77be69a..9162cdf 100644 --- a/entry/build-profile.json5 +++ b/entry/build-profile.json5 @@ -9,7 +9,6 @@ "targets": [ { "name": "default", - "runtimeOS": "HarmonyOS" }, { "name": "ohosTest", diff --git a/entry/src/main/ets/utils/udp/AvtiveUdp.ets b/entry/src/main/ets/utils/udp/AvtiveUdp.ets index 6ef71a4..e6926d8 100644 --- a/entry/src/main/ets/utils/udp/AvtiveUdp.ets +++ b/entry/src/main/ets/utils/udp/AvtiveUdp.ets @@ -5,6 +5,7 @@ import { LogHelper } from '../LogHelper' import promptAction from '@ohos.promptAction' import deviceManager from '@ohos.distributedHardware.deviceManager'; + function int2byte(integer: number) { let buffer = new Uint8Array(new ArrayBuffer(4)) for (let i = 0; i < 4.; i++) { diff --git a/entry/src/main/module.json5 b/entry/src/main/module.json5 index b6073e1..9d2f6ef 100644 --- a/entry/src/main/module.json5 +++ b/entry/src/main/module.json5 @@ -5,7 +5,7 @@ "description": "$string:module_desc", "mainElement": "EntryAbility", "deviceTypes": [ - "phone", + "default", "tablet" ], "deliveryWithInstall": true, diff --git a/entry/src/ohosTest/module.json5 b/entry/src/ohosTest/module.json5 index c031340..4fc9701 100644 --- a/entry/src/ohosTest/module.json5 +++ b/entry/src/ohosTest/module.json5 @@ -5,7 +5,7 @@ "description": "$string:module_test_desc", "mainElement": "TestAbility", "deviceTypes": [ - "phone", + "default", "tablet" ], "deliveryWithInstall": true,