Increase in app size on adding mlkit in flutter

Viewed 1070

I recently added mlkit in my app for smile detection and then .abb size increased from 48mb to 185mb. How can i reduce this size...

2 Answers

Are you using a flutter plugin or a direct ML Kit dependency. You could try use app bundle to include only one arch in your app, or use dynamic feature to download the feature. If you could depends on Google Play Service, you could use the unbundled version which is only hundreds of KB in size: https://developers.google.com/ml-kit/vision/face-detection/android

Related