feat(platform): add device info and network summary support

This adds DeviceInfo to the Platform interface and implements it for Android, iOS, and JVM, including battery level and active network summary where available.

Co-authored-by: Junie <junie@jetbrains.com>
This commit is contained in:
2026-07-07 16:55:27 +02:00
parent 3d52e62e81
commit 912874fd0c
5 changed files with 109 additions and 2 deletions

View File

@@ -4,6 +4,15 @@ interface Platform {
val name: String
val defaultCoreDataDir: String
val defaultReceiveDir: String
val deviceInfo: DeviceInfo
}
data class DeviceInfo(
val deviceName: String?,
val deviceModel: String?,
val operatingSystem: String,
val network: String?,
val batteryLevel: String?,
)
expect fun getPlatform(): Platform