I would like to use the Huawei ML kit to implement the text recognition service in my Cordova project (Android). However, I only want to use this service and not all the other services offered by the kit. Currently, I am using the ML Kit plugin for Cordova, but when I generate the application, it takes about 150kb because it includes the whole kit.
cordova plugin add @hmscore/cordova-plugin-hms-ml
Text Recognition:
text-recognition-guide
I would like to reduce the size of the application by removing the services from the kit that I am not using and only include the text recognition service in the final application. Does anyone know how I can achieve this? I would like to know if there is any way to customize the ML Kit plugin for Cordova or if there is any other solution to achieve this goal.
I would appreciate any advice or suggestions on how I can reduce the size of the application and use only the text recognition service of the Huawei ML Kit in my Cordova project.
Environment
- Platform: [Cordova]
- Kit: [ML kit]
- Kit Version [3.5.0-301]
- OS Version [Android 9]