Generate
Add a feature to a project you made with archipelago create. The brick scaffolds the package, and its hook adds the module to your app's injector. The SDK registers itself, so its routes exist before the router is built.
archipelago generate feature_monorepo_skeleton? What is the name of your feature module? checkout? Is this a shared feature (API/Impl split)? No? Which state management do you want to use? cubitCopied single feature template to features/checkout✓ Registered ExternalModule(CheckoutGlobalModule)✓ Feature integration completed successfully
Wired into DI. Routes register at pre-launch.
import 'package:app_utilities/app_utilities.dart';import 'package:checkout/checkout.dart';@InjectableInit( externalPackageModulesBefore: [ ExternalModule(AppUtilitiesPackageModule), ExternalModule(CheckoutGlobalModule), ],)Future<void> initializeInjector() => $initGetIt(getIt);factory CheckoutSDKImpl.create() { final sdk = CheckoutSDKImpl._(); // Self-register for auto-discovery by FeatureSDKAppInitializer. FeatureSDKRegistry.instance.register(sdk); return sdk;}













