SergioR
07/26/2024, 5:04 PMprivate val store by lazy {
StoreBuilder.from(
fetcher = Fetcher.of {
// entity from remote source (suspend fun)
Entity(
id = 0,
scannedToday = 0,
collectedToday = 0,
droppedOffToday = 0,
beingHandled = 0,
)
},
sourceOfTruth = SourceOfTruth.of(
reader = appDatabase.dao()::get,
writer = { _, entity -> appDatabase.dao().insert(entity) },
delete = appDatabase.dao()::delete,
deleteAll = appDatabase.dao()::wipe
)
).cachePolicy(
MemoryPolicy.builder<Any, Any>()
.setMaxSize(1)
.setExpireAfterWrite(20.seconds)
.build()
)
.build()
}
If i run android app all is going well but in IOS as soon as the class that contains the val is initialized i got this error
io.ktor.client.plugins.HttpRequest$1@61240950 thread: error: Parent job is Cancelling]
kotlin.native.internal.IrLinkageError: Constructor 'CommonWriter.<init>' can not be called: No constructor found for symbol 'co.touchlab.kermit/CommonWriter.<init>|<init>(){}[0]'
also I notices that if I downgrade my dependency to 1.2.2 (the one is used in store5) is solvedFilip Wiesner
07/29/2024, 6:59 PMMatthew Ramotar
08/01/2024, 9:35 PMblakelee
10/17/2024, 4:34 PMexport("co.touchlab:kermit:2.0.4")
to my ios target configs and still nothing 😕Matthew Ramotar
10/17/2024, 4:59 PMMatthew Ramotar
10/17/2024, 5:01 PMMatthew Ramotar
10/17/2024, 5:01 PMMatthew Ramotar
10/17/2024, 5:02 PMblakelee
10/17/2024, 6:01 PMMatthew Ramotar
10/18/2024, 2:30 PM