diff --git a/android/gradle/libs.versions.toml b/android/gradle/libs.versions.toml index c506b3b3..a5105618 100644 --- a/android/gradle/libs.versions.toml +++ b/android/gradle/libs.versions.toml @@ -11,7 +11,7 @@ kotlin = "2.0.20-Beta2" kotlinxDatetime = "0.6.0" kotlinxSerializationJson = "1.7.1" ksp = "2.0.20-Beta2-1.0.23" -libpebblecommonVersion = "0.1.25" +libpebblecommonVersion = "0.1.26" errorproneVersion = "2.26.1" rruleVersion = "1.0.3" spotbugsVersion = "4.8.6" diff --git a/android/shared/src/commonMain/kotlin/io/rebble/cobble/shared/handlers/SystemHandler.kt b/android/shared/src/commonMain/kotlin/io/rebble/cobble/shared/handlers/SystemHandler.kt index 9e816c95..a7acce15 100644 --- a/android/shared/src/commonMain/kotlin/io/rebble/cobble/shared/handlers/SystemHandler.kt +++ b/android/shared/src/commonMain/kotlin/io/rebble/cobble/shared/handlers/SystemHandler.kt @@ -147,12 +147,15 @@ class SystemHandler( 4u, 2u, ProtocolCapsFlag.makeFlags( - listOf( - ProtocolCapsFlag.Supports8kAppMessage, - ProtocolCapsFlag.SupportsExtendedMusicProtocol, - ProtocolCapsFlag.SupportsTwoWayDismissal, - ProtocolCapsFlag.SupportsAppRunStateProtocol - ) + buildList { + add(ProtocolCapsFlag.Supports8kAppMessage) + add(ProtocolCapsFlag.SupportsExtendedMusicProtocol) + add(ProtocolCapsFlag.SupportsTwoWayDismissal) + add(ProtocolCapsFlag.SupportsAppRunStateProtocol) + if (platformContext.osType == PhoneAppVersion.OSType.Android) { + add(ProtocolCapsFlag.SupportsAppDictation) + } + } ) ) }