diff --git a/en/release-notes/changelogs/OpenHarmony_4.0.9.5/changelogs-distributeddatamgr.md b/en/release-notes/changelogs/OpenHarmony_4.0.9.5/changelogs-distributeddatamgr.md new file mode 100644 index 0000000000000000000000000000000000000000..335caec7c2344892f9f0ea47db0363272120424a --- /dev/null +++ b/en/release-notes/changelogs/OpenHarmony_4.0.9.5/changelogs-distributeddatamgr.md @@ -0,0 +1,213 @@ + +# Distributed Data Management Subsystem Changelog + +## cl.distributeddatamgr.1 Change of int (*close)(OH_Cursor *cursor) in OH_Cursor Struct to int (\*destroy)(OH_Cursor \*cursor) + +**Change Impact** + +This change is incompatible with earlier versions. The function pointer name is changed from **close** to **destroy**. The input parameters and return values remain unchanged. + +**Key API/Component Changes** + +Before change: + + ```ts + int (*close)(OH_Cursor *cursor); + ``` + +After change: + + ```ts + int (*destroy)(OH_Cursor *cursor); + ``` + +**Adaptation Guide** +Example: + +Code before change: + +``` +cursor->close(cursor); +``` + +Code after change: + +``` +cursor->destroy(cursor); +``` + +## cl.distributeddatamgr.2 Change of int (\*destroyPredicates)(OH_Predicates \*predicates) in OH_Predicates Struct to int (*destroy)(OH_Predicates *predicates) + +**Change Impact** + +This change is incompatible with earlier versions. The function pointer name is changed from **destroyPredicates** to **destroy**. The input parameters and return values remain unchanged. + +**Key API/Component Changes** + +Before change: + + ```ts +int (*destroyPredicates)(OH_Predicates *predicates); + ``` + +After change: + + ```ts +int (*destroy)(OH_Predicates *predicates); + ``` + +**Adaptation Guide** +Example: + +Code before change: + +``` +predicates->destroyPredicates(predicates); +``` + +Code after change: + +``` +predicates->destroy(predicates); +``` + +## cl.distributeddatamgr.3 Change of int (\*destroyValueObject)(OH_VObject \*valueObject) in OH_VObject Struct to int (\*destroy)(OH_VObject \*valueObject) + +**Change Impact** + +This change is incompatible with earlier versions. The function pointer name is changed from **destroyValueObject** to **destroy**. The input parameters and return values remain unchanged. + +**Key API/Component Changes** + +Before change: + + ```ts +int (*destroyValueObject)(OH_VObject *valueObject); + ``` + +After change: + + ```ts +int (*destroy)(OH_VObject *valueObject); + ``` + +**Adaptation Guide** +Example: + +Code before change: + +``` +valueObject->destroyValueObject(valueObject); +``` + +Code after change: + +``` +valueObject->destroy(valueObject); +``` + +## cl.distributeddatamgr.4 Change of int (\*destroyValuesBucket)(OH_VBucket \*bucket) in OH_VBucket Struct to int (\*destroy)(OH_VBucket \*bucket) + +**Change Impact** + +This change is incompatible with earlier versions. The function pointer name is changed from **destroyValuesBucket** to **destroy**. The input parameters and return values remain unchanged. + +**Key API/Component Changes** + +Before change: + + ```ts +int (*destroyValuesBucket)(OH_VBucket *bucket); + ``` + +After change: + + ```ts +int (*destroy)(OH_VBucket *bucket); + ``` + +**Adaptation Guide** +Example: + +Code before change: + +``` +valueBucket->destroyValuesBucket(valueBucket); +``` + +Code after change: + +``` + valueBucket->destroy(valueBucket); +``` + +## cl.distributeddatamgr.5 Change of OH_Rdb_Config Struct Member Variables + +**Change Impact** + +The changes are incompatible with earlier versions.
The type of **securityLevel** is changed from **enum OH_Rdb_SecurityLevel** to **in**.
The member variable **path** is deleted.
The member variables **selfSize**, **dataBaseDir**, **storeName**, **bundleName**, and **moduleName** are added. + +**Key API/Component Changes** + +OH_Rdb_Config before change: + + ```ts +typedef struct { + const char *path; + bool isEncrypt; + enum OH_Rdb_SecurityLevel securityLevel; +} OH_Rdb_Config; + ``` + +OH_Rdb_Config after change: + + ```ts +typedef struct { + int selfSize; + const char *dataBaseDir; + const char *storeName; + const char *bundleName; + const char *moduleName; + bool isEncrypt; + int securityLevel; +} OH_Rdb_Config; + ``` + +**Adaptation Guide** +When creating an RDB store with **OH_Rdb_Config**, you need to pass in the bundle name and module name. + +## cl.distributeddatamgr.6 Change of const char *path in OH_Rdb_DeleteStore() to const OH_Rdb_Config *config + +**Change Impact** + +This change is incompatible with earlier versions. The input parameter is changed from **const char *path** to **const OH_Rdb_Config *config**. + +**Key API/Component Changes** + +OH_Rdb_DeleteStore before change: + + ```ts +int OH_Rdb_DeleteStore(const char *path); + ``` + +OH_Rdb_DeleteStore after change: + + ```ts +int OH_Rdb_DeleteStore(const OH_Rdb_Config *config); + ``` + +**Adaptation Guide** + +Example: + +Code before change: + +``` +OH_Rdb_DeleteStore("") +``` + +Code after change: + +``` +OH_Rdb_DeleteStore(config) +``` diff --git a/en/release-notes/changelogs/OpenHarmony_4.0.9.5/changelogs-filemanagement.md b/en/release-notes/changelogs/OpenHarmony_4.0.9.5/changelogs-filemanagement.md new file mode 100644 index 0000000000000000000000000000000000000000..e56252a2767fe44e23a92e6eaf036e7a472c00cd --- /dev/null +++ b/en/release-notes/changelogs/OpenHarmony_4.0.9.5/changelogs-filemanagement.md @@ -0,0 +1,22 @@ +# File Management Subsystem Changelog +## c1.filemanager.1 Change of the fileAccess Module +The **fileAccess** module will no longer support operations for obtaining thumbnails and media assets. + +**Change Impact** +1. Deleted **getThumbnail()**. +2. Deleted the **FILEKEY** of image and audio options. + +**Key API/Component Changes** +Deleted APIs: + +| Class | API | +| -------------- | ------------------------------------------------------------ | +| fileAccessHelper | getThumbnail(uri: string, size: image.Size): Promise;| +| fileAccessHelper | getThumbnail(uri: string, size: image.Size, callback: AsyncCallback): void;| + +Deleted options: +| Enum| Deleted Key Value| +| -------- | ---- | +| FileKey | DURATION = 'duration' | +| FileKey | WIDTH = 'width' | +| FileKey | HEIGHT = 'height' | diff --git a/en/release-notes/changelogs/OpenHarmony_4.0.9.5/changelogs-wifiManager.md b/en/release-notes/changelogs/OpenHarmony_4.0.9.5/changelogs-wifiManager.md new file mode 100644 index 0000000000000000000000000000000000000000..59f2abf1eaadcf49d644a52b117c02b83a039084 --- /dev/null +++ b/en/release-notes/changelogs/OpenHarmony_4.0.9.5/changelogs-wifiManager.md @@ -0,0 +1,100 @@ +# Wi-Fi Subsystem Changelog + +# cl.wifi.1 Change of the Name of the API for Obtaining Wi-Fi Scan Result +The name of the API for obtaining Wi-Fi scan result is changed in API version 10 Beta1 and then changed to the names used in API version 9 release. + +**Change Impact** + +The JS API name needs to be adapted for applications developed based on earlier versions. Otherwise, relevant functions will be affected. + +**Key API/Component Changes** + +- Involved API: + + getScanInfoList(): Array; + +- Before change: + +```js +getScanInfoList(): Array; +``` + +- After change: + +```js +getScanResults(): Array; +getScanResultsSync(): Array; +``` + +**Adaptation Guide** + +Example: +- Call **getScanResults**. +```js +function getScanResultsPromise() { + let methodName = `${tag} getScanResultsPromise` + wifiManager.getScanResults((err, data) => { + if (err) { + showToastE(`${methodName} failed ${JSON.stringify(err)}`) + return + } + if (data == null || data.length == 0) { + showToast(`${methodName} end data is null`) + return; + } + }) +} +``` +- Call **getScanResultsSync**. +```js +function getScanResultsSync(): Array { + let methodName = `${tag} getScanResultsSync` + try { + return wifiManager.getScanResultsSync(); + } catch (error) { + showToastE(`${methodName} failed ${JSON.stringify(error)}`) + } + return Array(); +} +``` + +# cl.wifi.2 Change of Wi-Fi P2P APIs +The names of P2P APIs are changed in API version 10 Beta1 and then changed to the names used in API version 9 release. + +**Change Impact** + +The JS API name needs to be adapted for applications developed based on earlier versions. Otherwise, relevant functions will be affected. + +**Key API/Component Changes** + +- Added APIs + +| API| Description| +|------|---------| +| **function** updateNetwork(config: WifiDeviceConfig): number; | Updates the added hotspot configuration information. | +| **function** disableNetwork(netId: number): **void**; | Disables the added hotspot configuration. | +| **function** removeAllNetwork(): **void**; | Deletes all hotspot configurations. | +| **function** removeDevice(id: number): **void**; | Deletes configuration of a single hotspot. | +| **function** getStations(): Array; | Obtains information about devices connected to this hotspot. | +| **function** createGroup(config: WifiP2PConfig): **void**; | Creates a P2P group. | +| **function** removeGroup(): **void**; | Removes a P2P group. | +| **function** startDiscoverDevices(): **void**; | Starts P2P scan. | +| **function** stopDiscoverDevices(): **void**; | Stops P2P scan. | +| **function** deletePersistentGroup(netId: number): **void**; | Deletes the persistent P2P group with a specified network ID. | +| **function** setDeviceName(devName: string): **void**; | Sets the P2P device name. | + +- Deprecated APIs + +| API |Description | +| ------------- |-------------------------------------------------------- | +| **function** updateDeviceConfig(config: WifiDeviceConfig): number; | Updates the added hotspot configuration information. | +| **function** disableDeviceConfig(networkId: number): **void**; | Disables the added hotspot configuration. | +| **function** removeAllDeviceConfigs(): **void**; | Deletes all hotspot configurations. | +| **function** removeDeviceConfig(networkId: number): **void**; | Deletes configuration of a single hotspot. | +| **function** getHotspotStations(): Array; | Obtains information about devices connected to this hotspot. | +| **function** createP2pGroup(config: WifiP2PConfig): **void**; | Creates a P2P group. | +| **function** removeP2pGroup(): **void**; | Removes a P2P group. | +| **function** startDiscoverP2pDevices(): **void**; | Starts P2P scan. | +| **function** stopDiscoverP2pDevices(): **void**; | Stops P2P scan. | +| **function** deletePersistentP2pGroup(netId: number): **void**; | Deletes the persistent P2P group with a specified network ID. | +| **function** setP2pDeviceName(devName: string): **void**; | Sets the P2P device name. |