android icon indicating copy to clipboard operation
android copied to clipboard

cant disable multidex

Open farfromrefug opened this issue 4 years ago • 3 comments
trafficstars

because of that line https://github.com/NativeScript/android-runtime/blob/master/build-artifacts/project-template-gradle/app/src/main/java/com/tns/NativeScriptApplication.java#L32 a user cant decide to disable multidex if possible (would make app smaller). The reason is that without multidex enabled that line would not compile. I tried a few things but it is a bit tricky to do preprocessor through gradle 7.0 (plugins not working anymore). The idea would be to use a preprocessor to get rid of the line at compilation if multidex is disabled

farfromrefug avatar Oct 04 '21 10:10 farfromrefug

Another way would be to using it via reflection

triniwiz avatar Oct 04 '21 10:10 triniwiz

@triniwiz we cant ! it is mentioned in the doc to NOT use reflection before MultiDex.install is called https://developer.android.com/studio/build/multidex

farfromrefug avatar Oct 04 '21 10:10 farfromrefug

Ah looks like preprocessor it is

triniwiz avatar Oct 04 '21 10:10 triniwiz