From 4ebd5efcbca3ad726425c08b07261ffb2b0a04c1 Mon Sep 17 00:00:00 2001 From: Aleksandras Kostarevas Date: Tue, 20 Feb 2024 21:19:53 +0200 Subject: [PATCH] Fix crash in optimized build --- java/src/org/futo/inputmethod/latin/xlm/ModelPaths.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/java/src/org/futo/inputmethod/latin/xlm/ModelPaths.kt b/java/src/org/futo/inputmethod/latin/xlm/ModelPaths.kt index 1f82b8c9d..bce2ddfe4 100644 --- a/java/src/org/futo/inputmethod/latin/xlm/ModelPaths.kt +++ b/java/src/org/futo/inputmethod/latin/xlm/ModelPaths.kt @@ -4,8 +4,10 @@ import android.content.Context import android.net.Uri import android.provider.OpenableColumns import android.util.Log +import androidx.annotation.Keep import androidx.datastore.preferences.core.stringSetPreferencesKey import kotlinx.coroutines.flow.MutableSharedFlow +import org.futo.inputmethod.annotations.ExternallyReferenced import org.futo.inputmethod.latin.R import org.futo.inputmethod.latin.uix.SettingsKey import org.futo.inputmethod.latin.uix.getSetting @@ -22,6 +24,8 @@ val MODEL_OPTION_KEY = SettingsKey( setOf("en:$BASE_MODEL_NAME") ) +@Keep +@ExternallyReferenced data class ModelInfo( val name: String, val description: String,