Skip to content

Commit

Permalink
docs: update CHANGELOG.md for breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
CaiJingLong committed Sep 21, 2023
1 parent 3665c37 commit 90c653d
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ that can be found in the LICENSE file. -->

***Breaking changes for permission behavior***

Now, users need to ensure they have the access permissions through the
following means before using the API to access resources.
Two ways:
Methods do not implicitly call for permission requests anymore.
User must follow the below methods to ensure permissions were granted:

1. `PhotoManager.requestPermissionExtend()` and the result is `PermissionState.authorized` or `PermissionState.limited`.
2. `PhotoManager.setIgnorePermissionCheck(true)` to ignore permission check and use other permission plugin.
1. `PhotoManager.requestPermissionExtend()`, verify if the result is
`PermissionState.authorized` or `PermissionState.limited`.
2. `PhotoManager.setIgnorePermissionCheck(true)`, ignoring permission checks,
handle permission with other mechanisms.

## 2.7.1

Expand Down Expand Up @@ -54,8 +55,8 @@ Two ways:

- Support `CustomFilter` for more filter options. (#901)
- Add two new static methods for `PhotoManager`:
- `getAssetCount` for getting assets count.
- `getAssetListRange` for getting assets between start and end.
- `getAssetCount` for getting assets count.
- `getAssetListRange` for getting assets between start and end.

## 2.5.2

Expand Down Expand Up @@ -136,8 +137,8 @@ Two ways:

- Introduce `AssetPathEntity.assetCountAsync` getter,
which improves the speed when loading paths mainly on iOS, also:
- Deprecate `AssetPathEntity.assetCount`.
- Remove `FilterOptionGroup.containsEmptyAlbum`.
- Deprecate `AssetPathEntity.assetCount`.
- Remove `FilterOptionGroup.containsEmptyAlbum`.

### Improvements

Expand Down Expand Up @@ -561,7 +562,7 @@ and applied multiple ### Fixes which make this plugin as the most solid ever.
but at the same time user have to bear the risks corresponding to the permission).
- Support clean file cache.
- Experimental
- Preload image (Use `PhotoCachingManager` api.)
- Preload image (Use `PhotoCachingManager` api.)
- Add `OrderOption` as sort condition. The option default value is order by create date desc;
- Support icloud asset progress.

Expand Down Expand Up @@ -624,14 +625,14 @@ and applied multiple ### Fixes which make this plugin as the most solid ever.
- Create AssetEntity with id.
- Create AssetPathEntity from id.
- Only iOS
- Create folder or album.
- Remove assets in album.
- Delete folder or album.
- Favorite asset.
- Create folder or album.
- Remove assets in album.
- Delete folder or album.
- Favorite asset.
- Only android
- move asset to another path.
- Remove all non-existing rows.
- add `relativePath` for android.
- move asset to another path.
- Remove all non-existing rows.
- add `relativePath` for android.

### Improvements

Expand Down

0 comments on commit 90c653d

Please sign in to comment.