Sevak Tadevosyan
05/05/2024, 7:05 PMget file path
decode it kotlin data type
use inside iosApp
question:
do I need to do anything with expect/actual?Landry Norris
05/05/2024, 8:10 PMLandry Norris
05/05/2024, 8:11 PMSevak Tadevosyan
05/05/2024, 8:34 PMAlejandro Rios
05/05/2024, 8:45 PMcomposeResources
folder with:
@OptIn(InternalResourceApi::class)
private suspend fun getWordsFromLocal(board: List<String>): List<String> {
val dictionary = readResourceBytes(boardDictionary).decodeToString().split("\r?\n|\r".toRegex()).toList()
Can't adjust code, I'm on cellphone 😅
File is located in
private var boardDictionary = "files/en_dictionary.txt"
Joel Denke
05/06/2024, 5:34 AMSevak Tadevosyan
05/06/2024, 5:35 AMJoel Denke
05/06/2024, 8:34 AM