Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion app/src/main/java/com/gothwad/store/core/AppGraph.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import com.gothwad.store.data.download.DownloadStore
import com.gothwad.store.data.install.InstallEngine
import com.gothwad.store.data.install.ShizukuBridge
import com.gothwad.store.data.library.LibraryRepository
import com.gothwad.store.data.remote.FdroidCatalog
import com.gothwad.store.data.remote.StoreNetwork
import com.gothwad.store.data.remote.StoreRepository
import com.gothwad.store.data.settings.SettingsRepository
Expand All @@ -18,6 +19,7 @@ import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.asStateFlow
import kotlinx.coroutines.launch
import okhttp3.OkHttpClient
import java.io.File

/**
* Hand-rolled dependency graph. Small enough that a DI framework would only add
Expand Down Expand Up @@ -58,7 +60,9 @@ object AppGraph {
if (ready) return true
appContext = application
settings = SettingsRepository(application)
store = StoreRepository()
store = StoreRepository(
fdroid = FdroidCatalog(cacheDir = File(application.cacheDir, "fdroid")),
)
auth = AuthManager(application)
downloads = DownloadStore(application)
installer = InstallEngine(application) { downloads.apkDir }
Expand Down
575 changes: 530 additions & 45 deletions app/src/main/java/com/gothwad/store/data/remote/FdroidCatalog.kt

Large diffs are not rendered by default.

Loading
Loading