apache / cordova-plugin-file

Apache Cordova File Plugin
https://cordova.apache.org/
Apache License 2.0
740 stars 757 forks source link

Android: restore getWritePermission, but check can have permission #617

Open ath0mas opened 4 months ago

ath0mas commented 4 months ago

Platforms affected

Android

Motivation and Context

Follow-up to #608 and my comment with question and analysis on it.

Description

Revert getWritePermission to have consistent code for it. And make it never been called, not through a wrong return value of true inside hasWritePermission, but with a dedicated canHaveWritePermission function. This one is the place to compare current version with API 33.

Testing

Checklist