Package-level declarations

Types

Link copied to clipboard
class DefaultDispatcherProvider @Inject constructor : DispatcherProvider
Link copied to clipboard
Link copied to clipboard
object FileUtil

This class has method to help load static files, their contents and properties in android

Link copied to clipboard
@Singleton
class SecureSharedPreference @Inject constructor(val context: Context)
Link copied to clipboard
@Singleton
class SharedPreferencesHelper @Inject constructor(val context: Context, val gson: Gson)
Link copied to clipboard
class TimeZoneTypeAdapter : TypeAdapter<TimeZone>

Functions

Link copied to clipboard
fun <T : Any> KClass<T>.callFunction(method: String, vararg args: Any): Any?
Link copied to clipboard
suspend fun <T : Any> KClass<T>.callSuspendFunctionOnField(obj: T, field: String, method: String, vararg args: Any): Any?
Link copied to clipboard
Link copied to clipboard
suspend fun <T> Iterable<T>.forEachAsync(action: suspend (T) -> Unit)

Launch a new coroutine for each loop iteration using async.

Link copied to clipboard
fun getLastOffset(items: List<Any>, lastOffset: Int, batchSize: Int): Int
Link copied to clipboard
Link copied to clipboard
@VisibleForTesting
fun passwordHashString(password: CharArray, salt: ByteArray): String
Link copied to clipboard
suspend fun <A, B> Iterable<A>.pmap(f: suspend (A) -> B): Iterable<B>

Launch a new coroutine for each map iteration using async. From https://jivimberg.io/blog/2018/05/04/parallel-map-in-kotlin/.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard