Skip to content

Commit 9e34300

Browse files
authored
fix: kaomoji loading in optimized builds (#297)
2 parents cd963d1 + f189b3a commit 9e34300

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

app/src/main/java/com/sameerasw/essentials/ui/ime/KaomojiData.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@ import androidx.compose.runtime.setValue
1212
import androidx.compose.runtime.State
1313
import kotlinx.coroutines.CoroutineScope
1414
import kotlinx.coroutines.Dispatchers
15+
import androidx.annotation.Keep
1516
import kotlinx.coroutines.launch
1617
import kotlinx.coroutines.withContext
1718

19+
@Keep
1820
data class KaomojiObject(
1921
@SerializedName("category") val category: String,
2022
@SerializedName("value") val value: String
@@ -25,6 +27,7 @@ data class KaomojiCategory(
2527
val kaomojis: List<KaomojiObject>
2628
)
2729

30+
@Keep
2831
data class KaomojiDataResponse(
2932
@SerializedName("kaomoji") val kaomoji: List<KaomojiObject>
3033
)

0 commit comments

Comments
 (0)