Fix offline build

This commit is contained in:
greenart7c3
2024-11-11 17:38:37 -03:00
parent a46e1d32d3
commit 2a5f6e57ff
2 changed files with 7 additions and 1 deletions
@@ -201,6 +201,11 @@ class NostrSigner : Application() {
}
suspend fun fetchProfileData(account: Account, onPictureFound: (String) -> Unit) {
@Suppress("KotlinConstantConditions")
if (BuildConfig.FLAVOR == "offline") {
return
}
SingletonImageLoader.setSafe {
ImageLoader.Builder(this)
.crossfade(true)
@@ -604,7 +604,8 @@ fun MainScreen(
},
icon = {
if (it.route == Route.Accounts.route) {
if (!profileUrl.isNullOrBlank()) {
@Suppress("KotlinConstantConditions")
if (!profileUrl.isNullOrBlank() && BuildConfig.FLAVOR != "offline") {
AsyncImage(
profileUrl,
it.route,