liinahamari / Follower

Follower - background movement tracker with OpenStreetMap (osmdroid) used for observing tracks
MIT License
2 stars 2 forks source link

Paging for AddressTraceFragment's data #22

Open liinahamari opened 2 years ago

liinahamari commented 2 years ago

Implement paging for data exposed in AddressTraceFragment via Paging3 library.

liinahamari commented 2 years ago

While instantiating Paging3 found wierd behavior: java.lang.NoSuchMethodError: No direct method <init>(Lkotlin/coroutines/CoroutineContext;Z)V in class Lkotlinx/coroutines/AbstractCoroutine; or its super classes (declaration of 'kotlinx.coroutines.AbstractCoroutine' appears in ... (your_app_file.dex)

To fix that you need to declare additional coroutines dependencies: implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.1" implementation "org.jetbrains.kotlinx:kotlinx-coroutines-reactor:1.5.1" implementation "org.jetbrains.kotlinx:kotlinx-coroutines-reactive:1.5.1"