Package-level declarations

Types

Link copied to clipboard

Holds the running app's Metro dependency graph for code the graph does not construct (Android framework classes, Glance widgets, workers) and for composition-root glue. Composables get their dependencies through ViewModels, not from here. The app entry point sets it once at startup and clears it on shutdown.

Link copied to clipboard
interface ApplicationCoroutineScope : CoroutineScope

A process-wide CoroutineScope that outlives individual ViewModels and UI components.

Link copied to clipboard
interface ServiceScope : CoroutineScope

Process-lifetime scope owned by the mesh service, distinct from ApplicationCoroutineScope and from the DataStore scope. Backed by a SupervisorJob so one failed child does not tear down the rest of the service.

Properties

Link copied to clipboard

Whether Google Play services are present — true in the google flavor, false in fdroid.

Link copied to clipboard

androidx.lifecycle.Lifecycle of the whole process, not of any single Activity.

Functions

Link copied to clipboard
fun CoroutineScope.asServiceScope(): ServiceScope

Presents an existing scope as ServiceScope; the wrapper adds nothing but identity.

Link copied to clipboard
inline fun <reified T : Any> graphAccessor(): T

Returns the held graph as T, an accessor interface contributed with @ContributesTo(AppScope::class).