From e51c3fd86b225d611ec0e54a0aedd0fba2b19038 Mon Sep 17 00:00:00 2001 From: Ax333l Date: Thu, 3 Aug 2023 12:52:21 +0200 Subject: [PATCH] move companion object to the bottom --- .../PatchBundlePersistenceRepository.kt | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/app/src/main/java/app/revanced/manager/domain/repository/PatchBundlePersistenceRepository.kt b/app/src/main/java/app/revanced/manager/domain/repository/PatchBundlePersistenceRepository.kt index c33e7ba2..8ea5733d 100644 --- a/app/src/main/java/app/revanced/manager/domain/repository/PatchBundlePersistenceRepository.kt +++ b/app/src/main/java/app/revanced/manager/domain/repository/PatchBundlePersistenceRepository.kt @@ -11,16 +11,6 @@ import kotlinx.coroutines.flow.distinctUntilChanged class PatchBundlePersistenceRepository(db: AppDatabase) { private val dao = db.patchBundleDao() - private companion object { - val defaultSource = PatchBundleEntity( - uid = 0, - name = "Main", - versionInfo = VersionInfo(), - source = Source.API, - autoUpdate = false - ) - } - suspend fun loadConfiguration(): List { val all = dao.all() if (all.isEmpty()) { @@ -53,4 +43,14 @@ class PatchBundlePersistenceRepository(db: AppDatabase) { suspend fun setAutoUpdate(uid: Int, value: Boolean) = dao.setAutoUpdate(uid, value) fun getProps(id: Int) = dao.getPropsById(id).distinctUntilChanged() + + private companion object { + val defaultSource = PatchBundleEntity( + uid = 0, + name = "Main", + versionInfo = VersionInfo(), + source = Source.API, + autoUpdate = false + ) + } } \ No newline at end of file