Skip to content

Commit 3a3a07a

Browse files
committed
copy files from apk on every launch in debug build
1 parent 4965c71 commit 3a3a07a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/src/main/kotlin/org/emunix/insteadlauncher/helpers/ResourceUpdater.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ package org.emunix.insteadlauncher.helpers
88
import kotlinx.coroutines.Dispatchers
99
import kotlinx.coroutines.withContext
1010
import org.emunix.instead.core_storage_api.data.Storage
11+
import org.emunix.insteadlauncher.BuildConfig
1112
import timber.log.Timber
1213
import java.io.IOException
1314
import javax.inject.Inject
@@ -16,7 +17,7 @@ class ResourceUpdater @Inject constructor(private val storage: Storage, private
1617

1718
suspend fun update(): Boolean = withContext(Dispatchers.IO) {
1819
try {
19-
if (appVersion.isNewVersion()) {
20+
if (appVersion.isNewVersion() || BuildConfig.DEBUG) {
2021
storage.getThemesDirectory().deleteRecursively()
2122
storage.copyAsset("themes", storage.getDataDirectory())
2223

0 commit comments

Comments
 (0)