1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-08 12:40:44 +00:00

Merge pull request #106447 from kojurohan42/instant-build

Add support for exporting to Google Play Instant via Google Play Instant Export Option
This commit is contained in:
Rémi Verschelde
2025-06-12 23:32:38 +02:00
5 changed files with 50 additions and 3 deletions

View File

@@ -37,6 +37,10 @@ dependencies {
implementation "androidx.fragment:fragment:$versions.fragmentVersion"
implementation "androidx.core:core-splashscreen:$versions.splashscreenVersion"
if (isInstantApp()) {
implementation "com.google.android.gms:play-services-instantapps:$versions.instantAppsVersion"
}
if (rootProject.findProject(":lib")) {
implementation project(":lib")
} else if (rootProject.findProject(":godot:lib")) {
@@ -90,7 +94,7 @@ android {
jvmTarget = versions.javaVersion
}
assetPacks = [":assetPackInstallTime"]
assetPacks = isInstantApp() ? [] : [":assetPackInstallTime"]
namespace = 'com.godot.game'

View File

@@ -15,7 +15,8 @@ ext.versions = [
// Also update 'platform/android/detect.py#get_ndk_version()' when this is updated.
ndkVersion : '28.1.13356709',
splashscreenVersion: '1.0.1',
openxrVendorsVersion: '4.0.0-stable'
openxrVendorsVersion: '4.0.0-stable',
instantAppsVersion: '17.0.0'
]
@@ -379,3 +380,8 @@ ext.getAddonsDirectory = { ->
String addonsDirectory = project.hasProperty("addons_directory") ? project.property("addons_directory") : ""
return addonsDirectory
}
ext.isInstantApp = { ->
String instantApp = project.hasProperty("play_instant_app") ? project.property("play_instant_app") : ""
return Boolean.parseBoolean(instantApp)
}