!4612 【Sample】Chat升级API12

Merge pull request !4612 from YangXin/Chat
This commit is contained in:
openharmony_ci 2024-07-19 09:12:36 +00:00 committed by Gitee
commit 2596c9dfb7
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 26 additions and 12 deletions

View File

@ -138,9 +138,9 @@ url: 'pages/SearchPage' })。
### 约束与限制
1.本示例已适配API version 10版本SDKSDK版本号(API Version 10 Release),镜像版本号(4.0Release)。
1.本示例已适配API version 12版本SDKSDK版本号(5.0.0.32),镜像版本号(5.0.0.32)。
2.本示例需要使用DevEco Studio 版本号(4.0Release)及以上版本才可编译运行。
2.本示例需要使用DevEco Studio 版本号(4.1.3.700)版本才可编译运行。
### 下载

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2022-2023 Huawei Device Co., Ltd.
* Copyright (c) 2022-2024 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@ -19,14 +19,13 @@
{
"name": "default",
"signingConfig": "default",
"compileSdkVersion": 10,
"compatibleSdkVersion": 10,
"targetSdkVersion": 10,
"compileSdkVersion": 12,
"compatibleSdkVersion": 12,
"targetSdkVersion": 12,
"runtimeOS": "OpenHarmony"
}
],
"signingConfigs": [
]
"signingConfigs": []
},
"modules": [
{

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2023 Huawei Device Co., Ltd.
* Copyright (c) 2023-2024 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@ -147,7 +147,7 @@ class JsonObject {
return jsonObj.MessageList;
}
private bufferToString(buffer: ArrayBuffer): string {
private bufferToString(buffer: ArrayBufferLike): string {
Logger.info(TAG, 'bufferToString');
let textDecoder = util.TextDecoder.create('utf-8', {
ignoreBOM: true

View File

@ -1,6 +1,21 @@
/*
* Copyright (c) 2024 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
{
"hvigorVersion": "3.0.2",
"hvigorVersion": "4.1.2",
"dependencies": {
"@ohos/hvigor-ohos-plugin": "3.0.2"
"@ohos/hvigor-ohos-plugin": "4.1.2"
}
}