How to remove unnecessary dependencies from managed workflow?

Hi I am using managed workflow. How do I remove dependencies that expo adds on time of building the app, When I decompiled apk, I saw many packages that I really don’t use like BioMetric, ads (facebook/google) and many more.

Expo Diagnostics -
Expo CLI 3.22.3 environment info:
System:
OS: Linux 4.15 Ubuntu 20.04 LTS (Focal Fossa)
Shell: 5.0.16 - /bin/bash
Binaries:
Node: 12.16.1 - ~/.nvm/versions/node/v12.16.1/bin/node
Yarn: 1.22.4 - /usr/bin/yarn
npm: 6.13.4 - ~/.nvm/versions/node/v12.16.1/bin/npm
npmPackages:
@expo/webpack-config: ^0.12.16 => 0.12.20
expo: ^38.0.0 => 38.0.8
react: 16.11.0 => 16.11.0
react-dom: 16.11.0 => 16.11.0
react-native: https://github.com/expo/react-native/archive/sdk-38.0.2.tar.gz => 0.62.2
react-native-web: ~0.11.7 => 0.11.7

1 Like

Hi

That is one of the downsides of using the managed workflow.

There is experimental support for removing some dependencies on Android. See here:

1 Like

Hey @shahidcodes,

In addition to @wodin’s wonderful answer I’d like to add a link to the section that discusses a potential alternative to the Managed workflow called the Bare workflow which gives you the ability to select which modules you want bundled in. https://docs.expo.io/introduction/managed-vs-bare/#bare-workflow Just be sure to read all the differences so you understand the trade-offs between Managed and Bare.

Cheers,
Adam

1 Like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.