mirror of
https://github.com/sudosylabs/vnidrop.git
synced 2026-08-05 10:29:58 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user