hello mrr @Kumaraswamy how are you? hope you fine.
i ask you before about this extension, about how you optmize size of the extension. anyway i just have a question how you convert mlkit-text-recognition
lib to dex file, hope you answare me, thank you
When you build extensions, there are 2 different formats of compiled code, one for companion (.dex) and one for building the APK (normal java .class).
To optimise the extension, you may only include the main .dex file in the extension's assets and load it dynamically using DexClassLoader. This way you use half the required space.
To obtain the .dex file from a .jar file, you can simply use D8 tools from Google. (You may also use proguard beforehand with custom rules).
if i work in lib for example thelib.aar
or thelib.jar
that is have alot of dependencies, should i convert all of them to one dex file?? and how can i convert all of them in one dex file manually??
Package them under a single .dex file, build your own wrapper library around those dependencies.
I have another question
Should I use D8 from Google and download it via Android Studio or is there another way?