natsuk4ze / gal

How to Save Image or Video to Photo Gallery in Flutter
https://pub.dev/packages/gal
BSD 3-Clause "New" or "Revised" License
115 stars 18 forks source link

Next Breaking Change Candidates #210

Open natsuk4ze opened 9 months ago

natsuk4ze commented 9 months ago

1. Upgrade min iOS version to 12

With the Xcode update, Flutter's minimum IOS support version has been upgraded to 12. This plugin should follow suit.

2. Upgrade min Android sdk version to 21

The min sdk version supported by this plugin is 21. However, the actual build.gradle is listed at 19. https://github.com/natsuk4ze/gal/blob/fe9369b9eb5ac60f38648fcf2c8119489dd25bc4/android/build.gradle#L26

This is a result of putting off the breaking change. Currently, this plugin can be compiled with Android sdk 19. However, there is no guarantee that all features will work properly under sdk version 21, and we do not intend to support these in the future. For more clarity, we should upgrade the minSdk in build.gradle to 21.

3. Rename hasAccess and requestAccess

The names hasPermission and requestPermission may be easier to understand.

4. Update GalException.fromCode to GalException.fromPlatformException