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
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import org.adfa.constants.LOCAL_MAVEN_REPO_ARCHIVE_ZIP_NAME
import org.adfa.constants.TEMPLATE_CORE_ARCHIVE
import org.slf4j.LoggerFactory
import com.itsaky.androidide.resources.R
import com.itsaky.androidide.utils.flashError
import java.io.File
import java.io.FileNotFoundException
import java.io.IOException
Expand Down Expand Up @@ -131,7 +132,7 @@ object AssetsInstallationHelper {
true
} catch (e: FileNotFoundException) {
logger.error("ZIP file not found: {}", e.message)
onProgress(Progress("${e.message}"))
flashError("File not found - ${e.message}")
false
} catch (e: ZipException) {
logger.error("Invalid ZIP format: {}", e.message)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ data object SplitAssetsInstaller : BaseAssetsInstaller() {
): Unit =
withContext(Dispatchers.IO) {
if (!Environment.SPLIT_ASSETS_ZIP.exists()) {
throw FileNotFoundException("Assets zip file not found at path: ${Environment.SPLIT_ASSETS_ZIP.path}")
throw FileNotFoundException("Assets zip file not found at path: ${Environment.SPLIT_ASSETS_ZIP.path}." +
" Please check Slack #qa-testing-builds channel for the latest version.")
}

zipFile = ZipFile(Environment.SPLIT_ASSETS_ZIP)
Expand Down
Loading