parseConfigurationResource

abstract suspend fun parseConfigurationResource(file: String): C(source)

Parses a configuration from a resource file bundled with the application.

Resource resolution is platform-specific:

  • JVM/Android: Uses the classloader to load resources from the classpath.

  • Native: Searches for the resource in the filesystem using platform-specific paths.

Return

The parsed configuration object.

Parameters

file

The path to the resource, relative to the resources root.

Throws

if the resource cannot be found or parsed.