Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cant disable multidex #1681

Open
farfromrefug opened this issue Oct 4, 2021 · 3 comments
Open

cant disable multidex #1681

farfromrefug opened this issue Oct 4, 2021 · 3 comments

Comments

@farfromrefug
Copy link
Contributor

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

@triniwiz
Copy link
Member

triniwiz commented Oct 4, 2021

Another way would be to using it via reflection

@farfromrefug
Copy link
Contributor Author

@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

@triniwiz
Copy link
Member

triniwiz commented Oct 4, 2021

Ah looks like preprocessor it is

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants