Skip to content

Commit 2bad055

Browse files
committed
fix: remove duplicate AppInfo data class causing build failure
Build Error Fixed: - Removed duplicate AppInfo declaration in SystemModels.kt - AppInfo is already defined in AppModels.kt with correct fields - This caused Kotlin compilation error: "Redeclaration: AppInfo" Root Cause: - During optimization, accidentally added AppInfo to SystemModels.kt - AppInfo should only be in AppModels.kt (app-related models) - SystemModels.kt should only contain system stats models Files Modified: - app/src/main/java/com/appcontrolx/model/SystemModels.kt - Removed duplicate AppInfo data class - Kept SystemStats and related system models Build Status: - Kotlin compilation should now succeed - No more redeclaration errors - All models properly separated
1 parent e2f2973 commit 2bad055

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

app/src/main/java/com/appcontrolx/model/SystemModels.kt

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,6 @@ package com.appcontrolx.model
22

33
import kotlinx.serialization.Serializable
44

5-
@Serializable
6-
data class AppInfo(
7-
val packageName: String,
8-
val appName: String,
9-
val iconBase64: String? = null, // Nullable for lazy loading
10-
val versionName: String,
11-
val isSystemApp: Boolean,
12-
val isEnabled: Boolean,
13-
val isRunning: Boolean,
14-
val isFrozen: Boolean,
15-
val isBackgroundRestricted: Boolean,
16-
val size: Long,
17-
val uid: Int,
18-
val safetyLevel: SafetyLevel
19-
)
20-
215
@Serializable
226
data class SystemStats(
237
val cpu: CpuStats,

0 commit comments

Comments
 (0)