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

Fix android build #249

Merged
merged 17 commits into from
Jul 28, 2021
Merged

Fix android build #249

merged 17 commits into from
Jul 28, 2021

Conversation

chippmann
Copy link
Contributor

This fixes the android build by using the newer d8 tool rather than the deprecated dx tool.
This also has the advantage of smaller resulting jars, as the unnecessary class files are not bundled into it.
Just the classes.dex file (and the service file in the case of main-dex.jar).

One config field was added to the godot config block: androidCompileSdkDir. As the android.jar contained in that dir, is needed by the d8 tool. The path to that dir depends on the target compilation sdk version. In most cases this is the most recent sdk version. Corresponding documentation was added.

Please test this especially on windows, as I'm unsure if the gradle task createMainDexJar is properly configured for windows.

piiertho and others added 5 commits July 26, 2021 17:53
This part created default value instances and destroyed them immediately.
IIRC this part of the code was from the time we stored the actual default value instance in the registration code rather than having a provider like we do now
@chippmann chippmann merged commit 82907dd into master Jul 28, 2021
@chippmann chippmann deleted the bugfix/fix_android_build branch July 28, 2021 07:13
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

Successfully merging this pull request may close these issues.

3 participants