Support VIEW intents on Android. (#1799)

* Add Drop file event support for android.

* Updated MIME type configuration and intent filter generation.

* "supportedMimeTypes" => "mimeType"

* `mimeType` -> `accept-file-intent`
This commit is contained in:
Mihai Alexandru
2024-06-16 23:29:25 +00:00
committed by GitHub
parent 593f4fa52c
commit 0e0dd0b5a2
2 changed files with 11 additions and 0 deletions

View File

@@ -493,6 +493,7 @@ class AndroidPlatform extends PlatformTarget
"android:configChanges": project.config.getArrayString("android.configChanges", ["keyboardHidden", "orientation", "screenSize", "screenLayout", "uiMode"]).join("|"),
"android:screenOrientation": project.window.orientation == PORTRAIT ? "sensorPortrait" : (project.window.orientation == LANDSCAPE ? "sensorLandscape" : null)
});
context.ANDROID_ACCEPT_FILE_INTENT = project.config.getArrayString("android.accept-file-intent", []);
if (!project.environment.exists("ANDROID_SDK") || !project.environment.exists("ANDROID_NDK_ROOT"))
{