ValhallaConfigManager

constructor(context: Context, file: ValhallaFile = ValhallaFile(context, "valhalla.json"), moshi: Moshi = Moshi.Builder().add(KotlinJsonAdapterFactory()).build())

Parameters

context

The Android context used for file system access.

file

The file handler for the valhalla.json configuration file. Defaults to "valhalla.json" in app storage.

moshi

JSON serialization adapter. Defaults to a Moshi instance with Kotlin reflection support.