mirror of
https://github.com/revanced/revanced-manager
synced 2024-05-14 13:56:57 +02:00
fix: use correct directory
This commit is contained in:
parent
a9606728bf
commit
3b65cd0edc
@ -23,7 +23,7 @@ class KeystoreManager(app: Application, private val prefs: PreferencesManager) {
|
||||
const val FLUTTER_MANAGER_PASSWORD = "s3cur3p@ssw0rd"
|
||||
}
|
||||
|
||||
private val keystorePath = app.dataDir.resolve("manager.keystore").toPath()
|
||||
private val keystorePath = app.filesDir.resolve("manager.keystore").toPath()
|
||||
private fun options(
|
||||
cn: String = prefs.keystoreCommonName!!,
|
||||
pass: String = prefs.keystorePass!!
|
||||
|
@ -20,7 +20,7 @@ import java.io.File
|
||||
import java.io.InputStream
|
||||
|
||||
class SourceRepository(app: Application, private val persistenceRepo: SourcePersistenceRepository) {
|
||||
private val sourcesDir = app.dataDir.resolve("sources").also { it.mkdirs() }
|
||||
private val sourcesDir = app.filesDir.resolve("sources").also { it.mkdirs() }
|
||||
|
||||
private val _sources: MutableStateFlow<Map<Int, Source>> = MutableStateFlow(emptyMap())
|
||||
val sources = _sources.map { it.values.toList() }
|
||||
|
Loading…
Reference in New Issue
Block a user