Giter VIP home page Giter VIP logo

Comments (5)

kozw avatar kozw commented on June 18, 2024 1

Published flutter_sodium 0.1.9 to pub.dev

Enjoy

from flutter_sodium.

kozw avatar kozw commented on June 18, 2024

Thanks for reporting. I've been looking into it, and AndroidManifest.xml usually doesn't contain any sdk version info for flutter plugins, but I might be mistaken.

Question: how do I reproduce this very message where the READ_PHONE_STATE is implied from the flutter_sodium package?

from flutter_sodium.

posxposy avatar posxposy commented on June 18, 2024

and AndroidManifest.xml usually doesn't contain any sdk version info for flutter plugins

Yeah, AndroidManifest.xml in the logs means a place, where permission was implicitly added :)
And the version is coming from build.gradle

Question: how do I reproduce this very message where the READ_PHONE_STATE is implied from the flutter_sodium package?

You can find that logs in \build\app\outputs\logs\manifest-merger-debug-report.txt after building an app with flutter_sodium added as a dependency.
Also, if you try to deploy a built apk (or bundle) to the Play Market, it will ask you for the privacy policy:
Your APK or Android App Bundle is using permissions that require a privacy policy: (android.permission.READ_PHONE_STATE).

Hope it helps :)

from flutter_sodium.

kozw avatar kozw commented on June 18, 2024

Thanks, found it.

Once I add the following minSdkVersion to the build.gradle of the plugin, the permission is indeed no longer added. Any preference for the minSdkVersion? Looks like other plugins use 16.

defaultConfig {
  minSdkVersion 16
}

from flutter_sodium.

posxposy avatar posxposy commented on June 18, 2024

Thank you for the fix!
I think minSdkVersion 16 is a good choice. As for today, it covers 99.8% of android devices:

image

from flutter_sodium.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.