[SDK 45] android block permissions warning looped
See original GitHub issueSummary
Now we can remove permissions from our apps with android.blockedPermissions
, that’s fantastic. but what isn’t fantastic is that with it came also a loop in the warning » android: block-permissions: No permissions provided
making it be spammed in the terminal.
Managed or bare workflow? If you have ios/
or android/
directories in your project, the answer is bare!
managed
What platform(s) does this occur on?
Android
SDK Version (managed workflow only)
45
Environment
expo-env-info 1.0.3 environment info: System: OS: Linux 5.10 Arch Linux Shell: 5.8.1 - /usr/sbin/zsh Binaries: Node: 16.15.0 - /usr/bin/node Yarn: 1.22.18 - /usr/bin/yarn npm: 8.8.0 - ~/ictio/app/node_modules/.bin/npm npmPackages: expo: ^45.0.0 => 45.0.0 react: 17.0.2 => 17.0.2 react-native: 0.68.1 => 0.68.1 npmGlobalPackages: eas-cli: 0.52.0 expo-cli: 5.4.3 Expo Workflow: managed
Reproducible demo
Create a new project, add a config plugin (such as expo-image-picker
), leave android.blockedPermissions
empty or don’t define it. You should be able to see the message at least 2 times when initiating a build, and an infinite number of times when running the app with expo start
.
repro on upgraded project from SDK 44 repro on clean initialized project on SDK 45
Issue Analytics
- State:
- Created a year ago
- Reactions:3
- Comments:18 (3 by maintainers)
I’m occurring the same issue.
I can’t reproduce this with
expo-cli@5.4.7
and this is resolved in@expo/config-plugins@4.1.5
with this PR which removed the warning entirely.If you are experiencing this in your project then it is likely that you have a version of
@expo/config-plugins
installed that is lower than@expo/config-plugins@4.1.5
. You can runnpm why @expo/config-plugins
to see where that comes from.