Extra permissions added to Android manifest because of this plugin
bhumkong opened this issue · comments
Describe the bug
Changes to build.gradle
file in version 2.0.0 of this plugin cause extra permissions appear in Android app manifest on build when this package is installed. It's READ_PHONE_STATE
and WRITE_EXTERNAL_STORAGE
permissions. manifest-merger-debug-report.txt file says it's because this package has a targetSdkVersion < 4. I guess you need to specify targetSdkVersion
in build.gradle of this package to fix this bug.
To Reproduce
Steps to reproduce the behavior:
- Start with a Flutter app that does not require these permissions
- Add this plugin v2.0.0 and build the app again
- Now this app requests the aforementioned permissions. You can check it by opening app info on a device or by examining the final manifest file generated on build.
Expected behavior
No new permissions added to an app.
Downgrading to 1.1.4 fixes the issue.