Fix: Change updater download directory

This commit is contained in:
wingio 2023-03-17 15:05:17 -04:00
parent d6fa04f024
commit f2a97b3f62
3 changed files with 5 additions and 5 deletions

View File

@ -14,8 +14,8 @@ android {
applicationId = "dev.beefers.vendetta.manager"
minSdk = 24
targetSdk = 33
versionCode = 1010
versionName = "1.0.1"
versionCode = 1011
versionName = "1.0.11"
buildConfigField("String", "GIT_BRANCH", "\"${getCurrentBranch()}\"")
buildConfigField("String", "GIT_COMMIT", "\"${getLatestCommit()}\"")

View File

@ -11,8 +11,8 @@
"type": "SINGLE",
"filters": [],
"attributes": [],
"versionCode": 1000,
"versionName": "1.0.0",
"versionCode": 1010,
"versionName": "1.0.1",
"outputFile": "app-release.apk"
}
],

View File

@ -19,7 +19,7 @@ class MainViewModel(
private val downloadManager: DownloadManager,
private val context: Context
) : ScreenModel {
private val downloadDir = context.cacheDir
private val downloadDir = context.externalCacheDir
var release by mutableStateOf<Release?>(null)
private set