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" applicationId = "dev.beefers.vendetta.manager"
minSdk = 24 minSdk = 24
targetSdk = 33 targetSdk = 33
versionCode = 1010 versionCode = 1011
versionName = "1.0.1" versionName = "1.0.11"
buildConfigField("String", "GIT_BRANCH", "\"${getCurrentBranch()}\"") buildConfigField("String", "GIT_BRANCH", "\"${getCurrentBranch()}\"")
buildConfigField("String", "GIT_COMMIT", "\"${getLatestCommit()}\"") buildConfigField("String", "GIT_COMMIT", "\"${getLatestCommit()}\"")

View file

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

View file

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