Skip to content

Commit 3eba9f1

Browse files
committed
Fixed KT-Error
1 parent f12d430 commit 3eba9f1

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • sdk/runanywhere-kotlin/src/androidMain/kotlin/com/runanywhere/sdk/foundation/device

sdk/runanywhere-kotlin/src/androidMain/kotlin/com/runanywhere/sdk/foundation/device/DeviceInfoService.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ actual class DeviceInfoService {
3333
}
3434
}
3535

36-
actual fun getChipName(): String? =
37-
try {
36+
actual fun getChipName(): String? {
37+
return try {
3838
// Try Build.SOC_MODEL first (API 31+) — returns actual SoC like "SM8750"
3939
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
4040
val socModel = Build.SOC_MODEL
@@ -52,6 +52,7 @@ actual class DeviceInfoService {
5252
} catch (e: Exception) {
5353
null
5454
}
55+
}
5556

5657
actual fun getTotalMemoryGB(): Double? {
5758
return try {

0 commit comments

Comments
 (0)