After Framework

after_enterprise

Enterprise modules: purpose, dependencies, key APIs and example for after_enterprise.

Docs version: supercore main · packages 1.0.0

PurposeLink to this section: Purpose

Enterprise modules

Fourteen shared B2B ports with deterministic in-memory mocks, fail-closed tenancy through EnterpriseScope, and a product runtime and shell host.

DependenciesLink to this section: Dependencies

after_ecosystemafter_aiafter_consumerafter_enterpriseafter_firebaseafter_coreafter_design_system
Used by
No package depends on it
Notable third-party dependencies
flutter_riverpodcollectionuuid

Key APIsLink to this section: Key APIs

  • EnterpriseScope
  • OrganizationRepository
  • RbacRepository
  • PermissionSet
  • WorkflowEngine
  • TaskRepository
  • CalendarRepository
  • DocumentRepository
  • EnterpriseAiAssistant
  • AuditLogRepository
  • OfflineSyncQueue
  • EnterpriseApiClient
  • MockEnterpriseRepository
  • EnterpriseProductRuntime

ExampleLink to this section: Example

dart
static Future<List<Override>> ensureConfigured({
  EnterpriseRepository? enterpriseRepository,
}) async {
  PlatformConfig.current = superAppEnterpriseManifest;
  final prefs = await SharedPreferences.getInstance();
  return [
    ...AfterStandardOverrides.create(
      preferences: prefs,
      userAgent: '${superAppEnterpriseManifest.appName}/'
          '${superAppEnterpriseManifest.appId}',
    ),
    enterpriseRepositoryProvider.overrideWithValue(
      enterpriseRepository ?? MockEnterpriseRepository(),
    ),
  ];
}

Source supercore/templates/super_app_enterprise/after_framework.dart (opens in a new tab)