unwanted .tflite files in android build

Please provide the following:

  1. SDK Version: 37
  2. Platforms(Android/iOS/web/all): Andriod

I have a simple expo app which doesn’t use any Tensorflow.

when I build an Android app bundle, expo is adding two .tflite files in assets which accounts for 5.5 mb. I am also getting a suggestion from google play console to remove them.

Below is my assetBundlePatters from app.json which has only my required assets.

"assetBundlePatterns": [
  "assets/fonts/*",
  "assets/icon.png",
  "assets/splash.png"
]

How to get rid of these unwanted files in the app bundle to reduce the size?

This is the suggestion in google play console.

Hey @shrikarvk,

Those files are added by the expo-face-detector module. At the moment, you won’t be able to remove these from a Managed project’s production binary as the modules are automatically included.

If removing these files is necessary for you, you can use the Bare Workflow which will allow you to control which modules are bundled but there are some tradeoffs that you can read about here: Workflows - Expo Documentation

Cheers,
Adam

1 Like

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