Patched and namespaced builds of the Android Godot library.
This repo creates namespaced versions of godot-lib.template_release.aar with custom patches included.
The Java classes for the 3.x and 4.0-4.5 branches of godot are renamed to include the version number.
For example, a 3.x import becomes:
import org.godotengine.godotv3_x.FullScreenGodotApp;Each branch has an "overlay" folder which is applied on-top of the clone from the main Godot repo. Each overlay includes patches for:
- Loading game assets from a hard-coded path inside
/data/user/0/com.shipthis.go/files/assets - Adjustments to work with the 16 KB Google Play compatibility requirement.
- Forwarding of all log messages to a WebSocket handler.
- Adaptations to work with Play Feature Delivery.
- Adaptations to work with the namespace.
Add the ShipThis Godot library to your module's build.gradle.kts:
val godotVersion = "4.5"
val godotVersionDash = godotVersion.replace('.', '-')
val buildType = "debug" // or "release"
dependencies {
implementation(
"shipth.is:godot-lib-v$godotVersionDash:+:template-$buildType@aar"
)
}godotVersionmust match the Godot engine version your project targets.buildTypeshould align with your app’s build variant (debugorrelease).- The
+version selector always resolves to the latest compatible build for that Godot version.
MIT