Skip to content

Commit 32ba770

Browse files
committed
Add new functions + use new exception for minimal
1 parent db48e9e commit 32ba770

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

app/src/minimal/kotlin/io/homeassistant/companion/android/thread/ThreadManagerImpl.kt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ class ThreadManagerImpl @Inject constructor() : ThreadManager {
2323
scope: CoroutineScope,
2424
): ThreadManager.SyncResult = ThreadManager.SyncResult.AppUnsupported
2525

26+
override suspend fun hasSyncedPreferredDataset(serverId: Int): Boolean = false
27+
2628
override suspend fun getPreferredDatasetFromServer(serverId: Int): ThreadDatasetResponse? = null
2729

2830
override suspend fun importDatasetFromServer(
@@ -33,7 +35,11 @@ class ThreadManagerImpl @Inject constructor() : ThreadManager {
3335
) { }
3436

3537
override suspend fun getPreferredDatasetFromDevice(context: Context): IntentSender? {
36-
throw IllegalStateException("Thread is not supported with the minimal flavor")
38+
throw ThreadManager.ThreadNetworkException("Thread is not supported with the minimal flavor")
39+
}
40+
41+
override suspend fun isPreferredDatasetByDevice(context: Context, tlv: String): Boolean {
42+
throw ThreadManager.ThreadNetworkException("Thread is not supported with the minimal flavor")
3743
}
3844

3945
override suspend fun sendThreadDatasetExportResult(result: ActivityResult, serverId: Int): String? = null

0 commit comments

Comments
 (0)