|
1 year ago | |
---|---|---|
.. | ||
build | 1 year ago | |
.build_version | 1 year ago | |
README.md | 1 year ago |
Android needs a debug keystore file to install to devices and distribute non-release APKs. Android Studio would have generated on and stored it in ~/.android
on Linux and macOS / C:\Users\<user>\.android\
on Windows.
In case it's not already generated, run:
keytool -keyalg RSA -genkeypair -alias androiddebugkey -keypass android -keystore debug.keystore -storepass android -dname "CN=Android Debug,O=Android,C=US" -validity 9999 -deststoretype pkcs12
This generates a keystore with keystore user androiddebugkey
and keystore password android
.
Godot does not respect $JAVA_HOME
, so we have to manually link JDK before building Android .
sudo ln -sfn /opt/homebrew/opt/openjdk@17/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-17.jdk
We rely on a custom fork of the godot-play-games-services
Android plugin for Google Play Games integration, with tweaks to the source code to better integrate with our codebase.
To enable the plugin, set up Google Play Games Services. The rough steps to follow on the guide are:
When the application ID is generated, fill it in on the "Godot Play Games Services" dock menu.
After that, we can build the debug / release version of the application.
For Play Games Services to work on a debug build (using a debug keystore for signing), we need to include the emails being used for testing as Play Games Services testers.
Go to Google Play Console → Play Games Services → Setup and management → Testers and add any emails to be used for testing.