kozmonos_core library
Classes
- AnalyticsServiceConfig
- AppBootstrapController
- AppBootstrapState
- AppServicesConfig
- AuthBoundIntegration
-
AuthBoundIntegrationController<
TState> - AuthServiceConfig
- BackendServiceConfig
- BillingServiceConfig
- CallbackStartupStep
- ConnectivityStatus
- HealthDayQuantity
- One calendar day's quantity sample from a health hub.
- HealthSyncClient
- Vendor-neutral health quantity sync (HealthKit / Health Connect).
- LocalReminderClient
- Vendor-neutral local (on-device) scheduled reminders.
- NoopHealthSyncClient
- Null-object default so tests and apps without Health still boot.
- NoopLocalReminderClient
- NotificationServiceConfig
- ObservabilityServiceConfig
- PerformanceMonitor
- A lightweight, compile-out utility that monitors frame rendering performance.
- PerformanceTracker
- Abstract class representing a vendor-neutral Performance Tracker. Decouples the application from concrete SDK implementations (Firebase, etc.).
- RemoteConfigClient
- Abstract class representing a vendor-neutral Remote Config Client. Decouples the application from concrete SDK implementations (Firebase, PostHog, etc.).
-
A generic, reusable JSON storage utility built on top of
SharedPreferences. - StartupCallbackDefinition
- StartupOrchestrator
- StartupStep
- StartupStepConfig
- StorageHealthService
- StorageHealthSnapshot
- StubPerformanceTracker
- A stub/mock implementation of PerformanceTracker returning sensible defaults. Used as a fallback/Null Object to make tests and local runs robust and boilerplate-free.
- StubRemoteConfigClient
- A stub/mock implementation of RemoteConfigClient returning sensible defaults. Used as a fallback/Null Object to make tests and local runs robust and boilerplate-free.
Enums
- HealthSyncBackend
- Which on-device health hub is backing HealthSyncClient, if any.
- StartupPresentation
- StartupTrigger
Properties
-
appBootstrapControllerProvider
→ NotifierProvider<
AppBootstrapController, AppBootstrapState> -
final
-
connectivityControllerProvider
→ StreamProvider<
ConnectivityStatus> -
final
-
healthSyncClientProvider
→ Provider<
HealthSyncClient> -
final
-
internetConnectionProvider
→ Provider<
InternetConnection> -
final
-
localReminderClientProvider
→ Provider<
LocalReminderClient> -
final
-
performanceTrackerProvider
→ Provider<
PerformanceTracker> -
Provider of the PerformanceTracker. Defaults to a stub tracker (Null Object Pattern)
so that tests and local scenarios run out-of-the-box with sensible defaults.
The concrete production app shell should override this with its specific adapter (e.g. Firebase).
final
-
remoteConfigClientProvider
→ Provider<
RemoteConfigClient> -
Provider of the RemoteConfigClient. Defaults to a stub client (Null Object Pattern)
so that tests and local scenarios run out-of-the-box with sensible defaults.
The concrete production app shell should override this with its specific adapter (e.g. Firebase).
final
-
startupOrchestratorProvider
→ Provider<
StartupOrchestrator> -
final
-
storageHealthServiceProvider
→ Provider<
StorageHealthService> -
final
Functions
-
buildConnectivityStatusStream(
{required Stream< InternetStatus> statusChanges, required Future<bool> confirmInternetAccess(), Duration initialOfflineGracePeriod = const Duration(seconds: 2), Duration offlineGracePeriod = const Duration(seconds: 3)}) → Stream<ConnectivityStatus> -
buildStartupOverrides(
Iterable< StartupCallbackDefinition> definitions) → List -
combineAppOverrides(
{required List localeOverrides, required List authOverrides, required List billingOverrides, required List accessOverrides, required List settingsOverrides, required List analyticsOverrides, required List< StartupCallbackDefinition> startupSteps, List additionalOverrides = const <dynamic>[]}) → List - Combines all module-specific provider overrides into a single, cohesive list.
-
combineOverrideBuilders(
Iterable< AppOverrideBuilder> builders) → List -
normalizeConnectivityStatus(
{required InternetStatus reportedStatus, required bool hasConfirmedOnline, required Future< bool> confirmInternetAccess(), Duration initialOfflineGracePeriod = const Duration(seconds: 2), Duration offlineGracePeriod = Duration.zero}) → Future<bool?>
Typedefs
- ActiveRouteProvider = String? Function()
- AppOverrideBuilder = List Function()
- StartupShouldContinueCallback = bool Function()
-
StartupStepCallback
= FutureOr<
void> Function(Ref ref) - StartupStepStartedCallback = void Function(StartupStep step)