-
Hello, I know that Is it a bug ? is there anyway I can use cloud Text Recognition without these 15MB Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
It is likely a bug as the on-device ML stuff was removed from react-native-firebase (by me, so likely my oversight) Something about these: react-native-firebase/packages/ml/android/build.gradle Lines 95 to 101 in 83a7382 Not sure which one is bringing down the local models but you could experiment by bisecting a removal of them and making a PR of the result after discovering which ones are no longer necessary? |
Beta Was this translation helpful? Give feedback.
-
The After removing both lines, apk size was reduces by 10MB I created a PR removing them, as face detection is part of ML Kit as on-device model |
Beta Was this translation helpful? Give feedback.
-
face detection had image labeling has 4mb react-native-firebase/packages/ml/android/build.gradle Lines 98 to 99 in 83a7382 I'm not sure if these two lines are necessary for But I'm removing them from my app. And mentioning it here so you have an idea about them @mikehardy 👌 |
Beta Was this translation helpful? Give feedback.
The
.tflite
files were removed when removing these two linesreact-native-firebase/packages/ml/android/build.gradle
Line 97 in 83a7382
react-native-firebase/packages/ml/android/build.gradle
Line 100 in 83a7382
After removing both lines, apk size was reduces by 10MB
I created a PR removing them, as face detection is part of ML Kit as on-device model