virtualx-engine/platform/android/java
Fredia Huya-Kouadio 5e0805a813 Provide access to the Android runtime to GDScript
Thanks for the fix of `JavaClassWrapper` in https://github.com/godotengine/godot/pull/96182 and the changes in the previous commit, this introduces an `AndroidRuntime` plugin which provides GDScript access to the Android runtime capabilities.

This allows developers to get access to various Android capabilities without the need of a plugin.
For example, the following logic can be used to check whether the device supports vibration:

```
var android_runtime = Engine.get_singleton("AndroidRuntime")
 if android_runtime:
 	print("Checking if the device supports vibration")
 	var vibrator_service = android_runtime.getApplicationContext().getSystemService("vibrator")
 	if vibrator_service:
 		if vibrator_service.hasVibrator():
 			print("Vibration is supported on device!")
 		else:
 			printerr("Vibration is not supported on device")
 	else:
 		printerr("Unable to retrieve the vibrator service")
 else:
 	printerr("Couldn't find AndroidRuntime singleton")
```
2024-09-29 14:32:10 -07:00
..
app C#: Fallback to CoreCLR/MonoVM hosting APIs when hostfxr/NativeAOT fails 2024-09-16 17:07:03 +02:00
editor Update the set of excluded permissions for the XR Editor 2024-09-25 23:22:16 -07:00
gradle/wrapper Update Android dependencies for the project 2024-01-18 10:35:32 -08:00
lib Provide access to the Android runtime to GDScript 2024-09-29 14:32:10 -07:00
nativeSrcsConfigs Improve support for XR projects 2024-09-06 00:35:50 -07:00
scripts Style: Trim trailing whitespace and ensure newline at EOF 2024-05-08 10:12:46 +02:00
build.gradle C#: Fallback to CoreCLR/MonoVM hosting APIs when hostfxr/NativeAOT fails 2024-09-16 17:07:03 +02:00
gradle.properties Fix gradle build errors when the build path contains non-ASCII characters 2024-02-13 14:31:08 -08:00
gradlew
gradlew.bat
settings.gradle Improve support for XR projects 2024-09-06 00:35:50 -07:00
THIRDPARTY.md Update the GodotHost interface to support signing and verifying Android apks 2024-08-26 11:16:38 -07:00