RateMyApp icon indicating copy to clipboard operation
RateMyApp copied to clipboard

Extra permissions added to Android manifest because of this plugin

Open anton-m-py opened this issue 3 years ago • 1 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:

  1. Start with a Flutter app that does not require these permissions
  2. Add this plugin v2.0.0 and build the app again
  3. 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.

anton-m-py avatar Jul 17 '23 14:07 anton-m-py

Downgrading to 1.1.4 fixes the issue.

anton-m-py avatar Jul 17 '23 14:07 anton-m-py