Showing preview only (1,847K chars total). Download the full file or copy to clipboard to get everything.
Repository: amzn/app-platform
Branch: main
Commit: 4f9b6301e4da
Files: 621
Total size: 1.6 MB
Directory structure:
gitextract_au9h9jge/
├── .editorconfig
├── .gitattributes
├── .github/
│ ├── actions/
│ │ ├── prepare-emulator-action/
│ │ │ └── action.yml
│ │ └── setup-action/
│ │ └── action.yml
│ └── workflows/
│ ├── blueprints-starter-ci.yml
│ ├── ci.yml
│ ├── pages.yml
│ ├── publish-release.yml
│ └── publish-snapshot.yml
├── .gitignore
├── .idea/
│ └── ktfmt.xml
├── AGENTS.md
├── CHANGELOG.md
├── CODE_OF_CONDUCT.md
├── CONTRIBUTING.md
├── LICENSE
├── NOTICE
├── README.md
├── RELEASING.md
├── blueprints/
│ ├── README.md
│ └── starter/
│ ├── .gitignore
│ ├── README.md
│ ├── app/
│ │ ├── build.gradle.kts
│ │ └── src/
│ │ ├── androidMain/
│ │ │ ├── AndroidManifest.xml
│ │ │ ├── kotlin/
│ │ │ │ └── software/
│ │ │ │ └── amazon/
│ │ │ │ └── app/
│ │ │ │ └── platform/
│ │ │ │ └── template/
│ │ │ │ ├── AndroidAppGraph.kt
│ │ │ │ ├── AndroidApplication.kt
│ │ │ │ ├── MainActivity.kt
│ │ │ │ └── MainActivityViewModel.kt
│ │ │ └── res/
│ │ │ └── values/
│ │ │ └── strings.xml
│ │ ├── commonMain/
│ │ │ └── kotlin/
│ │ │ └── software/
│ │ │ └── amazon/
│ │ │ └── app/
│ │ │ └── platform/
│ │ │ └── template/
│ │ │ ├── AppGraph.kt
│ │ │ ├── Application.kt
│ │ │ └── TemplateProvider.kt
│ │ ├── desktopMain/
│ │ │ └── kotlin/
│ │ │ └── software/
│ │ │ └── amazon/
│ │ │ └── app/
│ │ │ └── platform/
│ │ │ └── template/
│ │ │ ├── DesktopApp.kt
│ │ │ ├── DesktopAppGraph.kt
│ │ │ └── Main.kt
│ │ ├── iosMain/
│ │ │ └── kotlin/
│ │ │ └── software/
│ │ │ └── amazon/
│ │ │ └── app/
│ │ │ └── platform/
│ │ │ └── template/
│ │ │ ├── IosAppGraph.kt
│ │ │ └── MainViewController.kt
│ │ └── wasmJsMain/
│ │ ├── kotlin/
│ │ │ └── software/
│ │ │ └── amazon/
│ │ │ └── app/
│ │ │ └── platform/
│ │ │ └── template/
│ │ │ ├── Main.kt
│ │ │ └── WasmJsAppGraph.kt
│ │ └── resources/
│ │ ├── index.html
│ │ └── styles.css
│ ├── build.gradle.kts
│ ├── gradle/
│ │ ├── libs.versions.toml
│ │ └── wrapper/
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
│ ├── gradle.properties
│ ├── gradlew
│ ├── gradlew.bat
│ ├── iosApp/
│ │ ├── Configuration/
│ │ │ └── Config.xcconfig
│ │ ├── iosApp/
│ │ │ ├── Assets.xcassets/
│ │ │ │ ├── AccentColor.colorset/
│ │ │ │ │ └── Contents.json
│ │ │ │ ├── AppIcon.appiconset/
│ │ │ │ │ └── Contents.json
│ │ │ │ └── Contents.json
│ │ │ ├── ComposeContentView.swift
│ │ │ ├── Info.plist
│ │ │ ├── Preview Content/
│ │ │ │ └── Preview Assets.xcassets/
│ │ │ │ └── Contents.json
│ │ │ └── iOSApp.swift
│ │ └── iosApp.xcodeproj/
│ │ ├── project.pbxproj
│ │ ├── project.xcworkspace/
│ │ │ └── contents.xcworkspacedata
│ │ └── xcshareddata/
│ │ └── xcschemes/
│ │ └── iosApp.xcscheme
│ ├── navigation/
│ │ ├── impl/
│ │ │ ├── build.gradle.kts
│ │ │ └── src/
│ │ │ ├── commonMain/
│ │ │ │ └── kotlin/
│ │ │ │ └── software/
│ │ │ │ └── amazon/
│ │ │ │ └── app/
│ │ │ │ └── platform/
│ │ │ │ └── template/
│ │ │ │ └── navigation/
│ │ │ │ ├── ExampleRepositoryImpl.kt
│ │ │ │ ├── ExampleValueGenerator.kt
│ │ │ │ ├── NavigationDetailPresenterImpl.kt
│ │ │ │ ├── NavigationDetailRenderer.kt
│ │ │ │ ├── NavigationHeaderPresenterImpl.kt
│ │ │ │ ├── NavigationHeaderRenderer.kt
│ │ │ │ └── NavigationPresenterImpl.kt
│ │ │ └── commonTest/
│ │ │ └── kotlin/
│ │ │ └── software/
│ │ │ └── amazon/
│ │ │ └── app/
│ │ │ └── platform/
│ │ │ └── template/
│ │ │ └── navigation/
│ │ │ ├── NavigationDetailPresenterTest.kt
│ │ │ ├── NavigationHeaderPresenterTest.kt
│ │ │ └── NavigationPresenterImplTest.kt
│ │ ├── public/
│ │ │ ├── build.gradle.kts
│ │ │ └── src/
│ │ │ └── commonMain/
│ │ │ └── kotlin/
│ │ │ └── software/
│ │ │ └── amazon/
│ │ │ └── app/
│ │ │ └── platform/
│ │ │ └── template/
│ │ │ └── navigation/
│ │ │ ├── ExampleRepository.kt
│ │ │ ├── NavigationDetailPresenter.kt
│ │ │ ├── NavigationHeaderPresenter.kt
│ │ │ └── NavigationPresenter.kt
│ │ └── testing/
│ │ ├── build.gradle.kts
│ │ └── src/
│ │ └── commonMain/
│ │ └── kotlin/
│ │ └── software/
│ │ └── amazon/
│ │ └── app/
│ │ └── platform/
│ │ └── template/
│ │ └── navigation/
│ │ └── FakeExampleRepository.kt
│ ├── settings.gradle.kts
│ └── templates/
│ ├── impl/
│ │ ├── build.gradle.kts
│ │ └── src/
│ │ └── commonMain/
│ │ └── kotlin/
│ │ └── software/
│ │ └── amazon/
│ │ └── app/
│ │ └── platform/
│ │ └── template/
│ │ └── templates/
│ │ └── ComposeAppTemplateRenderer.kt
│ └── public/
│ ├── build.gradle.kts
│ └── src/
│ └── commonMain/
│ └── kotlin/
│ └── software/
│ └── amazon/
│ └── app/
│ └── platform/
│ └── template/
│ └── templates/
│ ├── AppTemplate.kt
│ └── AppTemplatePresenter.kt
├── build.gradle
├── buildSrc/
│ ├── build.gradle
│ ├── settings.gradle
│ └── src/
│ └── main/
│ └── kotlin/
│ └── software/
│ └── amazon/
│ └── app/
│ └── platform/
│ └── gradle/
│ └── buildsrc/
│ ├── AppPlatformExtension.kt
│ ├── AppPlugin.kt
│ ├── BaseAndroidPlugin.kt
│ ├── BasePlugin.kt
│ ├── Gradle.kt
│ ├── JvmLibraryPlugin.kt
│ ├── KmpPlugin.kt
│ ├── LibraryPlugin.kt
│ ├── Platform.kt
│ ├── Plugins.kt
│ ├── RootPlugin.kt
│ └── SdkPlugin.kt
├── di-common/
│ └── public/
│ ├── api/
│ │ ├── android/
│ │ │ └── public.api
│ │ └── desktop/
│ │ └── public.api
│ ├── build.gradle
│ └── src/
│ └── commonMain/
│ └── kotlin/
│ └── software/
│ └── amazon/
│ └── app/
│ └── platform/
│ ├── inject/
│ │ ├── ContributesRenderer.kt
│ │ └── robot/
│ │ └── ContributesRobot.kt
│ ├── presenter/
│ │ └── PresenterCoroutineScope.kt
│ └── scope/
│ └── coroutine/
│ ├── DefaultCoroutineDispatcher.kt
│ ├── IoCoroutineDispatcher.kt
│ └── MainCoroutineDispatcher.kt
├── docs/
│ ├── di.md
│ ├── faq.md
│ ├── index.md
│ ├── module-structure.md
│ ├── presenter.md
│ ├── renderer.md
│ ├── scope.md
│ ├── setup.md
│ ├── template.md
│ └── testing.md
├── gradle/
│ ├── detekt-config.yml
│ ├── libs.versions.toml
│ └── wrapper/
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── gradle-plugin/
│ ├── api/
│ │ └── gradle-plugin.api
│ ├── build.gradle
│ ├── settings.gradle
│ └── src/
│ └── main/
│ └── kotlin/
│ └── software/
│ └── amazon/
│ └── app/
│ └── platform/
│ └── gradle/
│ ├── AppPlatformExtension.kt
│ ├── AppPlatformPlugin.kt
│ ├── GradleExtensions.kt
│ ├── ModuleStructureDependencyCheckTask.kt
│ ├── ModuleStructurePlugin.kt
│ ├── ModuleType.kt
│ └── PluginIds.kt
├── gradle.properties
├── gradlew
├── gradlew.bat
├── internal/
│ └── testing/
│ ├── build.gradle
│ └── src/
│ ├── androidMain/
│ │ └── kotlin/
│ │ └── software/
│ │ └── amazon/
│ │ └── app/
│ │ └── platform/
│ │ └── internal/
│ │ ├── IgnoreNative.kt
│ │ ├── IgnoreWasm.android.kt
│ │ ├── Platform.kt
│ │ └── Thread.kt
│ ├── commonMain/
│ │ └── kotlin/
│ │ └── software/
│ │ └── amazon/
│ │ └── app/
│ │ └── platform/
│ │ └── internal/
│ │ ├── IgnoreNative.kt
│ │ ├── IgnoreWasm.kt
│ │ ├── Platform.kt
│ │ └── Thread.kt
│ ├── desktopMain/
│ │ └── kotlin/
│ │ └── software/
│ │ └── amazon/
│ │ └── app/
│ │ └── platform/
│ │ └── internal/
│ │ ├── IgnoreNative.kt
│ │ ├── IgnoreWasm.kt
│ │ ├── Platform.kt
│ │ └── Thread.kt
│ ├── nativeMain/
│ │ └── kotlin/
│ │ └── software/
│ │ └── amazon/
│ │ └── app/
│ │ └── platform/
│ │ └── internal/
│ │ ├── IgnoreNative.kt
│ │ ├── IgnoreWasm.kt
│ │ ├── Platform.kt
│ │ └── Thread.kt
│ └── wasmJsMain/
│ └── kotlin/
│ └── software/
│ └── amazon/
│ └── app/
│ └── platform/
│ └── internal/
│ ├── IgnoreNative.kt
│ ├── IgnoreWasm.kt
│ ├── Platform.kt
│ └── Thread.kt
├── ios-run.sh
├── kotlin-inject/
│ ├── impl/
│ │ ├── api/
│ │ │ ├── android/
│ │ │ │ └── impl.api
│ │ │ └── desktop/
│ │ │ └── impl.api
│ │ ├── build.gradle
│ │ └── src/
│ │ ├── commonMain/
│ │ │ └── kotlin/
│ │ │ └── software/
│ │ │ └── amazon/
│ │ │ └── app/
│ │ │ └── platform/
│ │ │ ├── presenter/
│ │ │ │ └── PresenterCoroutineScopeComponent.kt
│ │ │ └── scope/
│ │ │ └── coroutine/
│ │ │ ├── AppScopeCoroutineScopeComponent.kt
│ │ │ ├── CoroutineDispatcherComponent.kt
│ │ │ └── IoDispatcher.kt
│ │ ├── noWasmJsMain/
│ │ │ └── kotlin/
│ │ │ └── software/
│ │ │ └── amazon/
│ │ │ └── app/
│ │ │ └── platform/
│ │ │ └── scope/
│ │ │ └── coroutine/
│ │ │ └── IoDispatcher.kt
│ │ └── wasmJsMain/
│ │ └── kotlin/
│ │ └── software/
│ │ └── amazon/
│ │ └── app/
│ │ └── platform/
│ │ └── scope/
│ │ └── coroutine/
│ │ └── IoDispatcher.kt
│ └── public/
│ ├── api/
│ │ ├── android/
│ │ │ └── public.api
│ │ └── desktop/
│ │ └── public.api
│ ├── build.gradle
│ └── src/
│ ├── commonMain/
│ │ └── kotlin/
│ │ └── software/
│ │ └── amazon/
│ │ └── app/
│ │ └── platform/
│ │ └── scope/
│ │ └── di/
│ │ └── ComponentService.kt
│ └── commonTest/
│ └── kotlin/
│ └── software/
│ └── amazon/
│ └── app/
│ └── platform/
│ └── scope/
│ └── di/
│ └── ComponentServiceTest.kt
├── kotlin-inject-extensions/
│ └── contribute/
│ ├── impl-code-generators/
│ │ ├── build.gradle
│ │ └── src/
│ │ ├── main/
│ │ │ └── kotlin/
│ │ │ └── software/
│ │ │ └── amazon/
│ │ │ └── app/
│ │ │ └── platform/
│ │ │ └── inject/
│ │ │ ├── KotlinInjectContextAware.kt
│ │ │ ├── KotlinInjectExtensionSymbolProcessorProvider.kt
│ │ │ ├── Util.kt
│ │ │ └── processor/
│ │ │ ├── ContributesBindingProcessor.kt
│ │ │ ├── ContributesBindingScopedProcessor.kt
│ │ │ ├── ContributesMockImplProcessor.kt
│ │ │ ├── ContributesRealImplProcessor.kt
│ │ │ ├── ContributesRendererProcessor.kt
│ │ │ └── ContributesRobotProcessor.kt
│ │ └── test/
│ │ └── kotlin/
│ │ └── software/
│ │ └── amazon/
│ │ └── app/
│ │ └── platform/
│ │ └── inject/
│ │ ├── CommonSourceCode.kt
│ │ ├── Compilation.kt
│ │ ├── CompilerTestUtil.kt
│ │ └── processor/
│ │ ├── ContributesBindingProcessorTest.kt
│ │ ├── ContributesBindingScopedProcessorTest.kt
│ │ ├── ContributesMockImplGeneratorTest.kt
│ │ ├── ContributesRealImplGeneratorTest.kt
│ │ ├── ContributesRendererProcessorTest.kt
│ │ └── ContributesRobotGeneratorTest.kt
│ └── public/
│ ├── api/
│ │ ├── android/
│ │ │ └── public.api
│ │ └── desktop/
│ │ └── public.api
│ ├── build.gradle
│ └── src/
│ └── commonMain/
│ └── kotlin/
│ └── software/
│ └── amazon/
│ └── app/
│ └── platform/
│ └── inject/
│ └── mock/
│ ├── ContributesMockImpl.kt
│ ├── ContributesRealImpl.kt
│ ├── MockMode.kt
│ └── RealImpl.kt
├── ksp-common/
│ ├── public/
│ │ ├── build.gradle
│ │ └── src/
│ │ └── main/
│ │ └── kotlin/
│ │ └── software/
│ │ └── amazon/
│ │ └── app/
│ │ └── platform/
│ │ └── ksp/
│ │ ├── CompositeSymbolProcessor.kt
│ │ ├── ContextAware.kt
│ │ ├── MergeScope.kt
│ │ └── Util.kt
│ └── testing/
│ ├── build.gradle
│ └── src/
│ └── main/
│ └── kotlin/
│ └── software/
│ └── amazon/
│ └── app/
│ └── platform/
│ └── ksp/
│ ├── CommonSourceCode.kt
│ └── Util.kt
├── metro/
│ ├── impl/
│ │ ├── api/
│ │ │ ├── android/
│ │ │ │ └── impl.api
│ │ │ └── desktop/
│ │ │ └── impl.api
│ │ ├── build.gradle
│ │ └── src/
│ │ ├── commonMain/
│ │ │ └── kotlin/
│ │ │ └── software/
│ │ │ └── amazon/
│ │ │ └── app/
│ │ │ └── platform/
│ │ │ ├── presenter/
│ │ │ │ └── metro/
│ │ │ │ └── PresenterCoroutineScopeGraph.kt
│ │ │ └── scope/
│ │ │ └── coroutine/
│ │ │ └── metro/
│ │ │ ├── AppScopeCoroutineScopeGraph.kt
│ │ │ ├── CoroutineDispatcherGraph.kt
│ │ │ └── IoDispatcher.kt
│ │ ├── noWasmJsMain/
│ │ │ └── kotlin/
│ │ │ └── software/
│ │ │ └── amazon/
│ │ │ └── app/
│ │ │ └── platform/
│ │ │ └── scope/
│ │ │ └── coroutine/
│ │ │ └── metro/
│ │ │ └── IoDispatcher.kt
│ │ └── wasmJsMain/
│ │ └── kotlin/
│ │ └── software/
│ │ └── amazon/
│ │ └── app/
│ │ └── platform/
│ │ └── scope/
│ │ └── coroutine/
│ │ └── metro/
│ │ └── IoDispatcher.kt
│ └── public/
│ ├── api/
│ │ ├── android/
│ │ │ └── public.api
│ │ └── desktop/
│ │ └── public.api
│ ├── build.gradle
│ └── src/
│ ├── commonMain/
│ │ └── kotlin/
│ │ └── software/
│ │ └── amazon/
│ │ └── app/
│ │ └── platform/
│ │ ├── inject/
│ │ │ └── metro/
│ │ │ └── ContributesScoped.kt
│ │ ├── renderer/
│ │ │ └── metro/
│ │ │ ├── RendererKey.kt
│ │ │ └── RobotKey.kt
│ │ └── scope/
│ │ └── di/
│ │ └── metro/
│ │ └── MetroService.kt
│ └── commonTest/
│ └── kotlin/
│ └── software/
│ └── amazon/
│ └── app/
│ └── platform/
│ └── scope/
│ └── di/
│ └── metro/
│ └── MetroServiceTest.kt
├── metro-extensions/
│ └── contribute/
│ ├── impl-code-generators/
│ │ ├── build.gradle
│ │ └── src/
│ │ ├── main/
│ │ │ └── kotlin/
│ │ │ └── software/
│ │ │ └── amazon/
│ │ │ └── app/
│ │ │ └── platform/
│ │ │ └── metro/
│ │ │ ├── MetroContextAware.kt
│ │ │ ├── MetroExtensionSymbolProcessorProvider.kt
│ │ │ ├── Util.kt
│ │ │ └── processor/
│ │ │ ├── ContributesRendererProcessor.kt
│ │ │ ├── ContributesRobotProcessor.kt
│ │ │ └── ContributesScopedProcessor.kt
│ │ └── test/
│ │ └── kotlin/
│ │ └── software/
│ │ └── amazon/
│ │ ├── app/
│ │ │ └── platform/
│ │ │ └── inject/
│ │ │ └── metro/
│ │ │ ├── CommonSourceCode.kt
│ │ │ ├── Compilation.kt
│ │ │ ├── CompilerTestUtil.kt
│ │ │ └── processor/
│ │ │ ├── ContributesRendererProcessorTest.kt
│ │ │ ├── ContributesRobotGeneratorTest.kt
│ │ │ └── ContributesScopedProcessorTest.kt
│ │ └── test/
│ │ ├── TestRendererGraph.kt
│ │ └── TestRobotGraph.kt
│ └── impl-compiler-plugin/
│ ├── build.gradle
│ └── src/
│ ├── main/
│ │ └── kotlin/
│ │ └── software/
│ │ └── amazon/
│ │ └── app/
│ │ └── platform/
│ │ └── metro/
│ │ └── compiler/
│ │ ├── AppPlatformMetroExtensionsPluginComponentRegistrar.kt
│ │ ├── AppPlatformMetroExtensionsPluginRegistrar.kt
│ │ ├── ClassIds.kt
│ │ ├── Keys.kt
│ │ ├── fir/
│ │ │ ├── AppPlatformMetroExtensionsDiagnostics.kt
│ │ │ ├── AppPlatformMetroExtensionsFirCheckers.kt
│ │ │ ├── FirHelpers.kt
│ │ │ └── TypeResolution.kt
│ │ ├── renderer/
│ │ │ ├── ContributesRendererChecker.kt
│ │ │ ├── ContributesRendererFir.kt
│ │ │ ├── ContributesRendererIds.kt
│ │ │ ├── ContributesRendererIrExtension.kt
│ │ │ ├── ContributesRendererMetroExtension.kt
│ │ │ └── ContributesRendererSupport.kt
│ │ ├── robot/
│ │ │ ├── ContributesRobotChecker.kt
│ │ │ ├── ContributesRobotFir.kt
│ │ │ ├── ContributesRobotIds.kt
│ │ │ ├── ContributesRobotIrExtension.kt
│ │ │ └── ContributesRobotMetroExtension.kt
│ │ └── scoped/
│ │ ├── ContributesScopedChecker.kt
│ │ ├── ContributesScopedFir.kt
│ │ ├── ContributesScopedIds.kt
│ │ ├── ContributesScopedMetroExtension.kt
│ │ └── ContributesScopedSupport.kt
│ └── test/
│ ├── java/
│ │ └── software/
│ │ └── amazon/
│ │ └── app/
│ │ └── platform/
│ │ └── metro/
│ │ └── compiler/
│ │ └── runners/
│ │ ├── BoxTestGenerated.java
│ │ ├── FirDiagnosticTestGenerated.java
│ │ └── FirDumpTestGenerated.java
│ ├── kotlin/
│ │ └── software/
│ │ └── amazon/
│ │ └── app/
│ │ └── platform/
│ │ └── metro/
│ │ └── compiler/
│ │ ├── GenerateTests.kt
│ │ ├── runners/
│ │ │ ├── AbstractBoxTest.kt
│ │ │ ├── AbstractFirDiagnosticTest.kt
│ │ │ └── AbstractFirDumpTest.kt
│ │ ├── services/
│ │ │ ├── CompilerPluginTestSupport.kt
│ │ │ ├── KotlinTestImportsPreprocessor.kt
│ │ │ ├── MetroImportsPreprocessor.kt
│ │ │ ├── MetroRuntimeProvider.kt
│ │ │ ├── PluginAnnotationsProvider.kt
│ │ │ └── TestSupportClasspathProvider.kt
│ │ └── support/
│ │ └── UnusedRendererFactory.kt
│ └── resources/
│ ├── box/
│ │ ├── contributesrenderer/
│ │ │ ├── defaultConstructorRenderer.kt
│ │ │ ├── explicitModelType.kt
│ │ │ ├── inferredFromHierarchy.kt
│ │ │ ├── inferredFromHierarchyMultipleLevels.kt
│ │ │ ├── injectConstructorRenderer.kt
│ │ │ ├── innerModel.kt
│ │ │ ├── innerRenderer.kt
│ │ │ ├── sealedHierarchy.kt
│ │ │ ├── sealedHierarchyDisabled.kt
│ │ │ └── sealedHierarchyInDependencyModule.kt
│ │ ├── contributesrobot/
│ │ │ ├── defaultConstructorRobot.kt
│ │ │ ├── indirectSupertype.kt
│ │ │ └── injectConstructorRobot.kt
│ │ └── contributesscoped/
│ │ ├── defaultScoped.kt
│ │ ├── innerClass.kt
│ │ ├── onlyScoped.kt
│ │ └── transitiveScoped.kt
│ ├── diagnostics/
│ │ ├── contributesrenderer/
│ │ │ ├── missingInjectOnNonZeroArgConstructor.fir.diag.txt
│ │ │ ├── missingInjectOnNonZeroArgConstructor.kt
│ │ │ ├── modelTypeMustBeExplicitWhenNotInferable.fir.diag.txt
│ │ │ ├── modelTypeMustBeExplicitWhenNotInferable.kt
│ │ │ ├── redundantInjectOnZeroArgConstructor.fir.diag.txt
│ │ │ ├── redundantInjectOnZeroArgConstructor.kt
│ │ │ ├── rendererMustNotBeSingleton.fir.diag.txt
│ │ │ └── rendererMustNotBeSingleton.kt
│ │ ├── contributesrobot/
│ │ │ ├── classMustImplementRobot.fir.diag.txt
│ │ │ ├── classMustImplementRobot.kt
│ │ │ ├── classWithConstructorParametersMustUseInject.fir.diag.txt
│ │ │ ├── classWithConstructorParametersMustUseInject.kt
│ │ │ ├── onlyAppScopeSupported.fir.diag.txt
│ │ │ ├── onlyAppScopeSupported.kt
│ │ │ ├── robotMustNotBeSingleton.fir.diag.txt
│ │ │ └── robotMustNotBeSingleton.kt
│ │ └── contributesscoped/
│ │ ├── multipleOtherSupertypes.fir.diag.txt
│ │ ├── multipleOtherSupertypes.kt
│ │ ├── mustBeInject.fir.diag.txt
│ │ ├── mustBeInject.kt
│ │ ├── mustImplementScoped.fir.diag.txt
│ │ ├── mustImplementScoped.kt
│ │ ├── noSupertypes.fir.diag.txt
│ │ ├── noSupertypes.kt
│ │ ├── useContributesScopedInsteadOfContributesBinding.fir.diag.txt
│ │ └── useContributesScopedInsteadOfContributesBinding.kt
│ └── dump/
│ ├── contributesrenderer/
│ │ ├── defaultConstructorRenderer.fir.txt
│ │ ├── defaultConstructorRenderer.kt
│ │ ├── defaultConstructorRendererIr.fir.kt.txt
│ │ ├── defaultConstructorRendererIr.fir.txt
│ │ └── defaultConstructorRendererIr.kt
│ ├── contributesrobot/
│ │ ├── defaultConstructorRobot.fir.txt
│ │ ├── defaultConstructorRobot.kt
│ │ ├── defaultConstructorRobotIr.fir.kt.txt
│ │ ├── defaultConstructorRobotIr.fir.txt
│ │ └── defaultConstructorRobotIr.kt
│ └── contributesscoped/
│ ├── defaultScoped.fir.txt
│ └── defaultScoped.kt
├── mkdocs.yml
├── presenter/
│ └── public/
│ ├── api/
│ │ ├── android/
│ │ │ └── public.api
│ │ └── desktop/
│ │ └── public.api
│ ├── build.gradle
│ └── src/
│ ├── commonMain/
│ │ └── kotlin/
│ │ └── software/
│ │ └── amazon/
│ │ └── app/
│ │ └── platform/
│ │ └── presenter/
│ │ ├── BaseModel.kt
│ │ ├── Presenter.kt
│ │ ├── StateIn.kt
│ │ └── template/
│ │ ├── ModelDelegate.kt
│ │ └── Template.kt
│ └── commonTest/
│ └── kotlin/
│ └── software/
│ └── amazon/
│ └── app/
│ └── platform/
│ └── presenter/
│ ├── StateInTest.kt
│ └── template/
│ └── TemplateTest.kt
├── presenter-molecule/
│ ├── impl/
│ │ ├── api/
│ │ │ ├── android/
│ │ │ │ └── impl.api
│ │ │ └── desktop/
│ │ │ └── impl.api
│ │ ├── build.gradle
│ │ └── src/
│ │ ├── androidMain/
│ │ │ └── kotlin/
│ │ │ └── software/
│ │ │ └── amazon/
│ │ │ └── app/
│ │ │ └── platform/
│ │ │ └── presenter/
│ │ │ └── molecule/
│ │ │ └── AndroidMoleculeScopeFactory.kt
│ │ ├── commonMain/
│ │ │ └── kotlin/
│ │ │ └── software/
│ │ │ └── amazon/
│ │ │ └── app/
│ │ │ └── platform/
│ │ │ └── presenter/
│ │ │ └── molecule/
│ │ │ ├── DefaultMoleculeScopeFactory.kt
│ │ │ └── backgesture/
│ │ │ └── DefaultBackGestureDispatcherPresenter.kt
│ │ ├── commonTest/
│ │ │ └── kotlin/
│ │ │ └── software/
│ │ │ └── amazon/
│ │ │ └── app/
│ │ │ └── platform/
│ │ │ └── presenter/
│ │ │ └── molecule/
│ │ │ ├── DefaultMoleculeScopeFactoryTest.kt
│ │ │ ├── KotlinInjectInjectionTest.kt
│ │ │ └── MetroInjectionTest.kt
│ │ ├── desktopMain/
│ │ │ └── kotlin/
│ │ │ └── software/
│ │ │ └── amazon/
│ │ │ └── app/
│ │ │ └── platform/
│ │ │ └── presenter/
│ │ │ └── molecule/
│ │ │ └── DesktopMoleculeScopeFactory.kt
│ │ ├── iosMain/
│ │ │ └── kotlin/
│ │ │ └── software/
│ │ │ └── amazon/
│ │ │ └── app/
│ │ │ └── platform/
│ │ │ └── presenter/
│ │ │ └── molecule/
│ │ │ └── IosMoleculeScopeFactory.kt
│ │ ├── linuxMain/
│ │ │ └── kotlin/
│ │ │ └── software/
│ │ │ └── amazon/
│ │ │ └── app/
│ │ │ └── platform/
│ │ │ └── presenter/
│ │ │ └── molecule/
│ │ │ └── LinuxMoleculeScopeFactory.kt
│ │ └── wasmJsMain/
│ │ └── kotlin/
│ │ └── software/
│ │ └── amazon/
│ │ └── app/
│ │ └── platform/
│ │ └── presenter/
│ │ └── molecule/
│ │ └── WasmJsMoleculeScopeFactory.kt
│ ├── public/
│ │ ├── api/
│ │ │ ├── android/
│ │ │ │ └── public.api
│ │ │ └── desktop/
│ │ │ └── public.api
│ │ ├── build.gradle
│ │ └── src/
│ │ ├── commonMain/
│ │ │ └── kotlin/
│ │ │ └── software/
│ │ │ └── amazon/
│ │ │ └── app/
│ │ │ └── platform/
│ │ │ └── presenter/
│ │ │ └── molecule/
│ │ │ ├── LaunchMoleculePresenter.kt
│ │ │ ├── MoleculePresenter.kt
│ │ │ ├── MoleculeScope.kt
│ │ │ ├── MoleculeScopeFactory.kt
│ │ │ ├── ReturningCompositionLocalProvider.kt
│ │ │ └── backgesture/
│ │ │ ├── BackEventPresenter.kt
│ │ │ ├── BackGestureDispatcherPresenter.kt
│ │ │ └── CommonBackGestureDispatcherPresenter.kt
│ │ └── commonTest/
│ │ └── kotlin/
│ │ └── software/
│ │ └── amazon/
│ │ └── app/
│ │ └── platform/
│ │ └── presenter/
│ │ └── molecule/
│ │ ├── LaunchMoleculePresenterTest.kt
│ │ ├── MoleculeScopeTest.kt
│ │ ├── OnEventMemoizationTest.kt
│ │ └── backgesture/
│ │ └── CommonBackGestureDispatcherPresenterTest.kt
│ └── testing/
│ ├── api/
│ │ ├── android/
│ │ │ └── testing.api
│ │ └── desktop/
│ │ └── testing.api
│ ├── build.gradle
│ └── src/
│ ├── commonMain/
│ │ └── kotlin/
│ │ └── software/
│ │ └── amazon/
│ │ └── app/
│ │ └── platform/
│ │ └── presenter/
│ │ └── molecule/
│ │ ├── FakeMoleculeScopeFactory.kt
│ │ ├── TestMoleculeScope.kt
│ │ ├── TestPresenter.kt
│ │ └── backgesture/
│ │ └── TestBackGestureDispatcherPresenter.kt
│ └── commonTest/
│ └── kotlin/
│ └── software/
│ └── amazon/
│ └── app/
│ └── platform/
│ └── presenter/
│ └── molecule/
│ ├── FakeMoleculeScopeFactoryTest.kt
│ ├── TestMoleculeScopeTest.kt
│ ├── TestPresenterTest.kt
│ └── backgesture/
│ └── TestBackGestureDispatcherPresenterTest.kt
├── recipes/
│ ├── app/
│ │ ├── build.gradle
│ │ └── src/
│ │ ├── androidMain/
│ │ │ ├── AndroidManifest.xml
│ │ │ └── kotlin/
│ │ │ └── software/
│ │ │ └── amazon/
│ │ │ └── app/
│ │ │ └── platform/
│ │ │ └── recipes/
│ │ │ ├── AndroidAppComponent.kt
│ │ │ ├── AndroidApplication.kt
│ │ │ ├── MainActivity.kt
│ │ │ └── MainActivityViewModel.kt
│ │ ├── commonMain/
│ │ │ └── kotlin/
│ │ │ └── software/
│ │ │ └── amazon/
│ │ │ └── app/
│ │ │ └── platform/
│ │ │ └── recipes/
│ │ │ ├── AppComponent.kt
│ │ │ ├── DemoApplication.kt
│ │ │ └── TemplateProvider.kt
│ │ ├── desktopMain/
│ │ │ └── kotlin/
│ │ │ └── software/
│ │ │ └── amazon/
│ │ │ └── app/
│ │ │ └── platform/
│ │ │ └── recipes/
│ │ │ ├── DesktopApp.kt
│ │ │ ├── DesktopAppComponent.kt
│ │ │ └── Main.kt
│ │ ├── iosMain/
│ │ │ └── kotlin/
│ │ │ └── software/
│ │ │ └── amazon/
│ │ │ └── app/
│ │ │ └── platform/
│ │ │ └── recipes/
│ │ │ ├── IosAppComponent.kt
│ │ │ └── MainViewController.kt
│ │ └── wasmJsMain/
│ │ ├── kotlin/
│ │ │ └── software/
│ │ │ └── amazon/
│ │ │ └── app/
│ │ │ └── platform/
│ │ │ └── recipes/
│ │ │ ├── Main.kt
│ │ │ └── WasmJsAppComponent.kt
│ │ └── resources/
│ │ ├── index.html
│ │ └── styles.css
│ ├── common/
│ │ └── impl/
│ │ ├── build.gradle
│ │ └── src/
│ │ └── commonMain/
│ │ └── kotlin/
│ │ └── software/
│ │ └── amazon/
│ │ └── app/
│ │ └── platform/
│ │ └── recipes/
│ │ ├── appbar/
│ │ │ ├── AppBarConfig.kt
│ │ │ ├── AppBarConfigModel.kt
│ │ │ └── menu/
│ │ │ └── MenuPresenter.kt
│ │ ├── backstack/
│ │ │ ├── CrossSlideBackstackPresenter.kt
│ │ │ ├── CrossSlideBackstackRenderer.kt
│ │ │ ├── PresenterBackstackScope.kt
│ │ │ └── presenter/
│ │ │ └── BackstackChildPresenter.kt
│ │ ├── landing/
│ │ │ ├── LandingPresenter.kt
│ │ │ └── LandingRenderer.kt
│ │ ├── nav3/
│ │ │ ├── Navigation3ChildPresenter.kt
│ │ │ ├── Navigation3ChildRenderer.kt
│ │ │ ├── Navigation3HomePresenter.kt
│ │ │ └── Navigation3HomeRenderer.kt
│ │ ├── saveable/
│ │ │ └── ReturningSaveableStateHolder.kt
│ │ ├── swiftui/
│ │ │ ├── SwiftUiChildPresenter.kt
│ │ │ └── SwiftUiHomePresenter.kt
│ │ └── template/
│ │ ├── RecipesAppTemplate.kt
│ │ ├── RootPresenter.kt
│ │ └── RootPresenterRenderer.kt
│ └── recipesIosApp/
│ ├── recipesIosApp/
│ │ ├── Assets.xcassets/
│ │ │ ├── AccentColor.colorset/
│ │ │ │ └── Contents.json
│ │ │ ├── AppIcon.appiconset/
│ │ │ │ └── Contents.json
│ │ │ └── Contents.json
│ │ ├── ContentView.swift
│ │ ├── Info.plist
│ │ ├── PresenterViews/
│ │ │ ├── AppPlatform+Extensions.swift
│ │ │ ├── MoleculePresenterWrapper.swift
│ │ │ ├── PresenterView.swift
│ │ │ └── PresenterViewModel.swift
│ │ ├── RecipesIosApp.swift
│ │ └── SwiftUI/
│ │ ├── SwiftUiChildPresenterView.swift
│ │ ├── SwiftUiHomePresenterBuilder.swift
│ │ ├── SwiftUiHomePresenterView.swift
│ │ └── SwiftUiRootPresenterView.swift
│ └── recipesIosApp.xcodeproj/
│ └── project.pbxproj
├── renderer/
│ └── public/
│ ├── api/
│ │ ├── android/
│ │ │ └── public.api
│ │ └── desktop/
│ │ └── public.api
│ ├── build.gradle
│ └── src/
│ ├── commonMain/
│ │ └── kotlin/
│ │ └── software/
│ │ └── amazon/
│ │ └── app/
│ │ └── platform/
│ │ └── renderer/
│ │ ├── BaseRendererFactory.kt
│ │ ├── Renderer.kt
│ │ ├── RendererComponent.kt
│ │ ├── RendererFactory.kt
│ │ ├── RendererGraph.kt
│ │ └── RendererScope.kt
│ └── commonTest/
│ └── kotlin/
│ └── software/
│ └── amazon/
│ └── app/
│ └── platform/
│ └── renderer/
│ └── BaseRendererFactoryTest.kt
├── renderer-android-view/
│ └── public/
│ ├── api/
│ │ └── public.api
│ ├── build.gradle
│ └── src/
│ ├── androidInstrumentedTest/
│ │ ├── AndroidManifest.xml
│ │ ├── kotlin/
│ │ │ └── software/
│ │ │ └── amazon/
│ │ │ └── app/
│ │ │ └── platform/
│ │ │ ├── presenter/
│ │ │ │ └── molecule/
│ │ │ │ └── backgesture/
│ │ │ │ └── ForwardBackPressEventsToPresentersAndroidTest.kt
│ │ │ └── renderer/
│ │ │ ├── AndroidRendererFactoryTest.kt
│ │ │ ├── RecyclerViewViewHolderRendererTest.kt
│ │ │ ├── TestActivity.kt
│ │ │ ├── TestApplication.kt
│ │ │ ├── ViewBindingRendererTest.kt
│ │ │ └── ViewRendererTest.kt
│ │ └── res/
│ │ └── layout/
│ │ └── viewbinding_layout.xml
│ └── androidMain/
│ └── kotlin/
│ └── software/
│ └── amazon/
│ └── app/
│ └── platform/
│ ├── presenter/
│ │ └── molecule/
│ │ └── backgesture/
│ │ └── BackGestureDispatcherPresenterAndroid.kt
│ └── renderer/
│ ├── AndroidRendererFactory.kt
│ ├── BaseAndroidViewRenderer.kt
│ ├── RecyclerViewViewHolderRenderer.kt
│ ├── ViewBindingRenderer.kt
│ ├── ViewRenderer.kt
│ └── template/
│ └── AndroidTemplateRenderer.kt
├── renderer-compose-multiplatform/
│ └── public/
│ ├── api/
│ │ ├── android/
│ │ │ └── public.api
│ │ └── desktop/
│ │ └── public.api
│ ├── build.gradle
│ └── src/
│ ├── androidInstrumentedTest/
│ │ ├── AndroidManifest.xml
│ │ └── kotlin/
│ │ └── software/
│ │ └── amazon/
│ │ └── app/
│ │ └── platform/
│ │ ├── presenter/
│ │ │ └── molecule/
│ │ │ └── backgesture/
│ │ │ └── ForwardBackPressEventsToPresentersComposeTest.kt
│ │ └── renderer/
│ │ ├── ComposeAndroidRendererFactoryDeviceTest.kt
│ │ ├── TestActivity.kt
│ │ └── TestApplication.kt
│ ├── androidMain/
│ │ └── kotlin/
│ │ └── software/
│ │ └── amazon/
│ │ └── app/
│ │ └── platform/
│ │ └── renderer/
│ │ ├── AndroidViewWithinComposeRenderer.kt
│ │ ├── BaseComposeWithinAndroidViewRenderer.kt
│ │ ├── ComposeAndroidRendererFactory.kt
│ │ └── ComposeWithinAndroidViewRenderer.kt
│ ├── androidUnitTest/
│ │ └── kotlin/
│ │ └── software/
│ │ └── amazon/
│ │ └── app/
│ │ └── platform/
│ │ └── renderer/
│ │ └── ComposeAndroidRendererFactoryTest.kt
│ ├── commonMain/
│ │ └── kotlin/
│ │ └── software/
│ │ └── amazon/
│ │ └── app/
│ │ └── platform/
│ │ ├── presenter/
│ │ │ └── molecule/
│ │ │ └── backgesture/
│ │ │ └── BackGestureDispatcherPresenterCompose.kt
│ │ └── renderer/
│ │ ├── BaseComposeRenderer.kt
│ │ ├── ComposeRenderer.kt
│ │ └── ComposeRendererFactory.kt
│ └── desktopTest/
│ └── kotlin/
│ └── software/
│ └── amazon/
│ └── app/
│ └── platform/
│ └── renderer/
│ ├── ComposeRendererFactoryTest.kt
│ └── ComposeRendererTest.kt
├── robot/
│ └── public/
│ ├── api/
│ │ ├── android/
│ │ │ └── public.api
│ │ └── desktop/
│ │ └── public.api
│ ├── build.gradle
│ └── src/
│ ├── androidMain/
│ │ └── kotlin/
│ │ └── software/
│ │ └── amazon/
│ │ └── app/
│ │ └── platform/
│ │ └── robot/
│ │ ├── AndroidViewRobot.kt
│ │ ├── DefaultRootMatcherProvider.kt
│ │ └── RootMatcherProvider.kt
│ ├── androidUnitTest/
│ │ └── kotlin/
│ │ └── software/
│ │ └── amazon/
│ │ └── app/
│ │ └── platform/
│ │ └── robot/
│ │ └── WaiterTest.kt
│ ├── commonMain/
│ │ └── kotlin/
│ │ └── software/
│ │ └── amazon/
│ │ └── app/
│ │ └── platform/
│ │ └── robot/
│ │ ├── Robot.kt
│ │ ├── RobotComponent.kt
│ │ ├── RobotGraph.kt
│ │ └── internal/
│ │ └── RobotInternals.kt
│ ├── commonTest/
│ │ └── kotlin/
│ │ └── software/
│ │ └── amazon/
│ │ └── app/
│ │ └── platform/
│ │ └── robot/
│ │ └── RobotTest.kt
│ └── noWasmJsMain/
│ └── kotlin/
│ └── software/
│ └── amazon/
│ └── app/
│ └── platform/
│ └── robot/
│ └── Waiter.kt
├── robot-compose-multiplatform/
│ └── public/
│ ├── api/
│ │ ├── android/
│ │ │ └── public.api
│ │ └── desktop/
│ │ └── public.api
│ ├── build.gradle
│ └── src/
│ ├── appleAndDesktopTest/
│ │ └── kotlin/
│ │ └── software/
│ │ └── amazon/
│ │ └── app/
│ │ └── platform/
│ │ └── robot/
│ │ └── ComposeRobotTest.kt
│ └── commonMain/
│ └── kotlin/
│ └── software/
│ └── amazon/
│ └── app/
│ └── platform/
│ └── robot/
│ ├── ComposeInteractionsProvider.kt
│ └── ComposeRobot.kt
├── robot-internal/
│ └── public/
│ ├── api/
│ │ ├── android/
│ │ │ └── public.api
│ │ └── desktop/
│ │ └── public.api
│ ├── build.gradle
│ └── src/
│ ├── androidMain/
│ │ └── kotlin/
│ │ └── software/
│ │ └── amazon/
│ │ └── app/
│ │ └── platform/
│ │ └── robot/
│ │ └── internal/
│ │ └── DefaultRootScope.kt
│ ├── commonMain/
│ │ └── kotlin/
│ │ └── software/
│ │ └── amazon/
│ │ └── app/
│ │ └── platform/
│ │ └── robot/
│ │ └── internal/
│ │ ├── DefaultRootScope.kt
│ │ ├── RootScope.kt
│ │ └── RootScopeProvider.kt
│ ├── commonTest/
│ │ └── kotlin/
│ │ └── software/
│ │ └── amazon/
│ │ └── app/
│ │ └── platform/
│ │ └── robot/
│ │ └── internal/
│ │ └── RootScopeTest.kt
│ ├── desktopMain/
│ │ └── kotlin/
│ │ └── software/
│ │ └── amazon/
│ │ └── app/
│ │ └── platform/
│ │ └── robot/
│ │ └── internal/
│ │ └── DefaultRootScope.kt
│ ├── nativeMain/
│ │ └── kotlin/
│ │ └── software/
│ │ └── amazon/
│ │ └── app/
│ │ └── platform/
│ │ └── robot/
│ │ └── internal/
│ │ └── DefaultRootScope.kt
│ └── wasmJsMain/
│ └── kotlin/
│ └── software/
│ └── amazon/
│ └── app/
│ └── platform/
│ └── robot/
│ └── internal/
│ └── DefaultRootScope.kt
├── sample/
│ ├── app/
│ │ ├── build.gradle
│ │ ├── lint.xml
│ │ └── src/
│ │ ├── androidInstrumentedTest/
│ │ │ └── kotlin/
│ │ │ └── software/
│ │ │ └── amazon/
│ │ │ └── app/
│ │ │ └── platform/
│ │ │ └── sample/
│ │ │ ├── AndroidLoginUiTest.kt
│ │ │ ├── TestAndroidAppGraph.kt
│ │ │ ├── TestAndroidApplication.kt
│ │ │ └── TestRunner.kt
│ │ ├── androidMain/
│ │ │ ├── AndroidManifest.xml
│ │ │ ├── kotlin/
│ │ │ │ └── software/
│ │ │ │ └── amazon/
│ │ │ │ └── app/
│ │ │ │ └── platform/
│ │ │ │ └── sample/
│ │ │ │ ├── AndroidAppGraph.kt
│ │ │ │ ├── AndroidApplication.kt
│ │ │ │ ├── MainActivity.kt
│ │ │ │ └── MainActivityViewModel.kt
│ │ │ └── res/
│ │ │ ├── drawable/
│ │ │ │ ├── ic_launcher_background.xml
│ │ │ │ └── ic_launcher_foreground.xml
│ │ │ ├── mipmap-anydpi/
│ │ │ │ ├── ic_launcher.xml
│ │ │ │ └── ic_launcher_round.xml
│ │ │ └── values/
│ │ │ └── strings.xml
│ │ ├── commonMain/
│ │ │ └── kotlin/
│ │ │ └── software/
│ │ │ └── amazon/
│ │ │ └── app/
│ │ │ └── platform/
│ │ │ └── sample/
│ │ │ ├── AppGraph.kt
│ │ │ ├── DemoApplication.kt
│ │ │ └── TemplateProvider.kt
│ │ ├── desktopMain/
│ │ │ └── kotlin/
│ │ │ └── software/
│ │ │ └── amazon/
│ │ │ └── app/
│ │ │ └── platform/
│ │ │ └── sample/
│ │ │ ├── DesktopApp.kt
│ │ │ ├── DesktopAppGraph.kt
│ │ │ └── Main.kt
│ │ ├── desktopTest/
│ │ │ └── kotlin/
│ │ │ └── software/
│ │ │ └── amazon/
│ │ │ └── app/
│ │ │ └── platform/
│ │ │ └── sample/
│ │ │ ├── LoginUiTest.kt
│ │ │ ├── TestAnimationHelper.kt
│ │ │ └── TestDesktopAppGraph.kt
│ │ ├── iosMain/
│ │ │ └── kotlin/
│ │ │ └── software/
│ │ │ └── amazon/
│ │ │ └── app/
│ │ │ └── platform/
│ │ │ └── sample/
│ │ │ ├── IosAppGraph.kt
│ │ │ └── MainViewController.kt
│ │ └── wasmJsMain/
│ │ ├── kotlin/
│ │ │ └── software/
│ │ │ └── amazon/
│ │ │ └── app/
│ │ │ └── platform/
│ │ │ └── sample/
│ │ │ ├── Main.kt
│ │ │ └── WasmJsAppGraph.kt
│ │ └── resources/
│ │ ├── index.html
│ │ └── styles.css
│ ├── iosApp/
│ │ ├── Configuration/
│ │ │ └── Config.xcconfig
│ │ ├── iosApp/
│ │ │ ├── Assets.xcassets/
│ │ │ │ ├── AccentColor.colorset/
│ │ │ │ │ └── Contents.json
│ │ │ │ ├── AppIcon.appiconset/
│ │ │ │ │ └── Contents.json
│ │ │ │ └── Contents.json
│ │ │ ├── ComposeContentView.swift
│ │ │ ├── Info.plist
│ │ │ ├── Preview Content/
│ │ │ │ └── Preview Assets.xcassets/
│ │ │ │ └── Contents.json
│ │ │ └── iOSApp.swift
│ │ └── iosApp.xcodeproj/
│ │ └── project.pbxproj
│ ├── login/
│ │ ├── impl/
│ │ │ ├── build.gradle
│ │ │ └── src/
│ │ │ ├── appleAndDesktopTest/
│ │ │ │ └── kotlin/
│ │ │ │ └── software/
│ │ │ │ └── amazon/
│ │ │ │ └── app/
│ │ │ │ └── platform/
│ │ │ │ └── sample/
│ │ │ │ └── login/
│ │ │ │ └── LoginRendererTest.kt
│ │ │ ├── commonMain/
│ │ │ │ └── kotlin/
│ │ │ │ └── software/
│ │ │ │ └── amazon/
│ │ │ │ └── app/
│ │ │ │ └── platform/
│ │ │ │ └── sample/
│ │ │ │ └── login/
│ │ │ │ ├── LoginPresenterImpl.kt
│ │ │ │ └── LoginRenderer.kt
│ │ │ └── commonTest/
│ │ │ └── kotlin/
│ │ │ └── software/
│ │ │ └── amazon/
│ │ │ └── app/
│ │ │ └── platform/
│ │ │ └── sample/
│ │ │ └── login/
│ │ │ └── LoginPresenterImplTest.kt
│ │ ├── impl-robots/
│ │ │ ├── build.gradle
│ │ │ └── src/
│ │ │ └── commonMain/
│ │ │ └── kotlin/
│ │ │ └── software/
│ │ │ └── amazon/
│ │ │ └── app/
│ │ │ └── platform/
│ │ │ └── sample/
│ │ │ └── login/
│ │ │ └── LoginRobot.kt
│ │ └── public/
│ │ ├── build.gradle
│ │ └── src/
│ │ └── commonMain/
│ │ └── kotlin/
│ │ └── software/
│ │ └── amazon/
│ │ └── app/
│ │ └── platform/
│ │ └── sample/
│ │ └── login/
│ │ └── LoginPresenter.kt
│ ├── navigation/
│ │ ├── impl/
│ │ │ ├── build.gradle
│ │ │ └── src/
│ │ │ ├── commonMain/
│ │ │ │ └── kotlin/
│ │ │ │ └── software/
│ │ │ │ └── amazon/
│ │ │ │ └── app/
│ │ │ │ └── platform/
│ │ │ │ └── sample/
│ │ │ │ └── navigation/
│ │ │ │ └── NavigationPresenterImpl.kt
│ │ │ └── commonTest/
│ │ │ └── kotlin/
│ │ │ └── software/
│ │ │ └── amazon/
│ │ │ └── app/
│ │ │ └── platform/
│ │ │ └── sample/
│ │ │ └── navigation/
│ │ │ └── NavigationPresenterImplTest.kt
│ │ └── public/
│ │ ├── build.gradle
│ │ └── src/
│ │ └── commonMain/
│ │ └── kotlin/
│ │ └── software/
│ │ └── amazon/
│ │ └── app/
│ │ └── platform/
│ │ └── sample/
│ │ └── navigation/
│ │ └── NavigationPresenter.kt
│ ├── templates/
│ │ ├── impl/
│ │ │ ├── build.gradle
│ │ │ └── src/
│ │ │ ├── androidMain/
│ │ │ │ ├── kotlin/
│ │ │ │ │ └── software/
│ │ │ │ │ └── amazon/
│ │ │ │ │ └── app/
│ │ │ │ │ └── platform/
│ │ │ │ │ └── sample/
│ │ │ │ │ └── template/
│ │ │ │ │ └── AndroidSampleAppTemplateRenderer.kt
│ │ │ │ └── res/
│ │ │ │ └── layout/
│ │ │ │ └── sample_app_template_root.xml
│ │ │ └── commonMain/
│ │ │ └── kotlin/
│ │ │ └── software/
│ │ │ └── amazon/
│ │ │ └── app/
│ │ │ └── platform/
│ │ │ └── sample/
│ │ │ └── template/
│ │ │ └── ComposeSampleAppTemplateRenderer.kt
│ │ └── public/
│ │ ├── build.gradle
│ │ └── src/
│ │ ├── commonMain/
│ │ │ └── kotlin/
│ │ │ └── software/
│ │ │ └── amazon/
│ │ │ └── app/
│ │ │ └── platform/
│ │ │ └── sample/
│ │ │ └── template/
│ │ │ ├── SampleAppTemplate.kt
│ │ │ ├── SampleAppTemplatePresenter.kt
│ │ │ └── animation/
│ │ │ └── AnimationContentKey.kt
│ │ └── commonTest/
│ │ └── kotlin/
│ │ └── software/
│ │ └── amazon/
│ │ └── app/
│ │ └── platform/
│ │ └── sample/
│ │ └── template/
│ │ └── SampleAppTemplatePresenterTest.kt
│ └── user/
│ ├── impl/
│ │ ├── build.gradle
│ │ └── src/
│ │ ├── androidMain/
│ │ │ └── kotlin/
│ │ │ └── software/
│ │ │ └── amazon/
│ │ │ └── app/
│ │ │ └── platform/
│ │ │ └── sample/
│ │ │ └── user/
│ │ │ └── AndroidAnimationsHelper.kt
│ │ ├── appleAndDesktopMain/
│ │ │ └── kotlin/
│ │ │ └── software/
│ │ │ └── amazon/
│ │ │ └── app/
│ │ │ └── platform/
│ │ │ └── sample/
│ │ │ └── user/
│ │ │ └── DefaultAnimationsHelper.kt
│ │ ├── commonMain/
│ │ │ └── kotlin/
│ │ │ └── software/
│ │ │ └── amazon/
│ │ │ └── app/
│ │ │ └── platform/
│ │ │ └── sample/
│ │ │ └── user/
│ │ │ ├── AnimationHelper.kt
│ │ │ ├── SessionTimeout.kt
│ │ │ ├── UserGraph.kt
│ │ │ ├── UserImpl.kt
│ │ │ ├── UserManagerImpl.kt
│ │ │ ├── UserPageDetailPresenter.kt
│ │ │ ├── UserPageDetailRenderer.kt
│ │ │ ├── UserPageListPresenter.kt
│ │ │ ├── UserPageListRenderer.kt
│ │ │ └── UserPagePresenterImpl.kt
│ │ ├── commonTest/
│ │ │ └── kotlin/
│ │ │ └── software/
│ │ │ └── amazon/
│ │ │ └── app/
│ │ │ └── platform/
│ │ │ └── sample/
│ │ │ └── user/
│ │ │ ├── FakeAnimationHelper.kt
│ │ │ ├── SessionTimeoutTest.kt
│ │ │ ├── UserManagerImplTest.kt
│ │ │ └── UserPagePresenterImplTest.kt
│ │ └── wasmJsMain/
│ │ └── kotlin/
│ │ └── software/
│ │ └── amazon/
│ │ └── app/
│ │ └── platform/
│ │ └── sample/
│ │ └── user/
│ │ └── DefaultAnimationsHelper.kt
│ ├── impl-robots/
│ │ ├── build.gradle
│ │ └── src/
│ │ └── commonMain/
│ │ └── kotlin/
│ │ └── software/
│ │ └── amazon/
│ │ └── app/
│ │ └── platform/
│ │ └── sample/
│ │ └── user/
│ │ └── UserPageRobot.kt
│ ├── public/
│ │ ├── build.gradle
│ │ └── src/
│ │ └── commonMain/
│ │ └── kotlin/
│ │ └── software/
│ │ └── amazon/
│ │ └── app/
│ │ └── platform/
│ │ └── sample/
│ │ └── user/
│ │ ├── User.kt
│ │ ├── UserManager.kt
│ │ ├── UserPagePresenter.kt
│ │ └── UserScope.kt
│ └── testing/
│ ├── build.gradle
│ └── src/
│ └── commonMain/
│ └── kotlin/
│ └── software/
│ └── amazon/
│ └── app/
│ └── platform/
│ └── sample/
│ └── user/
│ ├── FakeUser.kt
│ └── FakeUserManager.kt
├── scope/
│ ├── public/
│ │ ├── api/
│ │ │ ├── android/
│ │ │ │ └── public.api
│ │ │ └── desktop/
│ │ │ └── public.api
│ │ ├── build.gradle
│ │ └── src/
│ │ ├── commonMain/
│ │ │ └── kotlin/
│ │ │ └── software/
│ │ │ └── amazon/
│ │ │ └── app/
│ │ │ └── platform/
│ │ │ └── scope/
│ │ │ ├── RootScopeProvider.kt
│ │ │ ├── Scope.kt
│ │ │ ├── ScopeImpl.kt
│ │ │ ├── Scoped.kt
│ │ │ └── coroutine/
│ │ │ ├── CoroutineScopeScoped.kt
│ │ │ └── CoroutineScopeService.kt
│ │ └── commonTest/
│ │ └── kotlin/
│ │ └── software/
│ │ └── amazon/
│ │ └── app/
│ │ └── platform/
│ │ └── scope/
│ │ ├── ScopeTest.kt
│ │ └── coroutine/
│ │ ├── CoroutineScopeScopedTest.kt
│ │ └── CoroutineScopeServiceTest.kt
│ └── testing/
│ ├── api/
│ │ ├── android/
│ │ │ └── testing.api
│ │ └── desktop/
│ │ └── testing.api
│ ├── build.gradle
│ └── src/
│ ├── commonMain/
│ │ └── kotlin/
│ │ └── software/
│ │ └── amazon/
│ │ └── app/
│ │ └── platform/
│ │ └── scope/
│ │ ├── RunTestWithScope.kt
│ │ └── TestScope.kt
│ └── commonTest/
│ └── kotlin/
│ └── software/
│ └── amazon/
│ └── app/
│ └── platform/
│ └── scope/
│ ├── RunTestWithScopeTest.kt
│ └── TestScopeTest.kt
└── settings.gradle
================================================
FILE CONTENTS
================================================
================================================
FILE: .editorconfig
================================================
[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
max_line_length = 120
tab_width = 4
ij_continuation_indent_size = 8
ij_formatter_off_tag = @formatter:off
ij_formatter_on_tag = @formatter:on
ij_formatter_tags_enabled = true
ij_smart_tabs = false
ij_visual_guides = none
ij_wrap_on_typing = false
[*.java]
ij_java_align_consecutive_assignments = false
ij_java_align_consecutive_variable_declarations = false
ij_java_align_group_field_declarations = false
ij_java_align_multiline_annotation_parameters = false
ij_java_align_multiline_array_initializer_expression = false
ij_java_align_multiline_assignment = false
ij_java_align_multiline_binary_operation = false
ij_java_align_multiline_chained_methods = false
ij_java_align_multiline_deconstruction_list_components = true
ij_java_align_multiline_extends_list = false
ij_java_align_multiline_for = true
ij_java_align_multiline_method_parentheses = false
ij_java_align_multiline_parameters = true
ij_java_align_multiline_parameters_in_calls = false
ij_java_align_multiline_parenthesized_expression = false
ij_java_align_multiline_records = true
ij_java_align_multiline_resources = true
ij_java_align_multiline_ternary_operation = false
ij_java_align_multiline_text_blocks = false
ij_java_align_multiline_throws_list = false
ij_java_align_subsequent_simple_methods = false
ij_java_align_throws_keyword = false
ij_java_align_types_in_multi_catch = true
ij_java_annotation_parameter_wrap = off
ij_java_array_initializer_new_line_after_left_brace = false
ij_java_array_initializer_right_brace_on_new_line = false
ij_java_array_initializer_wrap = off
ij_java_assert_statement_colon_on_next_line = false
ij_java_assert_statement_wrap = off
ij_java_assignment_wrap = off
ij_java_binary_operation_sign_on_next_line = true
ij_java_binary_operation_wrap = off
ij_java_blank_lines_after_anonymous_class_header = 0
ij_java_blank_lines_after_class_header = 0
ij_java_blank_lines_after_imports = 1
ij_java_blank_lines_after_package = 1
ij_java_blank_lines_around_class = 1
ij_java_blank_lines_around_field = 0
ij_java_blank_lines_around_field_in_interface = 0
ij_java_blank_lines_around_initializer = 1
ij_java_blank_lines_around_method = 1
ij_java_blank_lines_around_method_in_interface = 1
ij_java_blank_lines_before_class_end = 0
ij_java_blank_lines_before_imports = 1
ij_java_blank_lines_before_method_body = 0
ij_java_blank_lines_before_package = 0
ij_java_block_brace_style = end_of_line
ij_java_block_comment_add_space = false
ij_java_block_comment_at_first_column = true
ij_java_builder_methods = none
ij_java_call_parameters_new_line_after_left_paren = false
ij_java_call_parameters_right_paren_on_new_line = false
ij_java_call_parameters_wrap = off
ij_java_case_statement_on_separate_line = true
ij_java_catch_on_new_line = false
ij_java_class_annotation_wrap = split_into_lines
ij_java_class_brace_style = end_of_line
ij_java_class_count_to_use_import_on_demand = 99
ij_java_class_names_in_javadoc = 3
ij_java_deconstruction_list_wrap = normal
ij_java_do_not_indent_top_level_class_members = false
ij_java_do_not_wrap_after_single_annotation = false
ij_java_do_not_wrap_after_single_annotation_in_parameter = false
ij_java_do_while_brace_force = never
ij_java_doc_add_blank_line_after_description = true
ij_java_doc_add_blank_line_after_param_comments = false
ij_java_doc_add_blank_line_after_return = false
ij_java_doc_add_p_tag_on_empty_lines = false
ij_java_doc_align_exception_comments = true
ij_java_doc_align_param_comments = true
ij_java_doc_do_not_wrap_if_one_line = false
ij_java_doc_enable_formatting = true
ij_java_doc_enable_leading_asterisks = true
ij_java_doc_indent_on_continuation = false
ij_java_doc_keep_empty_lines = true
ij_java_doc_keep_empty_parameter_tag = true
ij_java_doc_keep_empty_return_tag = true
ij_java_doc_keep_empty_throws_tag = true
ij_java_doc_keep_invalid_tags = true
ij_java_doc_param_description_on_new_line = false
ij_java_doc_preserve_line_breaks = false
ij_java_doc_use_throws_not_exception_tag = true
ij_java_else_on_new_line = false
ij_java_enum_constants_wrap = off
ij_java_extends_keyword_wrap = off
ij_java_extends_list_wrap = off
ij_java_field_annotation_wrap = split_into_lines
ij_java_field_name_prefix = m
ij_java_finally_on_new_line = false
ij_java_for_brace_force = never
ij_java_for_statement_new_line_after_left_paren = false
ij_java_for_statement_right_paren_on_new_line = false
ij_java_for_statement_wrap = off
ij_java_generate_final_locals = false
ij_java_generate_final_parameters = false
ij_java_if_brace_force = never
ij_java_imports_layout = android.**,|,com.**,|,junit.**,|,net.**,|,org.**,|,java.**,|,javax.**,|,*,|,$*,|
ij_java_indent_case_from_switch = true
ij_java_insert_inner_class_imports = false
ij_java_insert_override_annotation = true
ij_java_keep_blank_lines_before_right_brace = 2
ij_java_keep_blank_lines_between_package_declaration_and_header = 2
ij_java_keep_blank_lines_in_code = 2
ij_java_keep_blank_lines_in_declarations = 2
ij_java_keep_builder_methods_indents = false
ij_java_keep_control_statement_in_one_line = true
ij_java_keep_first_column_comment = true
ij_java_keep_indents_on_empty_lines = false
ij_java_keep_line_breaks = true
ij_java_keep_multiple_expressions_in_one_line = false
ij_java_keep_simple_blocks_in_one_line = false
ij_java_keep_simple_classes_in_one_line = false
ij_java_keep_simple_lambdas_in_one_line = false
ij_java_keep_simple_methods_in_one_line = false
ij_java_label_indent_absolute = false
ij_java_label_indent_size = 0
ij_java_lambda_brace_style = end_of_line
ij_java_layout_static_imports_separately = true
ij_java_line_comment_add_space = false
ij_java_line_comment_add_space_on_reformat = false
ij_java_line_comment_at_first_column = true
ij_java_method_annotation_wrap = split_into_lines
ij_java_method_brace_style = end_of_line
ij_java_method_call_chain_wrap = off
ij_java_method_parameters_new_line_after_left_paren = false
ij_java_method_parameters_right_paren_on_new_line = false
ij_java_method_parameters_wrap = off
ij_java_modifier_list_wrap = false
ij_java_multi_catch_types_wrap = normal
ij_java_names_count_to_use_import_on_demand = 99
ij_java_new_line_after_lparen_in_annotation = false
ij_java_new_line_after_lparen_in_deconstruction_pattern = true
ij_java_new_line_after_lparen_in_record_header = false
ij_java_parameter_annotation_wrap = off
ij_java_parentheses_expression_new_line_after_left_paren = false
ij_java_parentheses_expression_right_paren_on_new_line = false
ij_java_place_assignment_sign_on_next_line = false
ij_java_prefer_longer_names = true
ij_java_prefer_parameters_wrap = false
ij_java_record_components_wrap = normal
ij_java_repeat_synchronized = true
ij_java_replace_instanceof_and_cast = false
ij_java_replace_null_check = true
ij_java_replace_sum_lambda_with_method_ref = true
ij_java_resource_list_new_line_after_left_paren = false
ij_java_resource_list_right_paren_on_new_line = false
ij_java_resource_list_wrap = off
ij_java_rparen_on_new_line_in_annotation = false
ij_java_rparen_on_new_line_in_deconstruction_pattern = true
ij_java_rparen_on_new_line_in_record_header = false
ij_java_space_after_closing_angle_bracket_in_type_argument = false
ij_java_space_after_colon = true
ij_java_space_after_comma = true
ij_java_space_after_comma_in_type_arguments = true
ij_java_space_after_for_semicolon = true
ij_java_space_after_quest = true
ij_java_space_after_type_cast = true
ij_java_space_before_annotation_array_initializer_left_brace = false
ij_java_space_before_annotation_parameter_list = false
ij_java_space_before_array_initializer_left_brace = false
ij_java_space_before_catch_keyword = true
ij_java_space_before_catch_left_brace = true
ij_java_space_before_catch_parentheses = true
ij_java_space_before_class_left_brace = true
ij_java_space_before_colon = true
ij_java_space_before_colon_in_foreach = true
ij_java_space_before_comma = false
ij_java_space_before_deconstruction_list = false
ij_java_space_before_do_left_brace = true
ij_java_space_before_else_keyword = true
ij_java_space_before_else_left_brace = true
ij_java_space_before_finally_keyword = true
ij_java_space_before_finally_left_brace = true
ij_java_space_before_for_left_brace = true
ij_java_space_before_for_parentheses = true
ij_java_space_before_for_semicolon = false
ij_java_space_before_if_left_brace = true
ij_java_space_before_if_parentheses = true
ij_java_space_before_method_call_parentheses = false
ij_java_space_before_method_left_brace = true
ij_java_space_before_method_parentheses = false
ij_java_space_before_opening_angle_bracket_in_type_parameter = false
ij_java_space_before_quest = true
ij_java_space_before_switch_left_brace = true
ij_java_space_before_switch_parentheses = true
ij_java_space_before_synchronized_left_brace = true
ij_java_space_before_synchronized_parentheses = true
ij_java_space_before_try_left_brace = true
ij_java_space_before_try_parentheses = true
ij_java_space_before_type_parameter_list = false
ij_java_space_before_while_keyword = true
ij_java_space_before_while_left_brace = true
ij_java_space_before_while_parentheses = true
ij_java_space_inside_one_line_enum_braces = false
ij_java_space_within_empty_array_initializer_braces = false
ij_java_space_within_empty_method_call_parentheses = false
ij_java_space_within_empty_method_parentheses = false
ij_java_spaces_around_additive_operators = true
ij_java_spaces_around_annotation_eq = true
ij_java_spaces_around_assignment_operators = true
ij_java_spaces_around_bitwise_operators = true
ij_java_spaces_around_equality_operators = true
ij_java_spaces_around_lambda_arrow = true
ij_java_spaces_around_logical_operators = true
ij_java_spaces_around_method_ref_dbl_colon = false
ij_java_spaces_around_multiplicative_operators = true
ij_java_spaces_around_relational_operators = true
ij_java_spaces_around_shift_operators = true
ij_java_spaces_around_type_bounds_in_type_parameters = true
ij_java_spaces_around_unary_operator = false
ij_java_spaces_within_angle_brackets = false
ij_java_spaces_within_annotation_parentheses = false
ij_java_spaces_within_array_initializer_braces = false
ij_java_spaces_within_braces = false
ij_java_spaces_within_brackets = false
ij_java_spaces_within_cast_parentheses = false
ij_java_spaces_within_catch_parentheses = false
ij_java_spaces_within_deconstruction_list = false
ij_java_spaces_within_for_parentheses = false
ij_java_spaces_within_if_parentheses = false
ij_java_spaces_within_method_call_parentheses = false
ij_java_spaces_within_method_parentheses = false
ij_java_spaces_within_parentheses = false
ij_java_spaces_within_record_header = false
ij_java_spaces_within_switch_parentheses = false
ij_java_spaces_within_synchronized_parentheses = false
ij_java_spaces_within_try_parentheses = false
ij_java_spaces_within_while_parentheses = false
ij_java_special_else_if_treatment = true
ij_java_subclass_name_suffix = Impl
ij_java_ternary_operation_signs_on_next_line = false
ij_java_ternary_operation_wrap = off
ij_java_test_name_suffix = Test
ij_java_throws_keyword_wrap = off
ij_java_throws_list_wrap = off
ij_java_use_external_annotations = false
ij_java_use_fq_class_names = false
ij_java_use_relative_indents = false
ij_java_use_single_class_imports = true
ij_java_variable_annotation_wrap = off
ij_java_visibility = public
ij_java_while_brace_force = never
ij_java_while_on_new_line = false
ij_java_wrap_comments = false
ij_java_wrap_first_method_in_call_chain = false
ij_java_wrap_long_lines = false
[*.markdown]
ij_markdown_force_one_space_after_blockquote_symbol = true
ij_markdown_force_one_space_after_header_symbol = true
ij_markdown_force_one_space_after_list_bullet = true
ij_markdown_force_one_space_between_words = true
ij_markdown_format_tables = true
ij_markdown_insert_quote_arrows_on_wrap = true
ij_markdown_keep_indents_on_empty_lines = false
ij_markdown_keep_line_breaks_inside_text_blocks = true
ij_markdown_max_lines_around_block_elements = 1
ij_markdown_max_lines_around_header = 1
ij_markdown_max_lines_between_paragraphs = 1
ij_markdown_min_lines_around_block_elements = 1
ij_markdown_min_lines_around_header = 1
ij_markdown_min_lines_between_paragraphs = 1
ij_markdown_wrap_text_if_long = true
ij_markdown_wrap_text_inside_blockquotes = true
[*.properties]
ij_properties_align_group_field_declarations = false
ij_properties_keep_blank_lines = false
ij_properties_key_value_delimiter = equals
ij_properties_spaces_around_key_value_delimiter = false
[.editorconfig]
ij_editorconfig_align_group_field_declarations = false
ij_editorconfig_space_after_colon = false
ij_editorconfig_space_after_comma = true
ij_editorconfig_space_before_colon = false
ij_editorconfig_space_before_comma = false
ij_editorconfig_spaces_around_assignment_operators = true
[{*.ant,*.fxml,*.jhm,*.jnlp,*.jrxml,*.rng,*.tld,*.wsdl,*.xml,*.xsd,*.xsl,*.xslt,*.xul}]
ij_continuation_indent_size = 4
ij_xml_align_attributes = false
ij_xml_align_text = false
ij_xml_attribute_wrap = normal
ij_xml_block_comment_add_space = false
ij_xml_block_comment_at_first_column = true
ij_xml_keep_blank_lines = 2
ij_xml_keep_indents_on_empty_lines = false
ij_xml_keep_line_breaks = false
ij_xml_keep_line_breaks_in_text = true
ij_xml_keep_whitespaces = false
ij_xml_keep_whitespaces_around_cdata = preserve
ij_xml_keep_whitespaces_inside_cdata = false
ij_xml_line_comment_at_first_column = true
ij_xml_space_after_tag_name = false
ij_xml_space_around_equals_in_attribute = false
ij_xml_space_inside_empty_tag = true
ij_xml_text_wrap = normal
ij_xml_use_custom_settings = true
[{*.apinotes,*.yaml,*.yml,.clang-format,.clang-tidy,_clang-format}]
indent_size = 2
ij_yaml_align_values_properties = do_not_align
ij_yaml_autoinsert_sequence_marker = true
ij_yaml_block_mapping_on_new_line = false
ij_yaml_indent_sequence_value = true
ij_yaml_keep_indents_on_empty_lines = false
ij_yaml_keep_line_breaks = true
ij_yaml_sequence_on_new_line = false
ij_yaml_space_before_colon = false
ij_yaml_spaces_within_braces = true
ij_yaml_spaces_within_brackets = true
[{*.bash,*.sh,*.zsh}]
indent_size = 2
tab_width = 2
ij_shell_binary_ops_start_line = false
ij_shell_keep_column_alignment_padding = false
ij_shell_minify_program = false
ij_shell_redirect_followed_by_space = false
ij_shell_switch_cases_indented = false
ij_shell_use_unix_line_separator = true
[{*.c,*.c++,*.c++m,*.cc,*.ccm,*.cp,*.cpp,*.cppm,*.cu,*.cuh,*.cxx,*.cxxm,*.h,*.h++,*.hh,*.hp,*.hpp,*.hxx,*.i,*.icc,*.ii,*.inl,*.ino,*.ipp,*.ixx,*.m,*.mm,*.mxx,*.pch,*.tcc,*.tpp}]
ij_c_add_brief_tag = false
ij_c_add_getter_prefix = true
ij_c_add_setter_prefix = true
ij_c_align_dictionary_pair_values = false
ij_c_align_group_field_declarations = false
ij_c_align_init_list_in_columns = true
ij_c_align_multiline_array_initializer_expression = true
ij_c_align_multiline_assignment = true
ij_c_align_multiline_binary_operation = true
ij_c_align_multiline_chained_methods = false
ij_c_align_multiline_for = true
ij_c_align_multiline_ternary_operation = true
ij_c_array_initializer_comma_on_next_line = false
ij_c_array_initializer_new_line_after_left_brace = false
ij_c_array_initializer_right_brace_on_new_line = false
ij_c_array_initializer_wrap = normal
ij_c_assignment_wrap = off
ij_c_binary_operation_sign_on_next_line = false
ij_c_binary_operation_wrap = normal
ij_c_blank_lines_after_class_header = 0
ij_c_blank_lines_after_imports = 1
ij_c_blank_lines_around_class = 1
ij_c_blank_lines_around_field = 0
ij_c_blank_lines_around_field_in_interface = 0
ij_c_blank_lines_around_method = 1
ij_c_blank_lines_around_method_in_interface = 1
ij_c_blank_lines_around_namespace = 0
ij_c_blank_lines_around_properties_in_declaration = 0
ij_c_blank_lines_around_properties_in_interface = 0
ij_c_blank_lines_before_imports = 1
ij_c_blank_lines_before_method_body = 0
ij_c_block_brace_placement = end_of_line
ij_c_block_brace_style = end_of_line
ij_c_block_comment_at_first_column = true
ij_c_catch_on_new_line = false
ij_c_class_brace_style = end_of_line
ij_c_class_constructor_init_list_align_multiline = true
ij_c_class_constructor_init_list_comma_on_next_line = false
ij_c_class_constructor_init_list_new_line_after_colon = never
ij_c_class_constructor_init_list_new_line_before_colon = if_long
ij_c_class_constructor_init_list_wrap = normal
ij_c_copy_is_deep = false
ij_c_create_interface_for_categories = true
ij_c_declare_generated_methods = true
ij_c_description_include_member_names = true
ij_c_discharged_short_ternary_operator = false
ij_c_do_not_add_breaks = false
ij_c_do_while_brace_force = never
ij_c_else_on_new_line = false
ij_c_enum_constants_comma_on_next_line = false
ij_c_enum_constants_wrap = on_every_item
ij_c_for_brace_force = never
ij_c_for_statement_new_line_after_left_paren = false
ij_c_for_statement_right_paren_on_new_line = false
ij_c_for_statement_wrap = off
ij_c_function_brace_placement = end_of_line
ij_c_function_call_arguments_align_multiline = true
ij_c_function_call_arguments_align_multiline_pars = false
ij_c_function_call_arguments_comma_on_next_line = false
ij_c_function_call_arguments_new_line_after_lpar = false
ij_c_function_call_arguments_new_line_before_rpar = false
ij_c_function_call_arguments_wrap = normal
ij_c_function_non_top_after_return_type_wrap = normal
ij_c_function_parameters_align_multiline = true
ij_c_function_parameters_align_multiline_pars = false
ij_c_function_parameters_comma_on_next_line = false
ij_c_function_parameters_new_line_after_lpar = false
ij_c_function_parameters_new_line_before_rpar = false
ij_c_function_parameters_wrap = normal
ij_c_function_top_after_return_type_wrap = normal
ij_c_generate_additional_eq_operators = true
ij_c_generate_additional_rel_operators = true
ij_c_generate_class_constructor = true
ij_c_generate_comparison_operators_use_std_tie = false
ij_c_generate_instance_variables_for_properties = ask
ij_c_generate_operators_as_members = true
ij_c_header_guard_style_pattern = ${PROJECT_NAME}_${FILE_NAME}_${EXT}
ij_c_if_brace_force = never
ij_c_in_line_short_ternary_operator = true
ij_c_indent_block_comment = true
ij_c_indent_c_struct_members = 4
ij_c_indent_case_from_switch = true
ij_c_indent_class_members = 4
ij_c_indent_directive_as_code = false
ij_c_indent_implementation_members = 0
ij_c_indent_inside_code_block = 4
ij_c_indent_interface_members = 0
ij_c_indent_interface_members_except_ivars_block = false
ij_c_indent_namespace_members = 4
ij_c_indent_preprocessor_directive = 0
ij_c_indent_visibility_keywords = 0
ij_c_insert_override = true
ij_c_insert_virtual_with_override = false
ij_c_introduce_auto_consts = false
ij_c_introduce_auto_vars = false
ij_c_introduce_const_params = false
ij_c_introduce_const_vars = false
ij_c_introduce_constexpr_consts = false
ij_c_introduce_generate_property = false
ij_c_introduce_generate_synthesize = true
ij_c_introduce_globals_to_header = true
ij_c_introduce_prop_to_private_category = false
ij_c_introduce_static_consts = true
ij_c_introduce_use_ns_types = false
ij_c_ivars_prefix = _
ij_c_keep_blank_lines_before_end = 2
ij_c_keep_blank_lines_before_right_brace = 2
ij_c_keep_blank_lines_in_code = 2
ij_c_keep_blank_lines_in_declarations = 2
ij_c_keep_case_expressions_in_one_line = false
ij_c_keep_control_statement_in_one_line = true
ij_c_keep_directive_at_first_column = true
ij_c_keep_first_column_comment = true
ij_c_keep_line_breaks = true
ij_c_keep_nested_namespaces_in_one_line = false
ij_c_keep_simple_blocks_in_one_line = true
ij_c_keep_simple_methods_in_one_line = true
ij_c_keep_structures_in_one_line = false
ij_c_lambda_capture_list_align_multiline = false
ij_c_lambda_capture_list_align_multiline_bracket = false
ij_c_lambda_capture_list_comma_on_next_line = false
ij_c_lambda_capture_list_new_line_after_lbracket = false
ij_c_lambda_capture_list_new_line_before_rbracket = false
ij_c_lambda_capture_list_wrap = off
ij_c_line_comment_add_space = false
ij_c_line_comment_at_first_column = true
ij_c_method_brace_placement = end_of_line
ij_c_method_call_arguments_align_by_colons = true
ij_c_method_call_arguments_align_multiline = false
ij_c_method_call_arguments_special_dictionary_pairs_treatment = true
ij_c_method_call_arguments_wrap = off
ij_c_method_call_chain_wrap = off
ij_c_method_parameters_align_by_colons = true
ij_c_method_parameters_align_multiline = false
ij_c_method_parameters_wrap = off
ij_c_namespace_brace_placement = end_of_line
ij_c_parentheses_expression_new_line_after_left_paren = false
ij_c_parentheses_expression_right_paren_on_new_line = false
ij_c_place_assignment_sign_on_next_line = false
ij_c_property_nonatomic = true
ij_c_put_ivars_to_implementation = true
ij_c_refactor_compatibility_aliases_and_classes = true
ij_c_refactor_properties_and_ivars = true
ij_c_release_style = ivar
ij_c_retain_object_parameters_in_constructor = true
ij_c_semicolon_after_method_signature = false
ij_c_shift_operation_align_multiline = true
ij_c_shift_operation_wrap = normal
ij_c_show_non_virtual_functions = false
ij_c_space_after_colon = true
ij_c_space_after_colon_in_foreach = true
ij_c_space_after_colon_in_selector = false
ij_c_space_after_comma = true
ij_c_space_after_cup_in_blocks = false
ij_c_space_after_dictionary_literal_colon = true
ij_c_space_after_for_semicolon = true
ij_c_space_after_init_list_colon = true
ij_c_space_after_method_parameter_type_parentheses = false
ij_c_space_after_method_return_type_parentheses = false
ij_c_space_after_pointer_in_declaration = false
ij_c_space_after_quest = true
ij_c_space_after_reference_in_declaration = false
ij_c_space_after_reference_in_rvalue = false
ij_c_space_after_structures_rbrace = true
ij_c_space_after_superclass_colon = true
ij_c_space_after_type_cast = true
ij_c_space_after_visibility_sign_in_method_declaration = true
ij_c_space_before_autorelease_pool_lbrace = true
ij_c_space_before_catch_keyword = true
ij_c_space_before_catch_left_brace = true
ij_c_space_before_catch_parentheses = true
ij_c_space_before_category_parentheses = true
ij_c_space_before_chained_send_message = true
ij_c_space_before_class_left_brace = true
ij_c_space_before_colon = true
ij_c_space_before_colon_in_foreach = false
ij_c_space_before_comma = false
ij_c_space_before_dictionary_literal_colon = false
ij_c_space_before_do_left_brace = true
ij_c_space_before_else_keyword = true
ij_c_space_before_else_left_brace = true
ij_c_space_before_export_lbrace = true
ij_c_space_before_for_left_brace = true
ij_c_space_before_for_parentheses = true
ij_c_space_before_for_semicolon = false
ij_c_space_before_if_left_brace = true
ij_c_space_before_if_parentheses = true
ij_c_space_before_init_list = false
ij_c_space_before_init_list_colon = true
ij_c_space_before_method_call_parentheses = false
ij_c_space_before_method_left_brace = true
ij_c_space_before_method_parentheses = false
ij_c_space_before_namespace_lbrace = true
ij_c_space_before_pointer_in_declaration = true
ij_c_space_before_property_attributes_parentheses = false
ij_c_space_before_protocols_brackets = true
ij_c_space_before_quest = true
ij_c_space_before_reference_in_declaration = true
ij_c_space_before_superclass_colon = true
ij_c_space_before_switch_left_brace = true
ij_c_space_before_switch_parentheses = true
ij_c_space_before_template_call_lt = false
ij_c_space_before_template_declaration_lt = false
ij_c_space_before_try_left_brace = true
ij_c_space_before_while_keyword = true
ij_c_space_before_while_left_brace = true
ij_c_space_before_while_parentheses = true
ij_c_space_between_adjacent_brackets = false
ij_c_space_between_operator_and_punctuator = false
ij_c_space_within_empty_array_initializer_braces = false
ij_c_spaces_around_additive_operators = true
ij_c_spaces_around_assignment_operators = true
ij_c_spaces_around_bitwise_operators = true
ij_c_spaces_around_equality_operators = true
ij_c_spaces_around_lambda_arrow = true
ij_c_spaces_around_logical_operators = true
ij_c_spaces_around_multiplicative_operators = true
ij_c_spaces_around_pm_operators = false
ij_c_spaces_around_relational_operators = true
ij_c_spaces_around_shift_operators = true
ij_c_spaces_around_unary_operator = false
ij_c_spaces_within_array_initializer_braces = false
ij_c_spaces_within_braces = true
ij_c_spaces_within_brackets = false
ij_c_spaces_within_cast_parentheses = false
ij_c_spaces_within_catch_parentheses = false
ij_c_spaces_within_category_parentheses = false
ij_c_spaces_within_empty_braces = false
ij_c_spaces_within_empty_function_call_parentheses = false
ij_c_spaces_within_empty_function_declaration_parentheses = false
ij_c_spaces_within_empty_lambda_capture_list_bracket = false
ij_c_spaces_within_empty_template_call_ltgt = false
ij_c_spaces_within_empty_template_declaration_ltgt = false
ij_c_spaces_within_for_parentheses = false
ij_c_spaces_within_function_call_parentheses = false
ij_c_spaces_within_function_declaration_parentheses = false
ij_c_spaces_within_if_parentheses = false
ij_c_spaces_within_lambda_capture_list_bracket = false
ij_c_spaces_within_method_parameter_type_parentheses = false
ij_c_spaces_within_method_return_type_parentheses = false
ij_c_spaces_within_parentheses = false
ij_c_spaces_within_property_attributes_parentheses = false
ij_c_spaces_within_protocols_brackets = false
ij_c_spaces_within_send_message_brackets = false
ij_c_spaces_within_structured_binding_list_bracket = false
ij_c_spaces_within_switch_parentheses = false
ij_c_spaces_within_template_call_ltgt = false
ij_c_spaces_within_template_declaration_ltgt = false
ij_c_spaces_within_template_double_gt = true
ij_c_spaces_within_while_parentheses = false
ij_c_special_else_if_treatment = true
ij_c_structured_binding_list_align_multiline = false
ij_c_structured_binding_list_align_multiline_bracket = false
ij_c_structured_binding_list_comma_on_next_line = false
ij_c_structured_binding_list_new_line_after_lbracket = false
ij_c_structured_binding_list_new_line_before_rbracket = false
ij_c_structured_binding_list_wrap = off
ij_c_superclass_list_after_colon = never
ij_c_superclass_list_align_multiline = true
ij_c_superclass_list_before_colon = if_long
ij_c_superclass_list_comma_on_next_line = false
ij_c_superclass_list_wrap = on_every_item
ij_c_tag_prefix_of_block_comment = at
ij_c_tag_prefix_of_line_comment = back_slash
ij_c_template_call_arguments_align_multiline = false
ij_c_template_call_arguments_align_multiline_pars = false
ij_c_template_call_arguments_comma_on_next_line = false
ij_c_template_call_arguments_new_line_after_lt = false
ij_c_template_call_arguments_new_line_before_gt = false
ij_c_template_call_arguments_wrap = off
ij_c_template_declaration_function_body_indent = false
ij_c_template_declaration_function_wrap = split_into_lines
ij_c_template_declaration_struct_body_indent = false
ij_c_template_declaration_struct_wrap = split_into_lines
ij_c_template_parameters_align_multiline = false
ij_c_template_parameters_align_multiline_pars = false
ij_c_template_parameters_comma_on_next_line = false
ij_c_template_parameters_new_line_after_lt = false
ij_c_template_parameters_new_line_before_gt = false
ij_c_template_parameters_wrap = off
ij_c_ternary_operation_signs_on_next_line = true
ij_c_ternary_operation_wrap = normal
ij_c_type_qualifiers_placement = before
ij_c_use_modern_casts = true
ij_c_use_setters_in_constructor = true
ij_c_while_brace_force = never
ij_c_while_on_new_line = false
ij_c_wrap_property_declaration = off
[{*.cmake,CMakeLists.txt}]
ij_cmake_align_multiline_parameters_in_calls = false
ij_cmake_force_commands_case = 2
ij_cmake_keep_blank_lines_in_code = 2
ij_cmake_space_before_for_parentheses = true
ij_cmake_space_before_if_parentheses = true
ij_cmake_space_before_method_call_parentheses = false
ij_cmake_space_before_method_parentheses = false
ij_cmake_space_before_while_parentheses = true
ij_cmake_spaces_within_for_parentheses = false
ij_cmake_spaces_within_if_parentheses = false
ij_cmake_spaces_within_method_call_parentheses = false
ij_cmake_spaces_within_method_parentheses = false
ij_cmake_spaces_within_while_parentheses = false
[{*.gant,*.groovy,*.gy}]
ij_groovy_align_group_field_declarations = false
ij_groovy_align_multiline_array_initializer_expression = false
ij_groovy_align_multiline_assignment = false
ij_groovy_align_multiline_binary_operation = false
ij_groovy_align_multiline_chained_methods = false
ij_groovy_align_multiline_extends_list = false
ij_groovy_align_multiline_for = true
ij_groovy_align_multiline_list_or_map = true
ij_groovy_align_multiline_method_parentheses = false
ij_groovy_align_multiline_parameters = true
ij_groovy_align_multiline_parameters_in_calls = false
ij_groovy_align_multiline_resources = true
ij_groovy_align_multiline_ternary_operation = false
ij_groovy_align_multiline_throws_list = false
ij_groovy_align_named_args_in_map = true
ij_groovy_align_throws_keyword = false
ij_groovy_array_initializer_new_line_after_left_brace = false
ij_groovy_array_initializer_right_brace_on_new_line = false
ij_groovy_array_initializer_wrap = off
ij_groovy_assert_statement_wrap = off
ij_groovy_assignment_wrap = off
ij_groovy_binary_operation_wrap = off
ij_groovy_blank_lines_after_class_header = 0
ij_groovy_blank_lines_after_imports = 1
ij_groovy_blank_lines_after_package = 1
ij_groovy_blank_lines_around_class = 1
ij_groovy_blank_lines_around_field = 0
ij_groovy_blank_lines_around_field_in_interface = 0
ij_groovy_blank_lines_around_method = 1
ij_groovy_blank_lines_around_method_in_interface = 1
ij_groovy_blank_lines_before_imports = 1
ij_groovy_blank_lines_before_method_body = 0
ij_groovy_blank_lines_before_package = 0
ij_groovy_block_brace_style = end_of_line
ij_groovy_block_comment_add_space = false
ij_groovy_block_comment_at_first_column = true
ij_groovy_call_parameters_new_line_after_left_paren = false
ij_groovy_call_parameters_right_paren_on_new_line = false
ij_groovy_call_parameters_wrap = off
ij_groovy_catch_on_new_line = false
ij_groovy_class_annotation_wrap = split_into_lines
ij_groovy_class_brace_style = end_of_line
ij_groovy_class_count_to_use_import_on_demand = 5
ij_groovy_do_while_brace_force = never
ij_groovy_else_on_new_line = false
ij_groovy_enable_groovydoc_formatting = true
ij_groovy_enum_constants_wrap = off
ij_groovy_extends_keyword_wrap = off
ij_groovy_extends_list_wrap = off
ij_groovy_field_annotation_wrap = split_into_lines
ij_groovy_finally_on_new_line = false
ij_groovy_for_brace_force = never
ij_groovy_for_statement_new_line_after_left_paren = false
ij_groovy_for_statement_right_paren_on_new_line = false
ij_groovy_for_statement_wrap = off
ij_groovy_ginq_general_clause_wrap_policy = 2
ij_groovy_ginq_having_wrap_policy = 1
ij_groovy_ginq_indent_having_clause = true
ij_groovy_ginq_indent_on_clause = true
ij_groovy_ginq_on_wrap_policy = 1
ij_groovy_ginq_space_after_keyword = true
ij_groovy_if_brace_force = never
ij_groovy_import_annotation_wrap = 2
ij_groovy_imports_layout = *,|,javax.**,java.**,|,$*
ij_groovy_indent_case_from_switch = true
ij_groovy_indent_label_blocks = true
ij_groovy_insert_inner_class_imports = false
ij_groovy_keep_blank_lines_before_right_brace = 2
ij_groovy_keep_blank_lines_in_code = 2
ij_groovy_keep_blank_lines_in_declarations = 2
ij_groovy_keep_control_statement_in_one_line = true
ij_groovy_keep_first_column_comment = true
ij_groovy_keep_indents_on_empty_lines = false
ij_groovy_keep_line_breaks = true
ij_groovy_keep_multiple_expressions_in_one_line = false
ij_groovy_keep_simple_blocks_in_one_line = false
ij_groovy_keep_simple_classes_in_one_line = true
ij_groovy_keep_simple_lambdas_in_one_line = true
ij_groovy_keep_simple_methods_in_one_line = true
ij_groovy_label_indent_absolute = false
ij_groovy_label_indent_size = 0
ij_groovy_lambda_brace_style = end_of_line
ij_groovy_layout_static_imports_separately = true
ij_groovy_line_comment_add_space = false
ij_groovy_line_comment_add_space_on_reformat = false
ij_groovy_line_comment_at_first_column = true
ij_groovy_method_annotation_wrap = split_into_lines
ij_groovy_method_brace_style = end_of_line
ij_groovy_method_call_chain_wrap = off
ij_groovy_method_parameters_new_line_after_left_paren = false
ij_groovy_method_parameters_right_paren_on_new_line = false
ij_groovy_method_parameters_wrap = off
ij_groovy_modifier_list_wrap = false
ij_groovy_names_count_to_use_import_on_demand = 3
ij_groovy_packages_to_use_import_on_demand = java.awt.*,javax.swing.*
ij_groovy_parameter_annotation_wrap = off
ij_groovy_parentheses_expression_new_line_after_left_paren = false
ij_groovy_parentheses_expression_right_paren_on_new_line = false
ij_groovy_prefer_parameters_wrap = false
ij_groovy_resource_list_new_line_after_left_paren = false
ij_groovy_resource_list_right_paren_on_new_line = false
ij_groovy_resource_list_wrap = off
ij_groovy_space_after_assert_separator = true
ij_groovy_space_after_colon = true
ij_groovy_space_after_comma = true
ij_groovy_space_after_comma_in_type_arguments = true
ij_groovy_space_after_for_semicolon = true
ij_groovy_space_after_quest = true
ij_groovy_space_after_type_cast = true
ij_groovy_space_before_annotation_parameter_list = false
ij_groovy_space_before_array_initializer_left_brace = false
ij_groovy_space_before_assert_separator = false
ij_groovy_space_before_catch_keyword = true
ij_groovy_space_before_catch_left_brace = true
ij_groovy_space_before_catch_parentheses = true
ij_groovy_space_before_class_left_brace = true
ij_groovy_space_before_closure_left_brace = true
ij_groovy_space_before_colon = true
ij_groovy_space_before_comma = false
ij_groovy_space_before_do_left_brace = true
ij_groovy_space_before_else_keyword = true
ij_groovy_space_before_else_left_brace = true
ij_groovy_space_before_finally_keyword = true
ij_groovy_space_before_finally_left_brace = true
ij_groovy_space_before_for_left_brace = true
ij_groovy_space_before_for_parentheses = true
ij_groovy_space_before_for_semicolon = false
ij_groovy_space_before_if_left_brace = true
ij_groovy_space_before_if_parentheses = true
ij_groovy_space_before_method_call_parentheses = false
ij_groovy_space_before_method_left_brace = true
ij_groovy_space_before_method_parentheses = false
ij_groovy_space_before_quest = true
ij_groovy_space_before_record_parentheses = false
ij_groovy_space_before_switch_left_brace = true
ij_groovy_space_before_switch_parentheses = true
ij_groovy_space_before_synchronized_left_brace = true
ij_groovy_space_before_synchronized_parentheses = true
ij_groovy_space_before_try_left_brace = true
ij_groovy_space_before_try_parentheses = true
ij_groovy_space_before_while_keyword = true
ij_groovy_space_before_while_left_brace = true
ij_groovy_space_before_while_parentheses = true
ij_groovy_space_in_named_argument = true
ij_groovy_space_in_named_argument_before_colon = false
ij_groovy_space_within_empty_array_initializer_braces = false
ij_groovy_space_within_empty_method_call_parentheses = false
ij_groovy_spaces_around_additive_operators = true
ij_groovy_spaces_around_assignment_operators = true
ij_groovy_spaces_around_bitwise_operators = true
ij_groovy_spaces_around_equality_operators = true
ij_groovy_spaces_around_lambda_arrow = true
ij_groovy_spaces_around_logical_operators = true
ij_groovy_spaces_around_multiplicative_operators = true
ij_groovy_spaces_around_regex_operators = true
ij_groovy_spaces_around_relational_operators = true
ij_groovy_spaces_around_shift_operators = true
ij_groovy_spaces_within_annotation_parentheses = false
ij_groovy_spaces_within_array_initializer_braces = false
ij_groovy_spaces_within_braces = true
ij_groovy_spaces_within_brackets = false
ij_groovy_spaces_within_cast_parentheses = false
ij_groovy_spaces_within_catch_parentheses = false
ij_groovy_spaces_within_for_parentheses = false
ij_groovy_spaces_within_gstring_injection_braces = false
ij_groovy_spaces_within_if_parentheses = false
ij_groovy_spaces_within_list_or_map = false
ij_groovy_spaces_within_method_call_parentheses = false
ij_groovy_spaces_within_method_parentheses = false
ij_groovy_spaces_within_parentheses = false
ij_groovy_spaces_within_switch_parentheses = false
ij_groovy_spaces_within_synchronized_parentheses = false
ij_groovy_spaces_within_try_parentheses = false
ij_groovy_spaces_within_tuple_expression = false
ij_groovy_spaces_within_while_parentheses = false
ij_groovy_special_else_if_treatment = true
ij_groovy_ternary_operation_wrap = off
ij_groovy_throws_keyword_wrap = off
ij_groovy_throws_list_wrap = off
ij_groovy_use_flying_geese_braces = false
ij_groovy_use_fq_class_names = false
ij_groovy_use_fq_class_names_in_javadoc = true
ij_groovy_use_relative_indents = false
ij_groovy_use_single_class_imports = true
ij_groovy_variable_annotation_wrap = off
ij_groovy_while_brace_force = never
ij_groovy_while_on_new_line = false
ij_groovy_wrap_chain_calls_after_dot = false
ij_groovy_wrap_long_lines = false
[{*.kt,*.kts}]
indent_style = space
insert_final_newline = true
max_line_length = 100
indent_size = 2
ij_continuation_indent_size = 2
ij_java_names_count_to_use_import_on_demand = 9999
ij_kotlin_align_in_columns_case_branch = false
ij_kotlin_align_multiline_binary_operation = false
ij_kotlin_align_multiline_extends_list = false
ij_kotlin_align_multiline_method_parentheses = false
ij_kotlin_align_multiline_parameters = true
ij_kotlin_align_multiline_parameters_in_calls = false
ij_kotlin_allow_trailing_comma = true
ij_kotlin_allow_trailing_comma_on_call_site = true
ij_kotlin_assignment_wrap = normal
ij_kotlin_blank_lines_after_class_header = 0
ij_kotlin_blank_lines_around_block_when_branches = 0
ij_kotlin_blank_lines_before_declaration_with_comment_or_annotation_on_separate_line = 1
ij_kotlin_block_comment_at_first_column = true
ij_kotlin_call_parameters_new_line_after_left_paren = true
ij_kotlin_call_parameters_right_paren_on_new_line = false
ij_kotlin_call_parameters_wrap = on_every_item
ij_kotlin_catch_on_new_line = false
ij_kotlin_class_annotation_wrap = split_into_lines
ij_kotlin_code_style_defaults = KOTLIN_OFFICIAL
ij_kotlin_continuation_indent_for_chained_calls = true
ij_kotlin_continuation_indent_for_expression_bodies = true
ij_kotlin_continuation_indent_in_argument_lists = true
ij_kotlin_continuation_indent_in_elvis = false
ij_kotlin_continuation_indent_in_if_conditions = false
ij_kotlin_continuation_indent_in_parameter_lists = false
ij_kotlin_continuation_indent_in_supertype_lists = false
ij_kotlin_else_on_new_line = false
ij_kotlin_enum_constants_wrap = off
ij_kotlin_extends_list_wrap = normal
ij_kotlin_field_annotation_wrap = split_into_lines
ij_kotlin_finally_on_new_line = false
ij_kotlin_if_rparen_on_new_line = false
ij_kotlin_import_nested_classes = false
ij_kotlin_insert_whitespaces_in_simple_one_line_method = true
ij_kotlin_keep_blank_lines_before_right_brace = 2
ij_kotlin_keep_blank_lines_in_code = 2
ij_kotlin_keep_blank_lines_in_declarations = 2
ij_kotlin_keep_first_column_comment = true
ij_kotlin_keep_indents_on_empty_lines = false
ij_kotlin_keep_line_breaks = true
ij_kotlin_lbrace_on_next_line = false
ij_kotlin_line_comment_add_space = false
ij_kotlin_line_comment_at_first_column = true
ij_kotlin_method_annotation_wrap = split_into_lines
ij_kotlin_method_call_chain_wrap = normal
ij_kotlin_method_parameters_new_line_after_left_paren = true
ij_kotlin_method_parameters_right_paren_on_new_line = true
ij_kotlin_method_parameters_wrap = on_every_item
ij_kotlin_name_count_to_use_star_import = 9999
ij_kotlin_name_count_to_use_star_import_for_members = 9999
ij_kotlin_parameter_annotation_wrap = off
ij_kotlin_space_after_comma = true
ij_kotlin_space_after_extend_colon = true
ij_kotlin_space_after_type_colon = true
ij_kotlin_space_before_catch_parentheses = true
ij_kotlin_space_before_comma = false
ij_kotlin_space_before_extend_colon = true
ij_kotlin_space_before_for_parentheses = true
ij_kotlin_space_before_if_parentheses = true
ij_kotlin_space_before_lambda_arrow = true
ij_kotlin_space_before_type_colon = false
ij_kotlin_space_before_when_parentheses = true
ij_kotlin_space_before_while_parentheses = true
ij_kotlin_spaces_around_additive_operators = true
ij_kotlin_spaces_around_assignment_operators = true
ij_kotlin_spaces_around_equality_operators = true
ij_kotlin_spaces_around_function_type_arrow = true
ij_kotlin_spaces_around_logical_operators = true
ij_kotlin_spaces_around_multiplicative_operators = true
ij_kotlin_spaces_around_range = false
ij_kotlin_spaces_around_relational_operators = true
ij_kotlin_spaces_around_unary_operator = false
ij_kotlin_spaces_around_when_arrow = true
ij_kotlin_variable_annotation_wrap = off
ij_kotlin_while_on_new_line = false
ij_kotlin_wrap_elvis_expressions = 1
ij_kotlin_wrap_expression_body_functions = 1
ij_kotlin_wrap_first_method_in_call_chain = false
[{*.har,*.json}]
indent_size = 2
ij_json_array_wrapping = split_into_lines
ij_json_keep_blank_lines_in_code = 0
ij_json_keep_indents_on_empty_lines = false
ij_json_keep_line_breaks = true
ij_json_keep_trailing_comma = false
ij_json_object_wrapping = split_into_lines
ij_json_property_alignment = do_not_align
ij_json_space_after_colon = true
ij_json_space_after_comma = true
ij_json_space_before_colon = false
ij_json_space_before_comma = false
ij_json_spaces_within_braces = false
ij_json_spaces_within_brackets = false
ij_json_wrap_long_lines = false
[{*.htm,*.html,*.sht,*.shtm,*.shtml}]
ij_html_add_new_line_before_tags = body,div,p,form,h1,h2,h3
ij_html_align_attributes = true
ij_html_align_text = false
ij_html_attribute_wrap = normal
ij_html_block_comment_add_space = false
ij_html_block_comment_at_first_column = true
ij_html_do_not_align_children_of_min_lines = 0
ij_html_do_not_break_if_inline_tags = title,h1,h2,h3,h4,h5,h6,p
ij_html_do_not_indent_children_of_tags = html,body,thead,tbody,tfoot
ij_html_enforce_quotes = false
ij_html_inline_tags = a,abbr,acronym,b,basefont,bdo,big,br,cite,cite,code,dfn,em,font,i,img,input,kbd,label,q,s,samp,select,small,span,strike,strong,sub,sup,textarea,tt,u,var
ij_html_keep_blank_lines = 2
ij_html_keep_indents_on_empty_lines = false
ij_html_keep_line_breaks = true
ij_html_keep_line_breaks_in_text = true
ij_html_keep_whitespaces = false
ij_html_keep_whitespaces_inside = span,pre,textarea
ij_html_line_comment_at_first_column = true
ij_html_new_line_after_last_attribute = never
ij_html_new_line_before_first_attribute = never
ij_html_quote_style = double
ij_html_remove_new_line_before_tags = br
ij_html_space_after_tag_name = false
ij_html_space_around_equality_in_attribute = false
ij_html_space_inside_empty_tag = false
ij_html_text_wrap = normal
[{*.toml,Cargo.lock,Cargo.toml.orig,Gopkg.lock,Pipfile,poetry.lock}]
ij_toml_keep_indents_on_empty_lines = false
================================================
FILE: .gitattributes
================================================
#
# https://help.github.com/articles/dealing-with-line-endings/
#
# Linux start script should use lf
/gradlew text eol=lf
# These are Windows script files and should use crlf
*.bat text eol=crlf
# Binary files should be left untouched
*.jar binary
================================================
FILE: .github/actions/prepare-emulator-action/action.yml
================================================
name: 'Prepare Emulator'
description: 'Common emulator setup steps'
runs:
using: "composite"
steps:
# This is needed for hardware acceleration, see https://github.blog/changelog/2023-02-23-hardware-accelerated-android-virtualization-on-actions-windows-and-linux-larger-hosted-runners/
- name: Enable Hardware Acceleration
shell: bash
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
# This is needed to accept the Android license, see https://issuetracker.google.com/issues/193118030
- name: Accept Android SDK License
uses: android-actions/setup-android@v3
================================================
FILE: .github/actions/setup-action/action.yml
================================================
name: 'Setup'
description: 'Common setup steps'
inputs:
gradle-encryption-key:
description: "The key used to encrypt the Gradle cache"
required: true
runs:
using: "composite"
steps:
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 21
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
# Only save Gradle User Home state for builds on the 'main' branch.
# Builds on other branches will only read existing entries from the cache.
cache-read-only: ${{ github.ref != 'refs/heads/main' }}
# Don't reuse cache entries from any other Job.
gradle-home-cache-strict-match: true
cache-encryption-key: ${{ inputs.gradle-encryption-key }}
================================================
FILE: .github/workflows/blueprints-starter-ci.yml
================================================
name: Build Starter Blueprint (Android + iOS + WASM + Desktop)
on:
push:
paths:
- 'blueprints/starter/**'
- '.github/**'
tags-ignore:
- '**'
pull_request:
paths:
- 'blueprints/starter/**'
- '.github/**'
permissions:
contents: read
jobs:
build-ios-starter-app:
runs-on: macos-latest-xlarge
timeout-minutes: 25
defaults:
run:
working-directory: blueprints/starter
steps:
- uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup-action
with:
gradle-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Build iOS Framework
run: ./gradlew :app:linkDebugFrameworkIosSimulatorArm64
build-wasm-starter-app:
runs-on: ubuntu-latest
timeout-minutes: 25
defaults:
run:
working-directory: blueprints/starter
steps:
- uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup-action
with:
gradle-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Build WASM binary
run: ./gradlew :app:wasmJsBrowserDistribution
build-android-starter-app:
runs-on: ubuntu-latest
timeout-minutes: 25
defaults:
run:
working-directory: blueprints/starter
steps:
- uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup-action
with:
gradle-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Build Android
run: ./gradlew :app:assembleDebug
build-desktop-starter-app:
runs-on: ubuntu-latest
timeout-minutes: 25
defaults:
run:
working-directory: blueprints/starter
steps:
- uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup-action
with:
gradle-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Build Desktop binary
run: ./gradlew :app:desktopMainClasses
ktfmt:
runs-on: macos-latest
timeout-minutes: 25
defaults:
run:
working-directory: blueprints/starter
steps:
- uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup-action
with:
gradle-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Install ktfmt
run: brew install ktfmt
- name: Run ktfmt
run: ktfmt --google-style --dry-run --set-exit-if-changed $(find . -type f -name "*.kt")
================================================
FILE: .github/workflows/ci.yml
================================================
name: CI
on:
push:
branches:
- main
tags-ignore:
- '**'
paths-ignore:
- '**/*.md'
pull_request:
permissions:
contents: read
jobs:
test-android:
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup-action
with:
gradle-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Test
run: ./gradlew testDebugUnitTest --stacktrace --show-version --continue
- name: Upload Test Results
uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
name: test-results-${{ github.job }}
path: ./**/build/reports/
test-ios:
runs-on: macos-latest-xlarge
timeout-minutes: 25
steps:
- uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup-action
with:
gradle-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Test
run: ./gradlew iosSimulatorArm64Test -Pkotlin.incremental.native=false --stacktrace --show-version --continue
- name: Upload Test Results
uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
name: test-results-${{ github.job }}
path: ./**/build/reports/
test-desktop:
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup-action
with:
gradle-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Test
run: ./gradlew desktopTest --stacktrace --show-version --continue
- name: Upload Test Results
uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
name: test-results-${{ github.job }}
path: ./**/build/reports/
test-linux:
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup-action
with:
gradle-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Test
run: ./gradlew linuxX64Test --stacktrace --show-version --continue
- name: Upload Test Results
uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
name: test-results-${{ github.job }}
path: ./**/build/reports/
test-wasm:
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup-action
with:
gradle-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Test
run: ./gradlew wasmJsTest --stacktrace --show-version --continue
- name: Upload Test Results
uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
name: test-results-${{ github.job }}
path: ./**/build/reports/
test-jvm-modules:
name: test-jvm-modules
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup-action
with:
gradle-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Test
run: ./gradlew :kotlin-inject-extensions:contribute:impl-code-generators:test :metro-extensions:contribute:impl-code-generators:test :metro-extensions:contribute:impl-compiler-plugin:test --stacktrace --show-version --continue
- name: Upload Test Results
uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
name: test-results-${{ github.job }}
path: ./**/build/reports/
test-emulator-renderer-android-view:
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup-action
with:
gradle-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Prepare emulator
uses: ./.github/actions/prepare-emulator-action
- name: Test
run: ./gradlew :renderer-android-view:public:emulatorCheck --stacktrace --show-version --continue
- name: Upload Test Results
uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
name: test-results-${{ github.job }}
path: ./**/build/reports/
test-emulator-renderer-compose-multiplatform:
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup-action
with:
gradle-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Prepare emulator
uses: ./.github/actions/prepare-emulator-action
- name: Test
run: ./gradlew :renderer-compose-multiplatform:public:emulatorCheck --stacktrace --show-version --continue
- name: Upload Test Results
uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
name: test-results-${{ github.job }}
path: ./**/build/reports/
test-emulator-sample-app:
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup-action
with:
gradle-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Prepare emulator
uses: ./.github/actions/prepare-emulator-action
- name: Test
run: ./gradlew :sample:app:emulatorCheck --stacktrace --show-version --continue
- name: Upload Test Results
uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
name: test-results-${{ github.job }}
path: ./**/build/reports/
test-emulator-sample-app-ksp:
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup-action
with:
gradle-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Prepare emulator
uses: ./.github/actions/prepare-emulator-action
- name: Test
run: ./gradlew :sample:app:emulatorCheck -Papp.platform.metro.ksp=true --stacktrace --show-version --continue
- name: Upload Test Results
uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
name: test-results-${{ github.job }}
path: ./**/build/reports/
build-ios-sample-app:
runs-on: macos-latest-xlarge
timeout-minutes: 25
steps:
- uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup-action
with:
gradle-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
# The command to build is executed by the Android Studio iOS app run action.
#
# The destination id was printed in the Github Action console
#
# { platform:iOS Simulator, id:77D15A8A-0E47-4200-A192-A0C6311C808D, OS:18.2, name:iPhone SE (3rd generation) }
#
#
# Downloading the iOS platform is needed with the latest macos runners. This is quite slow, so we should see
# if can we avoid this in the future.
# See: https://github.com/actions/runner-images/issues/12758#issuecomment-3206748945
- name: Build swift
run: |
/usr/bin/xcodebuild -version
/usr/bin/xcodebuild -showsdks
/usr/bin/xcrun simctl list devices
export DESTINATION_DEVICE=`/usr/bin/xcrun simctl list devices | grep -A 1 "iOS 18.6" | grep -oE '\([0-9A-F-]+\)' | head -1 | tr -d '()'`
echo "Using simulator $DESTINATION_DEVICE"
/usr/bin/xcodebuild -project sample/iosApp/iosApp.xcodeproj -scheme iosApp -configuration Debug OBJROOT=build/ios SYMROOT=build/ios -destination id=$DESTINATION_DEVICE -allowProvisioningDeviceRegistration -allowProvisioningUpdates
build-wasm-sample-app:
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup-action
with:
gradle-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Build wasm binary
run: ./gradlew :sample:app:wasmJsBrowserDistribution
binary-compatibility-check:
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup-action
with:
gradle-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: API check
run: ./gradlew apiCheck --stacktrace --show-version --continue
ktfmt:
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup-action
with:
gradle-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: ktfmt
run: ./gradlew ktfmtCheck --stacktrace --show-version --continue
android-lint:
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup-action
with:
gradle-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Android Lint
run: ./gradlew lint --stacktrace --show-version --continue
- name: Upload Test Results
uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
name: test-results-${{ github.job }}
path: ./**/build/reports/
detekt:
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup-action
with:
gradle-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Detekt
run: ./gradlew detekt --stacktrace --show-version --continue
- name: Upload Test Results
uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
name: test-results-${{ github.job }}
path: ./**/build/reports/
module-structure-check:
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup-action
with:
gradle-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Module Structure Check
run: ./gradlew checkModuleStructureDependencies --stacktrace --show-version --continue
publish-maven-local:
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup-action
with:
gradle-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Publish to Maven Local
run: |
./gradlew publishToMavenLocal --stacktrace --show-version --no-configuration-cache
./gradlew -p gradle-plugin publishToMavenLocal --stacktrace --show-version --no-configuration-cache
build-src:
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup-action
with:
gradle-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Run release task
run: ./gradlew -p buildSrc release --stacktrace --show-version --continue
- name: Upload Test Results
uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
name: test-results-${{ github.job }}
path: ./**/build/reports/
gradle-plugin:
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup-action
with:
gradle-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Run release task
run: ./gradlew -p gradle-plugin release --stacktrace --show-version --continue
- name: Upload Test Results
uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
name: test-results-${{ github.job }}
path: ./**/build/reports/
================================================
FILE: .github/workflows/pages.yml
================================================
# Simple workflow for deploying static content to GitHub Pages
name: Deploy Wiki
on:
# Runs on pushes targeting the default branch
push:
branches:
- main
# Allows to run this workflow manually from the Actions tab.
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: write
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build-wasm-sample-app:
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup-action
with:
gradle-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Build wasm binary
run: ./gradlew :sample:app:wasmJsBrowserDistribution :recipes:app:wasmJsBrowserDistribution
- name: Upload wasm binaries
uses: actions/upload-artifact@v4
with:
name: wasm-files
path: |
./sample/app/build/dist/wasmJs/productionExecutable/
./recipes/app/build/dist/wasmJs/productionExecutable/
build-mkdocs:
needs: build-wasm-sample-app
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Download wasm binaries
uses: actions/download-artifact@v4
with:
name: wasm-files
path: docs/web
- run: |
cp CHANGELOG.md docs/changelog.md
- run: |
pip install mkdocs-material
pip install "mkdocs-material[imaging]"
- run: mkdocs gh-deploy --config-file mkdocs.yml --force
deploy-mkdocs:
needs: build-mkdocs
if: github.repository == 'amzn/app-platform'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: gh-pages
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: '.'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
================================================
FILE: .github/workflows/publish-release.yml
================================================
name: Publish Release
on:
push:
tags:
- '*.*.*'
permissions:
contents: read
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "release-upload"
cancel-in-progress: false
jobs:
publish-release:
# Needed for creating the release: https://github.com/softprops/action-gh-release?tab=readme-ov-file#permissions
permissions:
contents: write
runs-on: macos-latest-xlarge
if: github.repository == 'amzn/app-platform'
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup-action
with:
gradle-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Publish release
run: |
./gradlew clean publishAndReleaseToMavenCentral -PRELEASE_SIGNING_ENABLED=true --no-build-cache --stacktrace --show-version --no-configuration-cache
./gradlew -p gradle-plugin clean publishAndReleaseToMavenCentral -PRELEASE_SIGNING_ENABLED=true --no-build-cache --stacktrace --show-version --no-configuration-cache
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_PORTAL_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PORTAL_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.ARTIFACT_SIGNING_PRIVATE_KEY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.ARTIFACT_SIGNING_PRIVATE_KEY_PASSWORD }}
- name: Extract release notes
id: release_notes
uses: ffurrer2/extract-release-notes@v2
- name: Check if pre-release
id: prerelease
run: |
version=$(grep VERSION_NAME gradle.properties | cut -d'=' -f2)
if [[ $version == *"-beta"* ]]; then
echo "isPrerelease=true" >> $GITHUB_OUTPUT
else
echo "isPrerelease=false" >> $GITHUB_OUTPUT
fi
- name: Create release
uses: softprops/action-gh-release@v2
with:
body: ${{ steps.release_notes.outputs.release_notes }}
prerelease: ${{ steps.prerelease.outputs.isPrerelease }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
================================================
FILE: .github/workflows/publish-snapshot.yml
================================================
name: Publish Snapshot
on:
push:
branches:
- main
paths-ignore:
- '**/*.md'
permissions:
contents: read
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "snapshot-upload"
cancel-in-progress: false
jobs:
publish-snapshot:
runs-on: macos-latest-xlarge
if: github.repository == 'amzn/app-platform'
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup-action
with:
gradle-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Publish snapshot
run: |
./gradlew clean publish -PRELEASE_SIGNING_ENABLED=true --no-build-cache --stacktrace --show-version --no-configuration-cache
./gradlew -p gradle-plugin clean publish -PRELEASE_SIGNING_ENABLED=true --no-build-cache --stacktrace --show-version --no-configuration-cache
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_PORTAL_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PORTAL_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.ARTIFACT_SIGNING_PRIVATE_KEY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.ARTIFACT_SIGNING_PRIVATE_KEY_PASSWORD }}
================================================
FILE: .gitignore
================================================
# Gradle
.gradle
/.gradle/
build/
!/scripts/**/build
local.properties
/reports/
# IntelliJ IDEA
.idea/*
!.idea/ktfmt.xml
*.iml
*.ipl
*.ipr
*.iws
.shelf/
# kotlin
.kotlin
# iOS
**/xcuserdata/
# Steve Jobs
.DS_Store
================================================
FILE: .idea/ktfmt.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="KtfmtSettings">
<option name="enableKtfmt" value="Enabled" />
<option name="uiFormatterStyle" value="Google (internal)" />
</component>
</project>
================================================
FILE: AGENTS.md
================================================
# AGENTS.md
## Purpose
This repository is the Amazon App Platform: a Kotlin Multiplatform application framework plus example applications and a starter blueprint. The core concepts are documented in [`docs/`](docs/) and implemented across reusable library modules plus a few app entrypoints.
Start here before changing code:
- `README.md`
- `docs/index.md`
- `docs/setup.md`
- `docs/module-structure.md`
- `docs/di.md`
- `docs/presenter.md`
- `docs/renderer.md`
- `docs/template.md`
- `docs/testing.md`
- `settings.gradle`
- `buildSrc/src/main/kotlin/software/amazon/app/platform/gradle/buildsrc/`
`mkdocs.yml` is the docs site manifest. The Pages workflow builds Wasm artifacts for `:sample:app` and `:recipes:app` and copies them into `docs/web/` before publishing.
## Repo Shape
Important top-level areas:
- `gradle-plugin/`: the published `software.amazon.app.platform` Gradle plugin.
- `buildSrc/`: repo-local convention plugins used by this repository’s own modules. This is where platform targets, emulator config, desktop packaging, and Wasm defaults are defined.
- `docs/`: framework documentation. Treat this as the authoritative product docs.
- `sample/`: the main sample app. This is the best place to study end-to-end usage of scopes, DI, presenters, renderers, templates, fakes, and robots.
- `recipes/`: a second example app plus reusable “recipe” patterns, including the separate `recipesIosApp` SwiftUI/Xcode wrapper.
- `blueprints/starter/`: a standalone starter app template with its own Gradle wrapper, version catalog, and README.
Core framework module families:
- `scope`, `di-common`
- `presenter`, `presenter-molecule`
- `renderer`, `renderer-android-view`, `renderer-compose-multiplatform`
- `robot`, `robot-compose-multiplatform`, `robot-internal`
- `kotlin-inject`, `kotlin-inject-extensions`
- `metro`, `metro-extensions`
- `ksp-common`
Compiler plugin work currently lives in:
- `metro-extensions/contribute/impl-compiler-plugin/`: JVM-only Kotlin compiler plugin module for Metro-backed App Platform DI extensions such as `@ContributesRobot`. `src/main/` contains FIR generation and diagnostics. `src/test/resources/box`, `diagnostics`, and `dump` contain compiler test data. `src/test/java/.../runners/` contains generated JUnit test runners and must be regenerated with `generateTests` after adding or renaming test data files.
## Architecture Rules
The most important repo rule is the module structure documented in `docs/module-structure.md`.
- `:public` modules expose reusable APIs and shared code.
- `:impl` modules contain concrete implementations.
- `:testing` modules hold shared fakes and test helpers.
- `:*-robots` modules hold shared UI robots.
- `:app` modules are the only modules allowed to depend on `:impl` modules.
Do not introduce a dependency from a non-`:app` module to an `:impl` module. The build enforces this via `checkModuleStructureDependencies`.
The framework’s architectural flow is:
1. `Scope` and DI assemble objects for a lifecycle boundary.
2. `MoleculePresenter` implementations produce models.
3. App-specific `Template` presenters wrap the root model tree.
4. `RendererFactory` resolves platform renderers for those models.
5. Thin platform entrypoints bootstrap the root scope and start rendering.
Representative entrypoints:
- Android: `sample/app/src/androidMain/.../AndroidApplication.kt`, `MainActivity.kt`
- iOS: `sample/app/src/iosMain/.../MainViewController.kt`, `sample/iosApp/`
- Desktop: `sample/app/src/desktopMain/.../Main.kt`, `DesktopApp.kt`
- Wasm: `sample/app/src/wasmJsMain/.../Main.kt`
## Toolchain
Local development should match CI as closely as possible. These versions live in `gradle/libs.versions.toml`.
Expected warning: Gradle prints a warning that configuration-on-demand is not supported for Wasm targets. This is noisy but currently normal in this repo.
For Metro compiler-plugin work, prefer source over decompiled artifacts:
- Reference implementation: `https://github.com/square/metro-extensions`
- Metro source: use a local checkout if you have one, otherwise upstream Metro on GitHub
- Avoid relying on `.gradle/caches` or decompiled JARs when the source is available
## Run The Apps
There are three app-style entrypoints to care about:
- `:sample:app`: main sample app inside the root build.
- `:recipes:app`: recipe/demo app inside the root build.
- `blueprints/starter`: standalone starter app; run commands from inside that directory or use its own `./gradlew`.
### Android
Install the debug APK onto a connected device or emulator:
```bash
./gradlew :sample:app:installDebug
./gradlew :recipes:app:installDebug
```
For the standalone starter:
```bash
cd blueprints/starter
./gradlew :app:installDebug
```
`buildSrc/.../BaseAndroidPlugin.kt` configures managed emulator tests with a local device named `emulator` using a Pixel 3 / API 30 `aosp-atd` image.
### iOS
Sample app:
```bash
open sample/iosApp/iosApp.xcodeproj
```
Recipe app:
```bash
open recipes/recipesIosApp/recipesIosApp.xcodeproj
```
The Xcode projects include a shell build phase that calls Gradle:
- `:sample:app:embedAndSignAppleFrameworkForXcode`
- `:recipes:app:embedAndSignAppleFrameworkForXcode`
If you only want to build the Kotlin framework without opening Xcode:
```bash
./gradlew :sample:app:linkDebugFrameworkIosSimulatorArm64
./gradlew :recipes:app:linkDebugFrameworkIosSimulatorArm64
```
CI builds the sample iOS wrapper with `xcodebuild -project sample/iosApp/iosApp.xcodeproj -scheme iosApp ... -destination id=<simulator-id>`. Use `xcrun simctl list devices` to pick a simulator if you need a pure CLI invocation.
### Desktop
Run the desktop Compose app:
```bash
./gradlew :sample:app:run
./gradlew :recipes:app:run
```
Starter blueprint:
```bash
cd blueprints/starter
./gradlew :app:run
```
Desktop packaging tasks such as `packageDmg`, `packageDeb`, and `packageMsi` are available on app modules.
### Wasm
Development server:
```bash
./gradlew :sample:app:wasmJsBrowserDevelopmentRun
./gradlew :recipes:app:wasmJsBrowserDevelopmentRun
```
Production bundle:
```bash
./gradlew :sample:app:wasmJsBrowserDistribution
./gradlew :recipes:app:wasmJsBrowserDistribution
```
Starter blueprint:
```bash
cd blueprints/starter
./gradlew :app:wasmJsBrowserDevelopmentRun
```
After a production Wasm build, serve the generated files from:
- `sample/app/build/dist/wasmJs/productionExecutable/`
- `recipes/app/build/dist/wasmJs/productionExecutable/`
The starter README suggests `npx http-server` from the production output directory.
## Run The Tests
### Repo-wide CI-style checks
These are the main root-level quality gates used by GitHub Actions:
```bash
./gradlew testDebugUnitTest
./gradlew iosSimulatorArm64Test -Pkotlin.incremental.native=true
./gradlew desktopTest
./gradlew linuxX64Test
./gradlew wasmJsTest
./gradlew apiCheck
./gradlew ktfmtCheck
./gradlew detekt
./gradlew lint
./gradlew checkModuleStructureDependencies
```
### Sample app tests by platform
Android instrumented UI tests:
```bash
./gradlew :sample:app:emulatorCheck
```
Or against a manually started device:
```bash
./gradlew :sample:app:connectedDebugAndroidTest
```
Desktop UI tests:
```bash
./gradlew :sample:app:desktopTest
```
Android unit tests:
```bash
./gradlew :sample:app:testDebugUnitTest
```
iOS simulator tests:
```bash
./gradlew :sample:app:iosSimulatorArm64Test -Pkotlin.incremental.native=true
```
All sample app target tests:
```bash
./gradlew :sample:app:allTests
```
### Metro compiler-plugin module
Run these from the repo root:
```bash
./gradlew :metro-extensions:contribute:impl-compiler-plugin:test
./gradlew :metro-extensions:contribute:impl-compiler-plugin:test --tests 'software.amazon.app.platform.metro.compiler.runners.BoxTestGenerated$Metro.testTinyGraph'
./gradlew :metro-extensions:contribute:impl-compiler-plugin:test -PupdateTestData
./gradlew :metro-extensions:contribute:impl-compiler-plugin:generateTests
./gradlew :metro-extensions:contribute:impl-compiler-plugin:ktfmtCheck
```
Use this workflow for compiler tests:
- Add new test data under `src/test/resources/box`, `diagnostics`, or `dump`
- Run `:metro-extensions:contribute:impl-compiler-plugin:generateTests` after adding or renaming test data files
- Run `:metro-extensions:contribute:impl-compiler-plugin:test`
- Use `-PupdateTestData` when intentionally updating FIR or IR golden files
Test data conventions for this module:
- `box/`: compile-and-run tests. Each file exposes `fun box(): String` and should return `"OK"`.
- `diagnostics/`: compiler error tests with inline diagnostic markers plus `.fir.diag.txt` golden files.
- `dump/`: compiler dump tests with `.fir.txt` goldens, plus `.fir.kt.txt` files for IR text dumps.
`apiCheck` and `apiDump` are disabled for this module, so do not use them as validation commands here.
### Where tests live
- Android UI tests: `sample/app/src/androidInstrumentedTest/`
- Desktop UI tests: `sample/app/src/desktopTest/`
- Shared unit tests: `sample/*/src/commonTest/`
- Shared fakes: `sample/user/testing/`
- Shared robots: `sample/login/impl-robots/`, `sample/user/impl-robots/`
- Compiler plugin test data: `metro-extensions/contribute/impl-compiler-plugin/src/test/resources/`
- Generated compiler test runners: `metro-extensions/contribute/impl-compiler-plugin/src/test/java/software/amazon/app/platform/metro/compiler/runners/`
## Current Test Reality
As of this checkout:
- `:sample:app:desktopTest` runs successfully.
- `:sample:app:testDebugUnitTest` succeeds but currently has `NO-SOURCE`.
- `:sample:app:iosSimulatorArm64Test -Pkotlin.incremental.native=true` succeeds but is currently skipped because `sample/app` has no iOS test sources.
- Android UI coverage for the sample app is in `androidInstrumentedTest` and is exercised through `emulatorCheck`/`connectedDebugAndroidTest`.
## Wasm Lockfile Caveat
Wasm tasks are currently strict about the committed Yarn lockfile under `kotlin-js-store/wasm/yarn.lock`.
If a Wasm task fails with:
```text
Execution failed for task ':kotlinWasmStoreYarnLock'.
Lock file was changed. Run the `kotlinWasmUpgradeYarnLock` task to actualize lock file
```
then the generated `build/wasm/yarn.lock` does not match the committed lock. In this checkout, both `:sample:app:wasmJsTest` and `:sample:app:wasmJsBrowserDistribution` hit that failure.
Treat `kotlinWasmUpgradeYarnLock` as an intentional dependency update step, not a routine run command. If you change Wasm/npm dependencies on purpose, update and review `kotlin-js-store/wasm/yarn.lock` in the same change.
## Docs Workflow
To work on docs locally:
```bash
cp CHANGELOG.md docs/changelog.md
pip install mkdocs-material "mkdocs-material[imaging]"
mkdocs serve
```
When changing framework behavior, update both:
- the relevant `docs/*.md` page
- the sample and/or starter code that demonstrates that behavior
If a change affects how consumers start a new project, also update `blueprints/starter/README.md`.
================================================
FILE: CHANGELOG.md
================================================
# Change Log
## [Unreleased]
### Added
### Changed
### Deprecated
### Removed
- Removed Apple x86_64 targets from the repository builds by dropping `iosX64` where it was still configured, aligning with Compose Multiplatform's removal of Apple x86_64 target support: https://kotlinlang.org/docs/multiplatform/whats-new-compose-111.html#dropped-support-for-apple-x86-64-targets
### Fixed
### Security
### Other Notes & Contributions
## [0.0.10] - 2026-04-20
### Added
- Migrate the blueprints/starter app from kotlin-inject to Metro, see #178
- Add a compiler plugin for Metro extensions, see #179. The compiler plugin is now used by default, but the KSP implementations can be enabled by setting the Gradle property `-Papp.platform.metro.ksp=true`.
## Changed
- Metro to `1.0.0-RC2`
## [0.0.9] - 2026-04-13
### Added
- Convert the sample app to [Metro](https://zacsweers.github.io/metro/), see #173. With the recent Kotlin and Metro version updates, issues we saw with Metro and targets other than Android/JVM are solved, and Metro is now the [recommended default](https://amzn.github.io/app-platform/di/) for dependency injection.
### Changed
- Kotlin to `2.3.20`
- Gradle to `9.4.1`
- metro to `0.13.2`
## [0.0.8] - 2026-01-27
### Added
- Added a recipe for `Presenter` integration with SwiftUI, see #154.
### Changed
- Kotlin to `2.2.21`, see #161
- KSP to `2.3.4`
- kotlin-inject to `0.9.0`
- kotlin-inject-anvil to `0.1.7`
- metro to `0.10.1`
- Remove testing for KSP1 and use KSP2
### Other Notes & Contributions
- Special thanks to [@rvenable](https://github.com/rvenable) for creating the original Swift APIs that served as the foundation for #154!
## [0.0.7] - 2025-09-26
### Changed
- Changed the min SDK from 21 to 23, see #149.
### Fixed
- Fix NPE when removing Android Views from multiple child renderers with the same parent on activity destruction, see #150.
## [0.0.6] - 2025-09-05
### Added
- Added support for [Metro](https://zacsweers.github.io/metro/) as dependency injection framework. User can choose between [`kotlin-inject-anvil`](https://github.com/amzn/kotlin-inject-anvil) and [Metro](https://zacsweers.github.io/metro/). For more details see the [documentation](https://amzn.github.io/app-platform/di/) for how to setup and use both dependency injection frameworks with App Platform.
### Changed
- Changed the provided `CoroutineScope` within `ViewRenderer` from a custom scope to `MainScope()`, see #124.
- Disallow changing the parent View for `ViewRenderers`. For a different parent view `RendererFactory.getRenderer()` will now return a new `Renderer` instead of the cached instance. The cached instance is only returned for the same parent view, see #139.
### Deprecated
- Deprecated `diComponent()` and introduce `kotlinInjectComponent()` as replacement, see #106.
- Deprecated `RendererFactory.getChildRendererForParent()`. `RendererFactory.getRenderer()` now provides the same functionality, see #139.
### Fixed
- Fix and stop suppressing NPE when removing Android Views, which lead to an inconsistent state and potential crashes laters, see #136.
- Cancel the `CoroutineScope` in `ViewRenderer` in rare cases where `onDetach` for the view isn't triggered. This caused potential leaks, see #140.
## [0.0.5] - 2025-08-15
### Added
- Added support for the new [Android-KMP library plugin](https://developer.android.com/kotlin/multiplatform/plugin) in App Platform's Gradle plugin.
- Added a [recipe](https://amzn.github.io/app-platform/presenter/#navigation-3) for how to use the Navigation 3 library with App Platform.
### Changed
- Upgraded Kotlin to `2.2.10`.
## [0.0.4] - 2025-07-25
### Added
- Added a search field to the wiki.
- Added a [blueprint project](https://github.com/amzn/app-platform/tree/main/blueprints/starter) for App Platform that can be copied to spin up new projects faster, see #63.
- Added support for back press events in `Presenters`. The API is similar to the one from Compose Multiplatform and Android Compose. See the [documentation in the wiki](https://amzn.github.io/app-platform/presenter/#back-gestures) for more details.
- Added a [recipes application](https://amzn.github.io/app-platform/#web-recipe-app) showing solutions to common problems. All solutions have been [documented in the wiki](https://amzn.github.io/app-platform/presenter/#recipes).
### Changed
- Upgraded Kotlin to `2.2.0`.
## [0.0.3] - 2025-05-28
### Added
- Wasm JS is now officially supported and artifacts are published.
### Changed
- Snapshots are now published to the Central Portal Snapshots repository at https://central.sonatype.com/repository/maven-snapshots/.
- Upgraded Kotlin to `2.1.21`.
### Removed
- Removed the deprecated `onEvent` function used in `MoleculePresenters`. This is no longer needed since Kotlin 2.0.20, see #21.
## [0.0.2] - 2025-05-02
### Changed
- **Breaking change:** Changed the constructor from `ComposeAndroidRendererFactory` to two factory functions instead. A new API allows you to use this factory without an Android View as parent, see #39.
### Deprecated
- Deprecated the `onEvent` function used in `MoleculePresenters`. This is no longer needed since Kotlin 2.0.20, see #21.
### Fixed
- Made the `ModuleStructureDependencyCheckTask` cacheable, see #19.
- Fixed violations for Gradle's project isolation feature, see #20.
### Other Notes
- Updated the sample application with a shared transition animation to highlight how animations can be implemented for `Template` updates, see #37.
## [0.0.1] - 2025-04-17
- Initial release.
[Unreleased]: https://github.com/amzn/app-platform/compare/0.0.10...HEAD
[0.0.10]: https://github.com/amzn/app-platform/compare/0.0.10
[0.0.9]: https://github.com/amzn/app-platform/compare/0.0.9
[0.0.8]: https://github.com/amzn/app-platform/compare/0.0.8
[0.0.7]: https://github.com/amzn/app-platform/compare/0.0.7
[0.0.6]: https://github.com/amzn/app-platform/compare/0.0.6
[0.0.5]: https://github.com/amzn/app-platform/compare/0.0.5
[0.0.4]: https://github.com/amzn/app-platform/compare/0.0.4
[0.0.3]: https://github.com/amzn/app-platform/compare/0.0.3
[0.0.2]: https://github.com/amzn/app-platform/compare/0.0.2
[0.0.1]: https://github.com/amzn/app-platform/compare/0.0.1
================================================
FILE: CODE_OF_CONDUCT.md
================================================
## Code of Conduct
This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct).
For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq) or contact
opensource-codeofconduct@amazon.com with any additional questions or comments.
================================================
FILE: CONTRIBUTING.md
================================================
# Contributing Guidelines
Thank you for your interest in contributing to our project. Whether it's a bug report, new feature, correction, or additional
documentation, we greatly value feedback and contributions from our community.
Please read through this document before submitting any issues or pull requests to ensure we have all the necessary
information to effectively respond to your bug report or contribution.
## Reporting Bugs/Feature Requests
We welcome you to use the GitHub issue tracker to report bugs or suggest features.
When filing an issue, please check existing open, or recently closed, issues to make sure somebody else hasn't already
reported the issue. Please try to include as much information as you can. Details like these are incredibly useful:
* A reproducible test case or series of steps
* The version of our code being used
* Any modifications you've made relevant to the bug
* Anything unusual about your environment or deployment
## Contributing via Pull Requests
Contributions via pull requests are much appreciated. Before sending us a pull request, please ensure that:
1. You are working against the latest source on the *main* branch.
2. You check existing open, and recently merged, pull requests to make sure someone else hasn't addressed the problem already.
3. You open an issue to discuss any significant work - we would hate for your time to be wasted.
To send us a pull request, please:
1. Fork the repository.
2. Modify the source; please focus on the specific change you are contributing. If you also reformat all the code, it will be hard for us to focus on your change.
3. Ensure local tests pass.
4. Commit to your fork using clear commit messages.
5. Send us a pull request, answering any default questions in the pull request interface.
6. Pay attention to any automated CI failures reported in the pull request, and stay involved in the conversation.
GitHub provides additional document on [forking a repository](https://help.github.com/articles/fork-a-repo/) and
[creating a pull request](https://help.github.com/articles/creating-a-pull-request/).
## Finding contributions to work on
Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels (enhancement/bug/duplicate/help wanted/invalid/question/wontfix), looking at any 'help wanted' issues is a great place to start.
## Code of Conduct
This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct).
For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq) or contact
opensource-codeofconduct@amazon.com with any additional questions or comments.
## Security issue notifications
If you discover a potential security issue in this project we ask that you notify AWS/Amazon Security via our [vulnerability reporting page](http://aws.amazon.com/security/vulnerability-reporting/). Please do **not** create a public github issue.
## Licensing
See the [LICENSE](https://github.com/amzn/app-platform/blob/main/LICENSE) file for our project's licensing. We will ask you to confirm the licensing of your contribution.
================================================
FILE: LICENSE
================================================
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
================================================
FILE: NOTICE
================================================
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
================================================
FILE: README.md
================================================
# App Platform
[](https://central.sonatype.com/search?smo=true&namespace=software.amazon.app.platform)
[](https://github.com/amzn/app-platform/actions/workflows/ci.yml)
<img src="docs/images/app-platform-logo.png" alt="App Platform" style="width:150px" align="left"/>
The App Platform is a lightweight application framework for state and memory management suitable
for Kotlin Multiplatform projects, in particular Android, iOS, JVM, native and Web. It makes the
dependency inversion and dependency injection (DI) design patterns first class principles to develop
features and support the variety of platforms. The UI layer is entirely decoupled from the business logic,
which allows different application targets to change the look and feel.
### [amzn.github.io/app-platform](https://amzn.github.io/app-platform/)
## Security
See [CONTRIBUTING](CONTRIBUTING.md#security-issue-notifications) for more information.
## License
This project is licensed under the Apache-2.0 License.
================================================
FILE: RELEASING.md
================================================
# Production Releases
1. Checkout `origin/main`.
2. Update the `CHANGELOG.md` file with the changes of this release (the format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
* Copy the template for the next unreleased version at the top.
* Delete unused section in the new release.
* Update the links at the bottom of the CHANGELOG.md file and don't forget to change the link for the unreleased version.
3. Update the version in `gradle.properties` and remove the `-SNAPSHOT` suffix.
4. Commit the changes and create a tag:
```
git commit -am "Releasing 0.1.0."
git tag 0.1.0
```
5. Update the version in `gradle.properties` and add the `-SNAPSHOT` suffix.
6. Commit the change:
```
git commit -am "Prepare next development version."
```
7. Push the two commits. This will start a Github action that publishes the release to Maven Central and creates a new release on Github.
```
git push && git push --tags
```
# Snapshot Releases
Snapshot releases are automatically created whenever a commit to the `main` branch is pushed.
# Manually uploading a release
Depending on the version in the `gradle.properties` file it will be either a production or snapshot release.
```
./gradlew clean publish --no-build-cache
```
# Installing in Maven Local
```
./gradlew publishToMavenLocal
```
================================================
FILE: blueprints/README.md
================================================
# Blueprints
This folder contains reusable templates ("blueprints") to help you quickly get started with projects using [App Platform](https://github.com/amzn/app-platform).
## 📁 `starter/`
The `starter/` blueprint provides everything you need to bootstrap a new project with App Platform. It includes:
- Pre-configured `build.gradle.kts` files for Kotlin Multiplatform
- Android + iOS + Desktop + WASM targets with Compose UI enabled
- App Platform integrations like Molecule presenters and Kotlin Inject
- A working module structure with navigation and templates
> 💡 More blueprints may be added in the future to support different project styles or configurations.
================================================
FILE: blueprints/starter/.gitignore
================================================
# Gradle
.gradle
/.gradle/
build/
local.properties
/reports/
# IntelliJ IDEA
.idea/*
*.iml
*.ipl
*.ipr
*.iws
.shelf/
# kotlin
.kotlin
# iOS
**/xcuserdata/
# Steve Jobs
.DS_Store
================================================
FILE: blueprints/starter/README.md
================================================
# Template App for Amazon App Platform
This is a Kotlin Multiplatform template application built using the [Amazon App Platform](https://github.com/amzn/app-platform). It provides a modern, opinionated starting point for building scalable, testable, and multiplatform Compose applications.
## Overview
This template demonstrates:
- Kotlin Multiplatform targeting Android, iOS, WebAssembly (WASM), and Desktop (JVM)
- [App Platform](https://github.com/amzn/app-platform) conventions for Metro DI, state, rendering, and navigation
- Molecule-powered presenters
- Scoped dependency injection using Metro graphs, `@ContributesBinding`, `@SingleIn`, `@ContributesScoped`, and `@ContributesRenderer`
- Reactive state with `StateFlow`
- Compose UI for Android, Desktop, and WASM
- Modular code structure for feature separation
## Features
- `ExampleRepository`: A simple `StateFlow`-based repository that emits data
- `ExampleValueGenerator`: A scoped class that updates the repository with random values every 3 seconds
- `NavigationHeaderPresenter` and `NavigationDetailPresenter`: Molecule presenters driving the top bar and content UI
- `NavigationHeaderRenderer` and `NavigationDetailRenderer`: A ComposeRenderer showing example state
## Modules
- `:app` – Main app entrypoint using Compose + App Platform + Metro
- `:templates` – Main module for templates and the entry point into the application
- `:navigation` – Example feature module
## Running the App
### Android
```bash
./gradlew :app:installDebug
```
### WASM (WebAssembly)
```bash
./gradlew :app:wasmJsBrowserDevelopmentRun
```
### iOS
#### Option 1: Run from IntelliJ IDEA or Android Studio
1. Install the [Kotlin Multiplatform IDE plugin](https://plugins.jetbrains.com/plugin/14936-kotlin-multiplatform).
2. Select the iosApp run configuration and run the app.
#### Option 2: Run via Xcode
1. Open the Xcode project:
```bash
open iosApp/iosApp.xcodeproj
```
2. Select a simulator and run the app (`Cmd + R`)
> The required Kotlin Multiplatform framework will be built automatically as part of the Xcode build process (`./gradlew :app:embedAndSignAppleFrameworkForXcode`).
### Desktop (JVM)
```bash
./gradlew :app:run
```
> This runs the desktop Compose app using the JVM target.
## Formatting
### ktfmt
```bash
ktfmt **/*.kt --google-style
```
> This will run through all the kt files and format them.
## Configuration
You can modify app behavior by editing:
- `gradle.properties` – JVM and native memory settings
- `libs.versions.toml` – Centralized dependency version catalog
- `app/build.gradle.kts` – Platform-specific targets and UI modules
## Contributing
Feel free to fork and adapt this template for your own projects. If you find bugs or improvements related to App Platform usage, consider opening issues or PRs against [amzn/app-platform](https://github.com/amzn/app-platform).
## License
This project inherits the license of the [Amazon App Platform](https://github.com/amzn/app-platform).
================================================
FILE: blueprints/starter/app/build.gradle.kts
================================================
@file:OptIn(ExperimentalWasmDsl::class)
import dev.zacsweers.metro.gradle.DiagnosticSeverity
import dev.zacsweers.metro.gradle.MetroPluginExtension
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
import software.amazon.app.platform.gradle.AppPlatformPlugin
plugins {
alias(libs.plugins.appPlatform)
alias(libs.plugins.androidApplication)
alias(libs.plugins.kotlinMultiplatform)
alias(libs.plugins.composeMultiplatform)
alias(libs.plugins.composeCompiler)
}
appPlatform {
enableComposeUi(true)
enableMetro(true)
enableModuleStructure(true)
enableMoleculePresenters(true)
addImplModuleDependencies(true)
}
configure<MetroPluginExtension> {
unusedGraphInputsSeverity.set(DiagnosticSeverity.NONE)
}
kotlin {
jvm("desktop") {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_11)
}
}
androidTarget {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_11)
}
}
iosArm64()
iosSimulatorArm64()
targets.withType<KotlinNativeTarget>().configureEach {
binaries.framework {
baseName = "TemplateApp"
AppPlatformPlugin.exportedDependencies().forEach { export(it) }
}
}
wasmJs {
outputModuleName = project.path.removePrefix(":").replace(":", "-")
binaries.executable()
browser {
commonWebpackConfig {
outputFileName = "template-app.js"
}
}
}
sourceSets {
val desktopMain by getting
commonMain {
dependencies {
implementation(project(":navigation:impl"))
implementation(project(":templates:impl"))
AppPlatformPlugin.exportedDependencies().forEach { api(it) }
}
}
androidMain {
dependencies {
implementation(libs.androidx.activity.compose)
}
}
desktopMain.dependencies {
implementation(compose.desktop.currentOs)
implementation(libs.coroutines.swing)
}
}
}
android {
compileSdk = libs.versions.android.compileSdk.get().toInt()
defaultConfig {
applicationId = "software.amazon.app.platform.template"
versionCode = 1
versionName = "1.0"
minSdk = libs.versions.android.minSdk.get().toInt()
targetSdk = libs.versions.android.targetSdk.get().toInt()
}
packaging {
resources {
excludes += "/META-INF/{AL2.0,LGPL2.1}"
}
}
buildTypes {
getByName("release") {
isMinifyEnabled = false
}
}
}
compose.desktop {
application {
mainClass = "software.amazon.app.platform.template.MainKt"
nativeDistributions {
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
packageName = "TemplateApp"
packageVersion = "1.0.0"
}
}
}
================================================
FILE: blueprints/starter/app/src/androidMain/AndroidManifest.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<application
android:name="software.amazon.app.platform.template.AndroidApplication"
android:allowBackup="true"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@android:style/Theme.Material.Light.NoActionBar"
tools:ignore="MissingApplicationIcon">
<activity
android:name="software.amazon.app.platform.template.MainActivity"
android:configChanges="orientation|screenSize|screenLayout|keyboardHidden|mnc|colorMode|density|fontScale|fontWeightAdjustment|keyboard|layoutDirection|locale|mcc|navigation|smallestScreenSize|touchscreen|uiMode"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
================================================
FILE: blueprints/starter/app/src/androidMain/kotlin/software/amazon/app/platform/template/AndroidAppGraph.kt
================================================
package software.amazon.app.platform.template
import android.app.Application
import dev.zacsweers.metro.AppScope
import dev.zacsweers.metro.DependencyGraph
import dev.zacsweers.metro.Provides
import software.amazon.app.platform.scope.RootScopeProvider
/**
* The final Android app graph. Note that [application] is an Android specific type and classes
* living in the Android source folder can therefore inject [Application].
*/
@DependencyGraph(AppScope::class)
interface AndroidAppGraph {
/** The factory to create a new instance of [AndroidAppGraph]. */
@DependencyGraph.Factory
fun interface Factory {
/**
* Creates a new [AndroidAppGraph] instance. [application] and [rootScopeProvider] are provided
* in the [AndroidAppGraph] and can be injected.
*/
fun create(
@Provides application: Application,
@Provides rootScopeProvider: RootScopeProvider,
): AndroidAppGraph
}
}
================================================
FILE: blueprints/starter/app/src/androidMain/kotlin/software/amazon/app/platform/template/AndroidApplication.kt
================================================
package software.amazon.app.platform.template
import android.app.Application
import dev.zacsweers.metro.createGraphFactory
import software.amazon.app.platform.scope.RootScopeProvider
import software.amazon.app.platform.scope.Scope
/**
* The [Application] class of our sample app. Note that this class implements [RootScopeProvider].
* This is helpful to get access to the root scope from Android components such as activities.
*/
open class AndroidApplication : Application(), RootScopeProvider {
private val templateApplication = software.amazon.app.platform.template.Application()
override val rootScope: Scope
get() = templateApplication.rootScope
override fun onCreate() {
templateApplication.create(metroGraph(templateApplication))
super.onCreate()
}
/** Create the [AppGraph]. In UI tests we use a different instance. */
protected open fun metroGraph(
templateApplication: software.amazon.app.platform.template.Application
): AppGraph {
return createGraphFactory<AndroidAppGraph.Factory>().create(this, templateApplication)
}
}
================================================
FILE: blueprints/starter/app/src/androidMain/kotlin/software/amazon/app/platform/template/MainActivity.kt
================================================
package software.amazon.app.platform.template
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.activity.viewModels
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
import software.amazon.app.platform.renderer.ComposeAndroidRendererFactory
import software.amazon.app.platform.renderer.getComposeRenderer
import software.amazon.app.platform.scope.RootScopeProvider
/**
* The only `Activity` of our sample app. This class is just an entry point to start rendering
* templates.
*/
class MainActivity : ComponentActivity() {
private val rootScopeProvider
get() = application as RootScopeProvider
private val viewModel by viewModels<MainActivityViewModel>()
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
enableEdgeToEdge()
val rendererFactory =
ComposeAndroidRendererFactory.createForComposeUi(rootScopeProvider = rootScopeProvider)
setContent {
val template by viewModel.templates.collectAsState()
val renderer = rendererFactory.getComposeRenderer(template)
renderer.renderCompose(template)
}
}
}
================================================
FILE: blueprints/starter/app/src/androidMain/kotlin/software/amazon/app/platform/template/MainActivityViewModel.kt
================================================
package software.amazon.app.platform.template
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import dev.zacsweers.metro.AppScope
import dev.zacsweers.metro.ContributesTo
import kotlinx.coroutines.flow.StateFlow
import software.amazon.app.platform.scope.RootScopeProvider
import software.amazon.app.platform.scope.di.metro.metroDependencyGraph
import software.amazon.app.platform.template.templates.AppTemplate
/**
* `ViewModel` that hosts the stream of templates and survives configuration changes. Note that we
* use [application] to get access to the root scope.
*/
class MainActivityViewModel(application: Application) : AndroidViewModel(application) {
private val graph = (application as RootScopeProvider).rootScope.metroDependencyGraph<Graph>()
private val templateProvider = graph.templateProviderFactory.createTemplateProvider()
/** The stream of templates that are rendered by [MainActivity]. */
val templates: StateFlow<AppTemplate> = templateProvider.templates
override fun onCleared() {
templateProvider.cancel()
}
/** Graph interface to give us access to objects from the app graph. */
@ContributesTo(AppScope::class)
interface Graph {
/** Gives access to the [TemplateProvider.Factory] from the object graph. */
val templateProviderFactory: TemplateProvider.Factory
}
}
================================================
FILE: blueprints/starter/app/src/androidMain/res/values/strings.xml
================================================
<resources>
<string name="app_name">TemplateApp</string>
</resources>
================================================
FILE: blueprints/starter/app/src/commonMain/kotlin/software/amazon/app/platform/template/AppGraph.kt
================================================
package software.amazon.app.platform.template
import dev.zacsweers.metro.AppScope
import dev.zacsweers.metro.ContributesTo
import dev.zacsweers.metro.ForScope
import dev.zacsweers.metro.Multibinds
import software.amazon.app.platform.scope.Scoped
import software.amazon.app.platform.scope.coroutine.CoroutineScopeScoped
/**
* Shared interface for the app graph. The final graphs live in the platform specific source folders
* in order to have access to platform specific code.
*/
@ContributesTo(AppScope::class)
interface AppGraph {
/** All [Scoped] instances part of the app scope. */
@Multibinds(allowEmpty = true) @ForScope(AppScope::class) val appScopedInstances: Set<Scoped>
/** The coroutine scope that runs as long as the app scope is alive. */
@ForScope(AppScope::class) val appScopeCoroutineScopeScoped: CoroutineScopeScoped
}
================================================
FILE: blueprints/starter/app/src/commonMain/kotlin/software/amazon/app/platform/template/Application.kt
================================================
package software.amazon.app.platform.template
import software.amazon.app.platform.scope.RootScopeProvider
import software.amazon.app.platform.scope.Scope
import software.amazon.app.platform.scope.coroutine.addCoroutineScopeScoped
import software.amazon.app.platform.scope.di.metro.addMetroDependencyGraph
import software.amazon.app.platform.scope.register
/**
* Shared class between the platform to manage the root scope. It itself implements the
* [RootScopeProvider] interface.
*/
class Application : RootScopeProvider {
private var _rootScope: Scope? = null
override val rootScope: Scope
get() = checkNotNull(_rootScope) { "Must call create() first." }
/** Creates the root scope and remembers the instance. */
fun create(appGraph: AppGraph) {
check(_rootScope == null) { "create() should be called only once." }
_rootScope = Scope.buildRootScope {
addMetroDependencyGraph(appGraph)
addCoroutineScopeScoped(appGraph.appScopeCoroutineScopeScoped)
}
// Register instances after the rootScope has been set to avoid race conditions for Scoped
// instances that may use the rootScope.
rootScope.register(appGraph.appScopedInstances)
}
/** Destroys the root scope. */
fun destroy() {
rootScope.destroy()
_rootScope = null
}
}
================================================
FILE: blueprints/starter/app/src/commonMain/kotlin/software/amazon/app/platform/template/TemplateProvider.kt
================================================
package software.amazon.app.platform.template
import dev.zacsweers.metro.Assisted
import dev.zacsweers.metro.AssistedFactory
import dev.zacsweers.metro.AssistedInject
import dev.zacsweers.metro.Inject
import kotlinx.coroutines.flow.StateFlow
import software.amazon.app.platform.presenter.molecule.MoleculeScope
import software.amazon.app.platform.presenter.molecule.MoleculeScopeFactory
import software.amazon.app.platform.presenter.molecule.launchMoleculePresenter
import software.amazon.app.platform.template.navigation.NavigationPresenter
import software.amazon.app.platform.template.templates.AppTemplate
import software.amazon.app.platform.template.templates.AppTemplatePresenter
/**
* Shared class between all platforms to start collecting [AppTemplate] in a [StateFlow]. Inject
* [Factory] to create a new instance. Once the instance is no longer needed, call [cancel] to clean
* up any resources.
*
* [NavigationPresenter] serves as the root presenter and gets wrapped in a [AppTemplatePresenter].
*/
@AssistedInject
class TemplateProvider(
presenter: NavigationPresenter,
templatePresenterFactory: AppTemplatePresenter.Factory,
@Assisted private val moleculeScope: MoleculeScope,
) {
/** The templates that should be rendered in the UI. */
val templates: StateFlow<AppTemplate> by lazy {
moleculeScope
.launchMoleculePresenter(
presenter = templatePresenterFactory.createAppTemplatePresenter(presenter),
input = Unit,
)
.model
}
/** Releases all resources and stops [templates] from updating further. */
fun cancel() {
moleculeScope.cancel()
}
/**
* The assisted factory for Metro to create a new [TemplateProvider]. This factory is wrapped by
* [Factory], which should be used instead.
*/
@AssistedFactory
fun interface InternalFactory {
/** Create a new instance of [TemplateProvider] with the given [MoleculeScope]. */
fun create(moleculeScope: MoleculeScope): TemplateProvider
}
/** Factory class to create a new instance of [TemplateProvider]. */
@Inject
class Factory(
private val moleculeScopeFactory: MoleculeScopeFactory,
private val templateProviderFactory: InternalFactory,
) {
/**
* Creates a new instance of [TemplateProvider]. Call [TemplateProvider.cancel] when the
* instance not needed anymore to avoid leaking resources.
*/
fun createTemplateProvider(): TemplateProvider {
return templateProviderFactory.create(moleculeScopeFactory.createMoleculeScope())
}
}
}
================================================
FILE: blueprints/starter/app/src/desktopMain/kotlin/software/amazon/app/platform/template/DesktopApp.kt
================================================
package software.amazon.app.platform.template
import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
import androidx.compose.runtime.remember
import dev.zacsweers.metro.AppScope
import dev.zacsweers.metro.ContributesTo
import software.amazon.app.platform.renderer.ComposeRendererFactory
import software.amazon.app.platform.renderer.getComposeRenderer
import software.amazon.app.platform.scope.RootScopeProvider
import software.amazon.app.platform.scope.Scope
import software.amazon.app.platform.scope.di.metro.metroDependencyGraph
/**
* Responsible for creating the app graph [graph] and producing templates. Call [destroy] to clean
* up any resources.
*/
class DesktopApp(private val graph: (RootScopeProvider) -> AppGraph) : RootScopeProvider {
override val rootScope: Scope
get() = application.rootScope
private val application = Application().apply { create(graph(this)) }
private val templateProvider =
rootScope.metroDependencyGraph<Graph>().templateProviderFactory.createTemplateProvider()
/** Call this composable function to start rendering templates on the screen. */
@Composable
fun renderTemplates() {
val template by templateProvider.templates.collectAsState()
val factory = remember { ComposeRendererFactory(application) }
val renderer = factory.getComposeRenderer(template)
renderer.renderCompose(template)
}
/** Cancels and releases all resources. */
fun destroy() {
templateProvider.cancel()
application.destroy()
}
/** Graph interface to give us access to objects from the app graph. */
@ContributesTo(AppScope::class)
interface Graph {
/** Gives access to the [TemplateProvider.Factory] from the object graph. */
val templateProviderFactory: TemplateProvider.Factory
}
}
================================================
FILE: blueprints/starter/app/src/desktopMain/kotlin/software/amazon/app/platform/template/DesktopAppGraph.kt
================================================
package software.amazon.app.platform.template
import dev.zacsweers.metro.AppScope
import dev.zacsweers.metro.DependencyGraph
import dev.zacsweers.metro.Provides
import software.amazon.app.platform.scope.RootScopeProvider
/**
* The final Desktop app graph. Unlike the Android and iOS specific counterpart, this class doesn't
* have any platform specific types.
*/
@DependencyGraph(AppScope::class)
interface DesktopAppGraph {
/** The factory to create a new instance of [DesktopAppGraph]. */
@DependencyGraph.Factory
fun interface Factory {
/**
* Creates a new [DesktopAppGraph] instance. [rootScopeProvider] is provided in the
* [DesktopAppGraph] and can be injected.
*/
fun create(@Provides rootScopeProvider: RootScopeProvider): DesktopAppGraph
}
}
================================================
FILE: blueprints/starter/app/src/desktopMain/kotlin/software/amazon/app/platform/template/Main.kt
================================================
package software.amazon.app.platform.template
import androidx.compose.ui.window.Window
import androidx.compose.ui.window.application
import dev.zacsweers.metro.createGraphFactory
/** The main function to launch the Desktop app. */
fun main() {
val desktopApp = DesktopApp { createGraphFactory<DesktopAppGraph.Factory>().create(it) }
application {
Window(
onCloseRequest = {
desktopApp.destroy()
exitApplication()
},
alwaysOnTop = true,
title = "Template App",
) {
desktopApp.renderTemplates()
}
}
}
================================================
FILE: blueprints/starter/app/src/iosMain/kotlin/software/amazon/app/platform/template/IosAppGraph.kt
================================================
package software.amazon.app.platform.template
import dev.zacsweers.metro.AppScope
import dev.zacsweers.metro.DependencyGraph
import dev.zacsweers.metro.Provides
import dev.zacsweers.metro.createGraphFactory
import platform.UIKit.UIApplication
import software.amazon.app.platform.scope.RootScopeProvider
/**
* The final iOS app graph. Note that [uiApplication] is an iOS specific type and classes living in
* the iOS source folder can therefore inject [UIApplication].
*/
@DependencyGraph(AppScope::class)
interface IosAppGraph {
/** The factory to create a new instance of [IosAppGraph]. */
@DependencyGraph.Factory
fun interface Factory {
/**
* Creates a new [IosAppGraph] instance. [uiApplication] and [rootScopeProvider] are provided in
* the [IosAppGraph] and can be injected.
*/
fun create(
@Provides uiApplication: UIApplication,
@Provides rootScopeProvider: RootScopeProvider,
): IosAppGraph
}
/** Gives access to the [TemplateProvider.Factory] from the object graph. */
val templateProviderFactory: TemplateProvider.Factory
}
/** This function is called from Swift to create a new graph instance. */
@Suppress("unused")
fun createIosAppGraph(application: UIApplication, rootScopeProvider: RootScopeProvider): AppGraph {
return createGraphFactory<IosAppGraph.Factory>().create(application, rootScopeProvider)
}
================================================
FILE: blueprints/starter/app/src/iosMain/kotlin/software/amazon/app/platform/template/MainViewController.kt
================================================
package software.amazon.app.platform.template
import androidx.compose.runtime.DisposableEffect
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
import androidx.compose.runtime.remember
import androidx.compose.ui.window.ComposeUIViewController
import platform.UIKit.UIViewController
import software.amazon.app.platform.renderer.ComposeRendererFactory
import software.amazon.app.platform.renderer.Renderer
import software.amazon.app.platform.scope.RootScopeProvider
import software.amazon.app.platform.scope.di.metro.metroDependencyGraph
/**
* This function is called from Swift to hook up the Compose Multiplatform UI.
*
* This is our entry point to start producing templates and hooking up our [Renderer] runtime. Other
* platforms extract this code into classes that are effectively singletons. But this approach is
* good enough for the iOS sample.
*/
@Suppress("unused")
fun mainViewController(rootScopeProvider: RootScopeProvider): UIViewController =
ComposeUIViewController {
// Create a single instance.
val templateProvider = remember {
rootScopeProvider.rootScope
.metroDependencyGraph<IosAppGraph>()
.templateProviderFactory
.createTemplateProvider()
}
DisposableEffect(Unit) {
onDispose {
// Cancel the provider when it's no longer needed.
templateProvider.cancel()
}
}
// Only a single factory is needed.
val factory = remember { ComposeRendererFactory(rootScopeProvider) }
// Render templates using our Renderer runtime.
val template by templateProvider.templates.collectAsState()
val renderer = factory.getRenderer(template::class)
renderer.renderCompose(template)
}
================================================
FILE: blueprints/starter/app/src/wasmJsMain/kotlin/software/amazon/app/platform/template/Main.kt
================================================
package software.amazon.app.platform.template
import androidx.compose.runtime.Composable
import androidx.compose.runtime.DisposableEffect
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
import androidx.compose.runtime.remember
import androidx.compose.ui.ExperimentalComposeUiApi
import androidx.compose.ui.window.ComposeViewport
import dev.zacsweers.metro.createGraphFactory
import kotlinx.browser.document
import software.amazon.app.platform.renderer.ComposeRendererFactory
import software.amazon.app.platform.scope.di.metro.metroDependencyGraph
/** The entry point of our sample app. */
@OptIn(ExperimentalComposeUiApi::class)
fun main() {
ComposeViewport(checkNotNull(document.body)) { AppPlatform() }
}
@Composable
private fun AppPlatform() {
val application = remember {
Application().apply { create(createGraphFactory<WasmJsAppGraph.Factory>().create(this)) }
}
// Create a single instance.
val templateProvider = remember {
application.rootScope
.metroDependencyGraph<WasmJsAppGraph>()
.templateProviderFactory
.createTemplateProvider()
}
DisposableEffect(Unit) {
onDispose {
// Cancel the provider when it's no longer needed.
templateProvider.cancel()
}
}
// Only a single factory is needed.
val factory = remember { ComposeRendererFactory(application) }
// Render templates using our Renderer runtime.
val template by templateProvider.templates.collectAsState()
val renderer = factory.getRenderer(template::class)
renderer.renderCompose(template)
}
================================================
FILE: blueprints/starter/app/src/wasmJsMain/kotlin/software/amazon/app/platform/template/WasmJsAppGraph.kt
================================================
package software.amazon.app.platform.template
import dev.zacsweers.metro.AppScope
import dev.zacsweers.metro.DependencyGraph
import dev.zacsweers.metro.Provides
import software.amazon.app.platform.scope.RootScopeProvider
/**
* The final Wasm app graph.
*
* Unlike the Android and iOS specific counterpart, this class doesn't have any platform specific
* types.
*/
@DependencyGraph(AppScope::class)
interface WasmJsAppGraph {
/** The factory to create a new instance of [WasmJsAppGraph]. */
@DependencyGraph.Factory
fun interface Factory {
/**
* Creates a new [WasmJsAppGraph] instance. [rootScopeProvider] is provided in the
* [WasmJsAppGraph] and can be injected.
*/
fun create(@Provides rootScopeProvider: RootScopeProvider): WasmJsAppGraph
}
/** Gives access to the [TemplateProvider.Factory] from the object graph. */
val templateProviderFactory: TemplateProvider.Factory
}
================================================
FILE: blueprints/starter/app/src/wasmJsMain/resources/index.html
================================================
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>TemplateApp</title>
<link type="text/css" rel="stylesheet" href="styles.css">
<script type="application/javascript" src="template-app.js"></script>
</head>
<body>
</body>
</html>
================================================
FILE: blueprints/starter/app/src/wasmJsMain/resources/styles.css
================================================
html, body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
overflow: hidden;
}
================================================
FILE: blueprints/starter/build.gradle.kts
================================================
plugins {
alias(libs.plugins.androidApplication) apply false
alias(libs.plugins.androidKmpLibrary) apply false
alias(libs.plugins.kotlinMultiplatform) apply false
alias(libs.plugins.composeMultiplatform) apply false
alias(libs.plugins.composeCompiler) apply false
alias(libs.plugins.metro) apply false
alias(libs.plugins.appPlatform)
}
================================================
FILE: blueprints/starter/gradle/libs.versions.toml
================================================
[versions]
assertk = "0.28.1"
app-platform = "0.0.9"
agp = "8.13.2"
android-compileSdk = "36"
android-minSdk = "23"
android-targetSdk = "36"
androidx-activity = "1.13.0"
compose-material-icons = "1.7.3"
compose-material3 = "1.9.0"
compose-multiplatform = "1.10.3"
coroutines = "1.10.2"
kotlin = "2.3.20"
metro = "1.0.0-RC2"
[libraries]
androidx-activity-compose = { module = "androidx.activity:activity-compose", version.ref = "androidx-activity" }
assertk = { module = "com.willowtreeapps.assertk:assertk", version.ref = "assertk" }
compose-material = { module = "org.jetbrains.compose.material3:material3", version.ref = "compose-material3" }
compose-material-icons = { module = "org.jetbrains.compose.material:material-icons-extended", version.ref = "compose-material-icons" }
kotlinx-coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "coroutines" }
coroutines-swing = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-swing", version.ref = "coroutines" }
coroutines-test = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-test", version.ref = "coroutines" }
[plugins]
androidApplication = { id = "com.android.application", version.ref = "agp" }
androidKmpLibrary = { id = "com.android.kotlin.multiplatform.library", version.ref = "agp" }
appPlatform = { id = "software.amazon.app.platform", version.ref = "app-platform" }
kotlinMultiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
composeMultiplatform = { id = "org.jetbrains.compose", version.ref = "compose-multiplatform" }
composeCompiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
metro = { id = "dev.zacsweers.metro", version.ref = "metro" }
================================================
FILE: blueprints/starter/gradle/wrapper/gradle-wrapper.properties
================================================
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
================================================
FILE: blueprints/starter/gradle.properties
================================================
GROUP=software.amazon.app.platform.template
org.gradle.jvmargs=-Xmx8g -Dfile.encoding=UTF-8
org.gradle.daemon=true
org.gradle.parallel=true
org.gradle.caching=true
android.useAndroidX=true
android.enableJetifier=false
android.nonTransitiveRClass=true
# https://youtrack.jetbrains.com/issue/KT-82395
kotlin.incremental.js=false
kotlin.incremental.js.klib=false
================================================
FILE: blueprints/starter/gradlew
================================================
#!/bin/sh
#
# Copyright © 2015 the original authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
#
##############################################################################
#
# Gradle start up script for POSIX generated by Gradle.
#
# Important for running:
#
# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
# noncompliant, but you have some other compliant shell such as ksh or
# bash, then to run this script, type that shell name before the whole
# command line, like:
#
# ksh Gradle
#
# Busybox and similar reduced shells will NOT work, because this script
# requires all of these POSIX shell features:
# * functions;
# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
# * compound commands having a testable exit status, especially «case»;
# * various built-in commands including «command», «set», and «ulimit».
#
# Important for patching:
#
# (2) This script targets any POSIX shell, so it avoids extensions provided
# by Bash, Ksh, etc; in particular arrays are avoided.
#
# The "traditional" practice of packing multiple parameters into a
# space-separated string is a well documented source of bugs and security
# problems, so this is (mostly) avoided, by progressively accumulating
# options in "$@", and eventually passing that to Java.
#
# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
# see the in-line comments for details.
#
# There are tweaks for specific operating systems such as AIX, CygWin,
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/2d6327017519d23b96af35865dc997fcb544fb40/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
#
##############################################################################
# Attempt to set APP_HOME
# Resolve links: $0 may be a link
app_path=$0
# Need this for daisy-chained symlinks.
while
APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
[ -h "$app_path" ]
do
ls=$( ls -ld "$app_path" )
link=${ls#*' -> '}
case $link in #(
/*) app_path=$link ;; #(
*) app_path=$APP_HOME$link ;;
esac
done
# This is normally unused
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum
warn () {
echo "$*"
} >&2
die () {
echo
echo "$*"
echo
exit 1
} >&2
# OS specific support (must be 'true' or 'false').
cygwin=false
msys=false
darwin=false
nonstop=false
case "$( uname )" in #(
CYGWIN* ) cygwin=true ;; #(
Darwin* ) darwin=true ;; #(
MSYS* | MINGW* ) msys=true ;; #(
NONSTOP* ) nonstop=true ;;
esac
# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD=$JAVA_HOME/jre/sh/java
else
JAVACMD=$JAVA_HOME/bin/java
fi
if [ ! -x "$JAVACMD" ] ; then
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
else
JAVACMD=java
if ! command -v java >/dev/null 2>&1
then
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
fi
# Increase the maximum file descriptors if we can.
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
case $MAX_FD in #(
max*)
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC2039,SC3045
MAX_FD=$( ulimit -H -n ) ||
warn "Could not query maximum file descriptor limit"
esac
case $MAX_FD in #(
'' | soft) :;; #(
*)
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC2039,SC3045
ulimit -n "$MAX_FD" ||
warn "Could not set maximum file descriptor limit to $MAX_FD"
esac
fi
# Collect all arguments for the java command, stacking in reverse order:
# * args from the command line
# * the main class name
# * -classpath
# * -D...appname settings
# * --module-path (only if needed)
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
# For Cygwin or MSYS, switch paths to Windows format before running java
if "$cygwin" || "$msys" ; then
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
JAVACMD=$( cygpath --unix "$JAVACMD" )
# Now convert the arguments - kludge to limit ourselves to /bin/sh
for arg do
if
case $arg in #(
-*) false ;; # don't mess with options #(
/?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
[ -e "$t" ] ;; #(
*) false ;;
esac
then
arg=$( cygpath --path --ignore --mixed "$arg" )
fi
# Roll the args list around exactly as many times as the number of
# args, so each arg winds up back in the position where it started, but
# possibly modified.
#
# NB: a `for` loop captures its iteration list before it begins, so
# changing the positional parameters here affects neither the number of
# iterations, nor the values presented in `arg`.
shift # remove old arg
set -- "$@" "$arg" # push replacement arg
done
fi
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
# Collect all arguments for the java command:
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
# and any embedded shellness will be escaped.
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
# treated as '${Hostname}' itself on the command line.
set -- \
"-Dorg.gradle.appname=$APP_BASE_NAME" \
-jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
"$@"
# Stop when "xargs" is not available.
if ! command -v xargs >/dev/null 2>&1
then
die "xargs is not available"
fi
# Use "xargs" to parse quoted args.
#
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
#
# In Bash we could simply go:
#
# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
# set -- "${ARGS[@]}" "$@"
#
# but POSIX shell has neither arrays nor command substitution, so instead we
# post-process each arg (as a line of input to sed) to backslash-escape any
# character that might be a shell metacharacter, then use eval to reverse
# that process (while maintaining the separation between arguments), and wrap
# the whole thing up as a single "set" statement.
#
# This will of course break if any of these variables contains a newline or
# an unmatched quote.
#
eval "set -- $(
printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
xargs -n1 |
sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
tr '\n' ' '
)" '"$@"'
exec "$JAVACMD" "$@"
================================================
FILE: blueprints/starter/gradlew.bat
================================================
@rem
@rem Copyright 2015 the original author or authors.
@rem
@rem Licensed under the Apache License, Version 2.0 (the "License");
@rem you may not use this file except in compliance with the License.
@rem You may obtain a copy of the License at
@rem
@rem https://www.apache.org/licenses/LICENSE-2.0
@rem
@rem Unless required by applicable law or agreed to in writing, software
@rem distributed under the License is distributed on an "AS IS" BASIS,
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem
@rem SPDX-License-Identifier: Apache-2.0
@rem
@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
set DIRNAME=%~dp0
if "%DIRNAME%"=="" set DIRNAME=.
@rem This is normally unused
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if %ERRORLEVEL% equ 0 goto execute
echo. 1>&2
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
goto fail
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto execute
echo. 1>&2
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
goto fail
:execute
@rem Setup the command line
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
:end
@rem End local scope for the variables with windows NT shell
if %ERRORLEVEL% equ 0 goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
set EXIT_CODE=%ERRORLEVEL%
if %EXIT_CODE% equ 0 set EXIT_CODE=1
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
exit /b %EXIT_CODE%
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega
================================================
FILE: blueprints/starter/iosApp/Configuration/Config.xcconfig
================================================
TEAM_ID=
BUNDLE_ID=software.amazon.app.platform.template.Template
APP_NAME=Template
================================================
FILE: blueprints/starter/iosApp/iosApp/Assets.xcassets/AccentColor.colorset/Contents.json
================================================
{
"colors" : [
{
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
================================================
FILE: blueprints/starter/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/Contents.json
================================================
{
"images" : [
{
"filename" : "app-icon-1024.png",
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "tinted"
}
],
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
================================================
FILE: blueprints/starter/iosApp/iosApp/Assets.xcassets/Contents.json
================================================
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
================================================
FILE: blueprints/starter/iosApp/iosApp/ComposeContentView.swift
================================================
import UIKit
import SwiftUI
import TemplateApp
struct ComposeView: UIViewControllerRepresentable {
private var rootScopeProvider: RootScopeProvider
init(rootScopeProvider: RootScopeProvider) {
self.rootScopeProvider = rootScopeProvider
}
func makeUIViewController(context: Context) -> UIViewController {
MainViewControllerKt.mainViewController(rootScopeProvider: rootScopeProvider)
}
func updateUIViewController(_ uiViewController: UIViewController, context: Context) {}
}
struct ComposeContentView: View {
var rootScopeProvider: RootScopeProvider
init(rootScopeProvider: RootScopeProvider) {
self.rootScopeProvider = rootScopeProvider
}
var body: some View {
ComposeView(rootScopeProvider: rootScopeProvider).ignoresSafeArea(.keyboard) // Compose has own keyboard handler
}
}
================================================
FILE: blueprints/starter/iosApp/iosApp/Info.plist
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>CADisableMinimumFrameDurationOnPhone</key>
<true/>
<key>UIApplicationSceneManifest</key>
<dict>
<key>UIApplicationSupportsMultipleScenes</key>
<false/>
</dict>
<key>UILaunchScreen</key>
<dict/>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
</dict>
</plist>
================================================
FILE: blueprints/starter/iosApp/iosApp/Preview Content/Preview Assets.xcassets/Contents.json
================================================
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
================================================
FILE: blueprints/starter/iosApp/iosApp/iOSApp.swift
================================================
import TemplateApp
import SwiftUI
class AppDelegate: NSObject, UIApplicationDelegate, RootScopeProvider {
private let templateApplication: Application = Application()
var rootScope: Scope {
get {
templateApplication.rootScope
}
}
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil) -> Bool {
templateApplication.create(appGraph: IosAppGraphKt.createIosAppGraph(application: application, rootScopeProvider: templateApplication))
return true
}
}
@main
struct iOSApp: App {
@UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
var body: some Scene {
WindowGroup {
ComposeContentView(rootScopeProvider: appDelegate)
}
}
}
================================================
FILE: blueprints/starter/iosApp/iosApp.xcodeproj/project.pbxproj
================================================
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 70;
objects = {
/* Begin PBXBuildFile section */
1BACA3B135BB44908CC94158 /* iOSApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1BACA8873D2AF36B9E0FC788 /* iOSApp.swift */; };
1BACAC1D12A9468E4FB4B657 /* ComposeContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1BACA6BD71FC32091FE23841 /* ComposeContentView.swift */; };
530CD4FE2E208D79001A7515 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 530CD4FA2E208D79001A7515 /* Assets.xcassets */; };
/* End PBXBuildFile section */
/* Begin PBXFileReference section */
1BACA6BD71FC32091FE23841 /* ComposeContentView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ComposeContentView.swift; sourceTree = "<group>"; };
1BACA8873D2AF36B9E0FC788 /* iOSApp.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = iOSApp.swift; sourceTree = "<group>"; };
530CD4FA2E208D79001A7515 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
530CD4FB2E208D79001A7515 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
7555FF7B242A565900829871 /* Template.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Template.app; sourceTree = BUILT_PRODUCTS_DIR; };
AB3632DC29227652001CCB65 /* Config.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Config.xcconfig; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFileSystemSynchronizedRootGroup section */
530CD4F92E208D79001A7515 /* Preview Content */ = {isa = PBXFileSystemSynchronizedRootGroup; explicitFileTypes = {}; explicitFolders = (); path = "Preview Content"; sourceTree = "<group>"; };
/* End PBXFileSystemSynchronizedRootGroup section */
/* Begin PBXGroup section */
7555FF72242A565900829871 = {
isa = PBXGroup;
children = (
AB1DB47929225F7C00F7AF9C /* Configuration */,
7555FF7D242A565900829871 /* iosApp */,
7555FF7C242A565900829871 /* Products */,
);
sourceTree = "<group>";
};
7555FF7C242A565900829871 /* Products */ = {
isa = PBXGroup;
children = (
7555FF7B242A565900829871 /* Template.app */,
);
name = Products;
sourceTree = "<group>";
};
7555FF7D242A565900829871 /* iosApp */ = {
isa = PBXGroup;
children = (
1BACA6BD71FC32091FE23841 /* ComposeContentView.swift */,
1BACA8873D2AF36B9E0FC788 /* iOSApp.swift */,
530CD4F92E208D79001A7515 /* Preview Content */,
530CD4FA2E208D79001A7515 /* Assets.xcassets */,
530CD4FB2E208D79001A7515 /* Info.plist */,
);
path = iosApp;
sourceTree = "<group>";
};
AB1DB47929225F7C00F7AF9C /* Configuration */ = {
isa = PBXGroup;
children = (
AB3632DC29227652001CCB65 /* Config.xcconfig */,
);
path = Configuration;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
7555FF7A242A565900829871 /* iosApp */ = {
isa = PBXNativeTarget;
buildConfigurationList = 7555FFA5242A565B00829871 /* Build configuration list for PBXNativeTarget "iosApp" */;
buildPhases = (
F36B1CEB2AD83DDC00CB74D5 /* Compile Kotlin Framework */,
7555FF77242A565900829871 /* Sources */,
7555FF79242A565900829871 /* Resources */,
);
buildRules = (
);
dependencies = (
);
fileSystemSynchronizedGroups = (
530CD4F92E208D79001A7515 /* Preview Content */,
);
name = iosApp;
productName = iosApp;
productReference = 7555FF7B242A565900829871 /* Template.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
7555FF73242A565900829871 /* Project object */ = {
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 1130;
LastUpgradeCheck = 1130;
ORGANIZATIONNAME = orgName;
TargetAttributes = {
7555FF7A242A565900829871 = {
CreatedOnToolsVersion = 11.3.1;
};
};
};
buildConfigurationList = 7555FF76242A565900829871 /* Build configuration list for PBXProject "iosApp" */;
compatibilityVersion = "Xcode 9.3";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = 7555FF72242A565900829871;
productRefGroup = 7555FF7C242A565900829871 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
7555FF7A242A565900829871 /* iosApp */,
);
};
/* End PBXProject section */
/* Begin PBXResourcesBuildPhase section */
7555FF79242A565900829871 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
530CD4FE2E208D79001A7515 /* Assets.xcassets in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXShellScriptBuildPhase section */
F36B1CEB2AD83DDC00CB74D5 /* Compile Kotlin Framework */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
);
name = "Compile Kotlin Framework";
outputFileListPaths = (
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "if [ \"YES\" = \"$OVERRIDE_KOTLIN_BUILD_IDE_SUPPORTED\" ]; then\n echo \"Skipping Gradle build task invocation due to OVERRIDE_KOTLIN_BUILD_IDE_SUPPORTED environment variable set to \\\"YES\\\"\"\n exit 0\nfi\ncd \"$SRCROOT/..\"\n./gradlew :app:embedAndSignAppleFrameworkForXcode --rerun-tasks\n";
};
/* End PBXShellScriptBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
7555FF77242A565900829871 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
1BACAC1D12A9468E4FB4B657 /* ComposeContentView.swift in Sources */,
1BACA3B135BB44908CC94158 /* iOSApp.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin XCBuildConfiguration section */
7555FFA3242A565B00829871 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = AB3632DC29227652001CCB65 /* Config.xcconfig */;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 14.1;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
};
name = Debug;
};
7555FFA4242A565B00829871 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = AB3632DC29227652001CCB65 /* Config.xcconfig */;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 14.1;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
VALIDATE_PRODUCT = YES;
};
name = Release;
};
7555FFA6242A565B00829871 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_ASSET_PATHS = "\"iosApp/Preview Content\"";
DEVELOPMENT_TEAM = "${TEAM_ID}";
ENABLE_PREVIEWS = YES;
FRAMEWORK_SEARCH_PATHS = "$(SRCROOT)/../app/build/xcode-frameworks/$(CONFIGURATION)/$(SDK_NAME)";
INFOPLIST_FILE = iosApp/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 14.1;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
OTHER_LDFLAGS = (
"$(inherited)",
"-framework",
TemplateApp,
);
PRODUCT_BUNDLE_IDENTIFIER = "${BUNDLE_ID}${TEAM_ID}";
PRODUCT_NAME = "${APP_NAME}";
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
7555FFA7242A565B00829871 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_ASSET_PATHS = "\"iosApp/Preview Content\"";
DEVELOPMENT_TEAM = "${TEAM_ID}";
ENABLE_PREVIEWS = YES;
FRAMEWORK_SEARCH_PATHS = "$(SRCROOT)/../app/build/xcode-frameworks/$(CONFIGURATION)/$(SDK_NAME)";
INFOPLIST_FILE = iosApp/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 14.1;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
OTHER_LDFLAGS = (
"$(inherited)",
"-framework",
TemplateApp,
);
PRODUCT_BUNDLE_IDENTIFIER = "${BUNDLE_ID}${TEAM_ID}";
PRODUCT_NAME = "${APP_NAME}";
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
7555FF76242A565900829871 /* Build configuration list for PBXProject "iosApp" */ = {
isa = XCConfigurationList;
buildConfigurations = (
7555FFA3242A565B00829871 /* Debug */,
7555FFA4242A565B00829871 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
7555FFA5242A565B00829871 /* Build configuration list for PBXNativeTarget "iosApp" */ = {
isa = XCConfigurationList;
buildConfigurations = (
7555FFA6242A565B00829871 /* Debug */,
7555FFA7242A565B00829871 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 7555FF73242A565900829871 /* Project object */;
}
================================================
FILE: blueprints/starter/iosApp/iosApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata
================================================
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "self:">
</FileRef>
</Workspace>
================================================
FILE: blueprints/starter/iosApp/iosApp.xcodeproj/xcshareddata/xcschemes/iosApp.xcscheme
================================================
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1630"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES"
buildArchitectures = "Automatic">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "7555FF7A242A565900829871"
BuildableName = "Template.app"
BlueprintName = "iosApp"
ReferencedContainer = "container:iosApp.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "7555FF7A242A565900829871"
BuildableName = "Template.app"
BlueprintName = "iosApp"
ReferencedContainer = "container:iosApp.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "7555FF7A242A565900829871"
BuildableName = "Template.app"
BlueprintName = "iosApp"
ReferencedContainer = "container:iosApp.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
================================================
FILE: blueprints/starter/navigation/impl/build.gradle.kts
================================================
@file:OptIn(ExperimentalWasmDsl::class)
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
plugins {
alias(libs.plugins.appPlatform)
alias(libs.plugins.androidKmpLibrary)
alias(libs.plugins.kotlinMultiplatform)
}
appPlatform {
enableComposeUi(true)
enableModuleStructure(true)
enableMetro(true)
enableMoleculePresenters(true)
}
kotlin {
jvm("desktop") {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_11)
}
}
androidLibrary {
compileSdk = libs.versions.android.compileSdk.get().toInt()
minSdk = libs.versions.android.minSdk.get().toInt()
compilerOptions {
jvmTarget.set(JvmTarget.JVM_11)
}
}
iosArm64()
iosSimulatorArm64()
wasmJs {
outputModuleName = project.path.removePrefix(":").replace(":", "-")
browser()
}
sourceSets {
commonMain {
dependencies {
implementation(libs.compose.material)
implementation(libs.compose.material.icons)
implementation(project(":templates:public"))
}
}
commonTest {
dependencies {
implementation(kotlin("test"))
implementation(libs.assertk)
implementation(libs.coroutines.test)
implementation(project(":navigation:testing"))
}
}
}
}
================================================
FILE: blueprints/starter/navigation/impl/src/commonMain/kotlin/software/amazon/app/platform/template/navigation/ExampleRepositoryImpl.kt
================================================
package software.amazon.app.platform.template.navigation
import dev.zacsweers.metro.AppScope
import dev.zacsweers.metro.ContributesBinding
import dev.zacsweers.metro.Inject
import dev.zacsweers.metro.SingleIn
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.asStateFlow
/**
* Default implementation of [ExampleRepository] that holds an integer [StateFlow] and allows its
* value to be updated.
*
* Useful for testing reactive state flow usage with presenters or other consumers.
*/
@Inject
@SingleIn(AppScope::class)
@ContributesBinding(AppScope::class)
class ExampleRepositoryImpl : ExampleRepository {
private val _exampleStateFlow = MutableStateFlow(0)
override val exampleStateFlow: StateFlow<Int> = _exampleStateFlow.asStateFlow()
override fun setExampleFlowValue(value: Int) {
println("value: $value")
_exampleStateFlow.value = value
}
}
================================================
FILE: blueprints/starter/navigation/impl/src/commonMain/kotlin/software/amazon/app/platform/template/navigation/ExampleValueGenerator.kt
================================================
package software.amazon.app.platform.template.navigation
import dev.zacsweers.metro.AppScope
import dev.zacsweers.metro.Inject
import dev.zacsweers.metro.SingleIn
import kotlinx.coroutines.delay
import software.amazon.app.platform.inject.metro.ContributesScoped
import software.amazon.app.platform.scope.Scope
import software.amazon.app.platform.scope.Scoped
import software.amazon.app.platform.scope.coroutine.launch
/**
* A scoped service that continuously generates random values and feeds them into
* [ExampleRepository] every 3 seconds. This is active only while the [AppScope] is alive.
*
* This class is:
* - Bound to [AppScope] via `@ContributesScoped`
* - A singleton within that scope via `@SingleIn`
* - Injected via constructor using `@Inject`
*
* The generator starts emitting random integers in the range 1 to 100 as soon as the scope is
* entered.
*
* @property exampleRepository the repository where generated values are pushed
*/
@Inject
@SingleIn(AppScope::class)
@ContributesScoped(AppScope::class)
class ExampleValueGenerator(private val exampleRepository: ExampleRepository) : Scoped {
override fun onEnterScope(scope: Scope) {
scope.launch {
while (true) {
val random = (1..100).random()
println("random: $random")
exampleRepository.setExampleFlowValue(random)
delay(3000L)
}
}
}
}
================================================
FILE: blueprints/starter/navigation/impl/src/commonMain/kotlin/software/amazon/app/platform/template/navigation/NavigationDetailPresenterImpl.kt
================================================
package software.amazon.app.platform.template.navigation
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import dev.zacsweers.metro.AppScope
import dev.zacsweers.metro.ContributesBinding
import dev.zacsweers.metro.Inject
import kotlin.time.Duration.Companion.milliseconds
import kotlinx.coroutines.delay
import software.amazon.app.platform.template.navigation.NavigationDetailPresenter.Model
@Inject
@ContributesBinding(AppScope::class)
class NavigationDetailPresenterImpl(private val exampleRepository: ExampleRepository) :
NavigationDetailPresenter {
@Composable
override fun present(input: Unit): Model {
val exampleValue by exampleRepository.exampleStateFlow.collectAsState()
var exampleCount by remember { mutableStateOf(0) }
LaunchedEffect(exampleValue) {
// Add a delay, otherwise the state is not updating properly on iOS.
delay(1.milliseconds)
exampleCount++
}
return Model(exampleValue = exampleValue, exampleCount = exampleCount)
}
}
================================================
FILE: blueprints/starter/navigation/impl/src/commonMain/kotlin/software/amazon/app/platform/template/navigation/NavigationDetailRenderer.kt
================================================
package software.amazon.app.platform.template.navigation
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.unit.dp
import software.amazon.app.platform.inject.ContributesRenderer
import software.amazon.app.platform.renderer.ComposeRenderer
import software.amazon.app.platform.template.navigation.NavigationDetailPresenter.Model
@ContributesRenderer
class NavigationDetailRenderer : ComposeRenderer<Model>() {
@Composable
override fun Compose(model: Model) {
Column(
modifier = Modifier.fillMaxSize().background(MaterialTheme.colorScheme.background),
verticalArrangement = Arrangement.Center,
horizontalAlignment = Alignment.CenterHorizontally,
) {
Text(
text = "Hello, welcome to amzn/app-platform Template App",
style = MaterialTheme.typography.headlineMedium,
textAlign = TextAlign.Center,
modifier = Modifier.padding(16.dp),
)
Text(
text = "Every 3 seconds a new exampleValue is generated: ${model.exampleValue}",
style = MaterialTheme.typography.bodyLarge,
textAlign = TextAlign.Center,
modifier = Modifier.padding(16.dp),
)
Text(
text = "Total number of exampleValues shown: ${model.exampleCount}",
style = MaterialTheme.typography.bodyLarge,
textAlign = TextAlign.Center,
modifier = Modifier.padding(16.dp),
)
}
}
}
================================================
FILE: blueprints/starter/navigation/impl/src/commonMain/kotlin/software/amazon/app/platform/template/navigation/NavigationHeaderPresenterImpl.kt
================================================
package software.amazon.app.platform.template.navigation
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import dev.zacsweers.metro.AppScope
import dev.zacsweers.metro.ContributesBinding
import dev.zacsweers.metro.Inject
import software.amazon.app.platform.template.navigation.NavigationHeaderPresenter.Model
@Inject
@ContributesBinding(AppScope::class)
class NavigationHeaderPresenterImpl() : NavigationHeaderPresenter {
@Composable
override fun present(input: Unit): Model {
var clickedCount by remember { mutableStateOf(0) }
return Model(clickedCount = clickedCount) {
when (it) {
NavigationHeaderPresenter.Event.Clicked -> {
clickedCount++
}
}
}
}
}
================================================
FILE: blueprints/starter/navigation/impl/src/commonMain/kotlin/software/amazon/app/platform/template/navigation/NavigationHeaderRenderer.kt
================================================
package software.amazon.app.platform.template.navigation
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.layout.width
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Stairs
import androidx.compose.material3.Icon
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import software.amazon.app.platform.inject.ContributesRenderer
import software.amazon.app.platform.renderer.ComposeRenderer
import software.amazon.app.platform.template.navigation.NavigationHeaderPresenter.Model
@ContributesRenderer
class NavigationHeaderRenderer : ComposeRenderer<Model>() {
@Composable
override fun Compose(model: Model) {
Column(modifier = Modifier.fillMaxSize().background(MaterialTheme.colorScheme.background)) {
Row(
modifier = Modifier.fillMaxWidth().padding(24.dp),
horizontalArrangement = Arrangement.SpaceBetween,
verticalAlignment = Alignment.CenterVertically,
) {
Row(verticalAlignment = Alignment.CenterVertically) {
Icon(
imageVector = Icons.Filled.Stairs,
contentDescription = "Icon",
tint = MaterialTheme.colorScheme.onBackground,
modifier = Modifier.size(24.dp),
)
Spacer(Modifier.width(8.dp))
Text(
"Template App",
color = MaterialTheme.colorScheme.onBackground,
style = MaterialTheme.typography.titleMedium,
)
}
Text(
text = "Click Me (times clicked: ${model.clickedCount})",
color = MaterialTheme.colorScheme.onBackground,
style = MaterialTheme.typography.titleMedium,
// Sends event to NavigationHeaderPresenter to be processed which will update
// the above clickedCount value.
modifier = Modifier.clickable { model.onEvent(NavigationHeaderPresenter.Event.Clicked) },
)
}
Spacer(
modifier =
Modifier.fillMaxWidth().height(1.dp).background(MaterialTheme.colorScheme.primary)
)
}
}
}
================================================
FILE: blueprints/starter/navigation/impl/src/commonMain/kotlin/software/amazon/app/platform/template/navigation/NavigationPresenterImpl.kt
================================================
package software.amazon.app.platform.template.navigation
import androidx.compose.runtime.Composable
import dev.zacsweers.metro.AppScope
import dev.zacsweers.metro.ContributesBinding
import dev.zacsweers.metro.Inject
import software.amazon.app.platform.presenter.BaseModel
import software.amazon.app.platform.template.templates.AppTemplate
@Inject
@ContributesBinding(AppScope::class)
class NavigationPresenterImpl(
private val navigationHeaderPresenter: NavigationHeaderPresenter,
private val navigationDetailPresenter: NavigationDetailPresenter,
) : NavigationPresenter {
@Composable
override fun present(input: Unit): BaseModel {
val navigationBarModel = navigationHeaderPresenter.present(Unit)
val navigationDetailModel = navigationDetailPresenter.present(Unit)
return AppTemplate.HeaderDetailTemplate(navigationBarModel, navigationDetailModel)
}
}
================================================
FILE: blueprints/starter/navigation/impl/src/commonTest/kotlin/software/amazon/app/platform/template/navigation/NavigationDetailPresenterTest.kt
================================================
package software.amazon.app.platform.template.navigation
import assertk.assertThat
import assertk.assertions.isEqualTo
import kotlin.test.Test
import kotlin.time.Duration.Companion.milliseconds
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.test.advanceTimeBy
import kotlinx.coroutines.test.runTest
import software.amazon.app.platform.presenter.molecule.test
@OptIn(ExperimentalCoroutinesApi::class)
class NavigationDetailPresenterTest {
@Test
fun `model changes when setExampleFlowValue is called`() = runTest {
val exampleRepository = FakeExampleRepository()
NavigationDetailPresenterImpl(exampleRepository).test(this) {
awaitItem().let { model ->
assertThat(model.exampleValue).isEqualTo(0)
assertThat(model.exampleCount).isEqualTo(0)
}
exampleRepository.setExampleFlowValue(5)
awaitItem().let { model -> assertThat(model.exampleValue).isEqualTo(5) }
// There is a 1 milli delay within presenter before updating count.
advanceTimeBy(1.milliseconds)
awaitItem().let { model ->
assertThat(model.exampleValue).isEqualTo(5)
assertThat(model.exampleCount).isEqualTo(1)
}
}
}
}
================================================
FILE: blueprints/starter/navigation/impl/src/commonTest/kotlin/software/amazon/app/platform/template/navigation/NavigationHeaderPresenterTest.kt
================================================
package software.amazon.app.platform.template.navigation
import assertk.assertThat
import assertk.assertions.isEqualTo
import kotlin.test.Test
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.test.runTest
import software.amazon.app.platform.presenter.molecule.test
@OptIn(ExperimentalCoroutinesApi::class)
class NavigationHeaderPresenterTest {
@Test
fun `correctly process and emit model when Clicked event is triggered`() = runTest {
NavigationHeaderPresenterImpl().test(this) {
awaitItem().let { model ->
assertThat(model.clickedCount).isEqualTo(0)
model.onEvent(NavigationHeaderPresenter.Event.Clicked)
}
awaitItem().let { model ->
assertThat(model.clickedCount).isEqualTo(1)
model.onEvent(NavigationHeaderPresenter.Event.Clicked)
}
awaitItem().let { model -> assertThat(model.clickedCount).isEqualTo(2) }
}
}
}
================================================
FILE: blueprints/starter/navigation/impl/src/commonTest/kotlin/software/amazon/app/platform/template/navigation/NavigationPresenterImplTest.kt
================================================
package software.amazon.app.platform.template.navigation
import androidx.compose.runtime.Composable
import assertk.assertThat
import assertk.assertions.isInstanceOf
import kotlin.test.Test
import kotlinx.coroutines.test.runTest
import software.amazon.app.platform.presenter.molecule.test
import software.amazon.app.platform.template.templates.AppTemplate
class NavigationPresenterImplTest {
@Test
fun `correct template and presenter models are returned`() = runTest {
val presenter =
NavigationPresenterImpl(
navigationHeaderPresenter = FakeNavigationHeaderPresenter(),
navigationDetailPresenter = FakeNavigationDetailPresenter(),
)
presenter.test(this) {
awaitItem().let { template ->
assertThat(template).isInstanceOf<AppTemplate.HeaderDetailTemplate>()
(template as? AppTemplate.HeaderDetailTemplate)?.let { headerDetailTemplate ->
assertThat(headerDetailTemplate.header).isInstanceOf<NavigationHeaderPresenter.Model>()
assertThat(headerDetailTemplate.detail).isInstanceOf<NavigationDetailPresenter.Model>()
}
}
}
}
private class FakeNavigationDetailPresenter : NavigationDetailPresenter {
@Composable
override fun present(input: Unit): NavigationDetailPresenter.Model =
NavigationDetailPresenter.Model(exampleValue = 5, exampleCount = 1)
}
private class FakeNavigationHeaderPresenter : NavigationHeaderPresenter {
@Composable
override fun present(input: Unit): NavigationHeaderPresenter.Model =
NavigationHeaderPresenter.Model(clickedCount = 0) {}
}
}
================================================
FILE: blueprints/starter/navigation/public/build.gradle.kts
================================================
@file:OptIn(ExperimentalWasmDsl::class)
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
plugins {
alias(libs.plugins.appPlatform)
alias(libs.plugins.androidKmpLibrary)
alias(libs.plugins.kotlinMultiplatform)
}
appPlatform {
enableModuleStructure(true)
enableMoleculePresenters(true)
}
kotlin {
jvm("desktop") {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_11)
}
}
androidLibrary {
compileSdk = libs.versions.android.compileSdk.get().toInt()
minSdk = libs.versions.android.minSdk.get().toInt()
compilerOptions {
jvmTarget.set(JvmTarget.JVM_11)
}
}
iosArm64()
iosSimulatorArm64()
wasmJs {
outputModuleName = project.path.removePrefix(":").replace(":", "-")
browser()
}
sourceSets {
commonMain {
dependencies {
implementation(libs.kotlinx.coroutines.core)
}
}
}
}
================================================
FILE: blueprints/starter/navigation/public/src/commonMain/kotlin/software/amazon/app/platform/template/navigation/ExampleRepository.kt
================================================
package software.amazon.app.platform.template.navigation
import kotlinx.coroutines.flow.StateFlow
/**
* Interface of an example repository to show how to correctly contribute, inject, and use within
* presenters.
*/
interface ExampleRepository {
val exampleStateFlow: StateFlow<Int>
fun setExampleFlowValue(value: Int)
}
================================================
FILE: blueprints/starter/navigation/public/src/commonMain/kotlin/software/amazon/app/platform/template/navigation/NavigationDetailPresenter.kt
================================================
package software.amazon.app.platform.template.navigation
import software.amazon.app.platform.presenter.BaseModel
import software.amazon.app.platform.presenter.molecule.MoleculePresenter
/** Presenter responsible for the state of the main content area beneath the navigation header. */
interface NavigationDetailPresenter : MoleculePresenter<Unit, NavigationDetailPresenter.Model> {
data class Model(val exampleValue: Int, val exampleCount: Int) : BaseModel
}
================================================
FILE: blueprints/starter/navigation/public/src/commonMain/kotlin/software/amazon/app/platform/template/navigation/NavigationHeaderPresenter.kt
================================================
package software.amazon.app.platform.template.navigation
import software.amazon.app.platform.presenter.BaseModel
import software.amazon.app.platform.presenter.molecule.MoleculePresenter
/**
* Presenter responsible for the state of the top navigation bar (header).
*
* This typically controls high-level UI elements such as titles, toggle buttons, or contextual
* actions that affect the overall screen.
*/
interface NavigationHeaderPresenter : MoleculePresenter<Unit, NavigationHeaderPresenter.Model> {
data class Model(val clickedCount: Int, val onEvent: (Event) -> Unit) : BaseModel
/** Events that can be triggered by the UI layer (Renderer) and processed by the Presenter. */
sealed interface Event {
data object Clicked : Event
}
}
================================================
FILE: blueprints/starter/navigation/public/src/commonMain/kotlin/software/amazon/app/platform/template/navigation/NavigationPresenter.kt
================================================
package software.amazon.app.platform.template.navigation
import software.amazon.app.platform.presenter.BaseModel
import software.amazon.app.platform.presenter.molecule.MoleculePresenter
/**
* A presenter that hosts other presenters and returns their models. For that reason this presenter
* doesn't have its own [BaseModel] type and returns [BaseModel].
*/
interface NavigationPresenter : MoleculePresenter<Unit, BaseModel>
================================================
FILE: blueprints/starter/navigation/testing/build.gradle.kts
================================================
@file:OptIn(ExperimentalWasmDsl::class)
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
plugins {
alias(libs.plugins.appPlatform)
alias(libs.plugins.androidKmpLibrary)
alias(libs.plugins.kotlinMultiplatform)
}
appPlatform {
enableModuleStructure(true)
enableMoleculePresenters(true)
}
kotlin {
jvm("desktop") {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_11)
}
}
androidLibrary {
compileSdk = libs.versions.android.compileSdk.get().toInt()
minSdk = libs.versions.android.minSdk.get().toInt()
compilerOptions {
jvmTarget.set(JvmTarget.JVM_11)
}
}
iosArm64()
iosSimulatorArm64()
wasmJs {
outputModuleName = project.path.removePrefix(":").replace(":", "-")
browser()
}
sourceSets {
commonMain {
dependencies {
implementation(libs.kotlinx.coroutines.core)
}
}
}
}
================================================
FILE: blueprints/starter/navigation/testing/src/commonMain/kotlin/software/amazon/app/platform/template/navigation/FakeExampleRepository.kt
================================================
package software.amazon.app.platform.template.navigation
import kotlinx.coroutines.flow.MutableStateFlow
/**
* Fake implementation of [ExampleRepository], which is useful in unit tests.
*
* This class is part of the `:testing` module and shared with other modules.
*/
class FakeExampleRepository(
override val exampleStateFlow: MutableStateFlow<Int> = MutableStateFlow(0)
) : ExampleRepository {
override fun setExampleFlowValue(value: Int) {
exampleStateFlow.value = value
}
}
================================================
FILE: blueprints/starter/settings.gradle.kts
================================================
pluginManagement {
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}
dependencyResolutionManagement {
repositories {
google()
mavenCentral()
}
}
rootProject.name = "Template"
include(":app")
include(":navigation:impl")
include(":navigation:public")
include(":navigation:testing")
include(":templates:impl")
include(":templates:public")
================================================
FILE: blueprints/starter/templates/impl/build.gradle.kts
================================================
@file:OptIn(ExperimentalWasmDsl::class)
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
plugins {
alias(libs.plugins.appPlatform)
alias(libs.plugins.androidKmpLibrary)
alias(libs.plugins.kotlinMultiplatform)
}
appPlatform {
enableComposeUi(true)
enableModuleStructure(true)
enableMetro(true)
enableMoleculePresenters(true)
}
kotlin {
jvm("desktop") {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_11)
}
}
androidLibrary {
compileSdk = libs.versions.android.compileSdk.get().toInt()
minSdk = libs.versions.android.minSdk.get().toInt()
compilerOptions {
jvmTarget.set(JvmTarget.JVM_11)
}
}
iosArm64()
iosSimulatorArm64()
wasmJs {
outputModuleName = project.path.removePrefix(":").replace(":", "-")
browser()
}
sourceSets {
commonMain {
dependencies {
implementation(libs.compose.material)
}
}
}
}
================================================
FILE: blueprints/starter/templates/impl/src/commonMain/kotlin/software/amazon/app/platform/template/templates/ComposeAppTemplateRenderer.kt
================================================
package software.amazon.app.platform.template.templates
import androidx.compose.animation.ExperimentalSharedTransitionApi
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.WindowInsets
import androidx.compose.foundation.layout.safeDrawing
import androidx.compose.foundation.layout.windowInsetsPadding
import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import dev.zacsweers.metro.Inject
import software.amazon.app.platform.inject.ContributesRenderer
import software.amazon.app.platform.renderer.ComposeRenderer
import software.amazon.app.platform.renderer.RendererFactory
import software.amazon.app.platform.renderer.getComposeRenderer
/**
* A Compose renderer implementation for templates used in the sample application.
*
* [rendererFactory] is used to get the [software.amazon.app.platform.renderer.Renderer] for the
* [software.amazon.app.platform.presenter.BaseModel] wrapped in the template.
*/
@OptIn(ExperimentalSharedTransitionApi::class)
@Inject
@ContributesRenderer
class ComposeAppTemplateRenderer(private val rendererFactory: RendererFactory) :
ComposeRenderer<AppTemplate>() {
@Composable
override fun Compose(model: AppTemplate) {
MaterialTheme {
Box(Modifier.Companion.windowInsetsPadding(WindowInsets.Companion.safeDrawing)) {
when (model) {
is AppTemplate.FullScreenTemplate -> FullScreen(model)
is AppTemplate.HeaderDetailTemplate -> HeaderDetail(model)
}
}
}
}
@Composable
private fun FullScreen(template: AppTemplate.FullScreenTemplate) {
val renderer = rendererFactory.getComposeRenderer(template.model)
renderer.renderCompose(template.model)
}
@Composable
private fun HeaderDetail(template: AppTemplate.HeaderDetailTemplate) {
Column {
Row(Modifier.Companion.weight(1f)) {
rendererFactory.getComposeRenderer(template.header).renderCompose(template.header)
}
Row(Modifier.Companion.weight(5f)) {
rendererFactory.getComposeRenderer(template.detail).renderCompose(template.detail)
}
}
}
}
================================================
FILE: blueprints/starter/templates/public/build.gradle.kts
================================================
@file:OptIn(ExperimentalWasmDsl::class)
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
plugins {
alias(libs.plugins.appPlatform)
alias(libs.plugins.androidKmpLibrary)
alias(libs.plugins.kotlinMultiplatform)
}
appPlatform {
enableModuleStructure(true)
enableMetro(true)
enableMoleculePresenters(true)
}
kotlin {
jvm("desktop") {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_11)
}
}
androidLibrary {
compileSdk = libs.versions.android.compileSdk.get().toInt()
minSdk = libs.versions.android.minSdk.get().toInt()
compilerOptions {
jvmTarget.set(JvmTarget.JVM_11)
}
}
iosArm64()
iosSimulatorArm64()
wasmJs {
outputModuleName = project.path.removePrefix(":").replace(":", "-")
browser()
}
}
================================================
FILE: blueprints/starter/templates/public/src/commonMain/kotlin/software/amazon/app/platform/template/templates/AppTemplate.kt
================================================
package software.amazon.app.platform.template.templates
import software.amazon.app.platform.presenter.BaseModel
import software.amazon.app.platform.presenter.template.Template
/** All [Template]s implemented in the sample application. */
sealed interface AppTemplate : Template {
/** A template that hosts a single model, which should rendered as full-screen element. */
data class FullScreenTemplate(
/** The model to be rendered fullscreen. */
val model: BaseModel
) : AppTemplate
data class HeaderDetailTemplate(val header: BaseModel, val detail: BaseModel) : AppTemplate
}
================================================
FILE: blueprints/starter/templates/public/src/commonMain/kotlin/software/amazon/app/platform/template/templates/AppTemplatePresenter.kt
================================================
package software.amazon.app.platform.template.templates
import androidx.compose.runtime.Composable
import dev.zacsweers.metro.Assisted
import dev.zacsweers.metro.AssistedFactory
import dev.zacsweers.metro.AssistedInject
import software.amazon.app.platform.presenter.BaseModel
import software.amazon.app.platform.presenter.molecule.MoleculePresenter
import softwa
gitextract_au9h9jge/ ├── .editorconfig ├── .gitattributes ├── .github/ │ ├── actions/ │ │ ├── prepare-emulator-action/ │ │ │ └── action.yml │ │ └── setup-action/ │ │ └── action.yml │ └── workflows/ │ ├── blueprints-starter-ci.yml │ ├── ci.yml │ ├── pages.yml │ ├── publish-release.yml │ └── publish-snapshot.yml ├── .gitignore ├── .idea/ │ └── ktfmt.xml ├── AGENTS.md ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── NOTICE ├── README.md ├── RELEASING.md ├── blueprints/ │ ├── README.md │ └── starter/ │ ├── .gitignore │ ├── README.md │ ├── app/ │ │ ├── build.gradle.kts │ │ └── src/ │ │ ├── androidMain/ │ │ │ ├── AndroidManifest.xml │ │ │ ├── kotlin/ │ │ │ │ └── software/ │ │ │ │ └── amazon/ │ │ │ │ └── app/ │ │ │ │ └── platform/ │ │ │ │ └── template/ │ │ │ │ ├── AndroidAppGraph.kt │ │ │ │ ├── AndroidApplication.kt │ │ │ │ ├── MainActivity.kt │ │ │ │ └── MainActivityViewModel.kt │ │ │ └── res/ │ │ │ └── values/ │ │ │ └── strings.xml │ │ ├── commonMain/ │ │ │ └── kotlin/ │ │ │ └── software/ │ │ │ └── amazon/ │ │ │ └── app/ │ │ │ └── platform/ │ │ │ └── template/ │ │ │ ├── AppGraph.kt │ │ │ ├── Application.kt │ │ │ └── TemplateProvider.kt │ │ ├── desktopMain/ │ │ │ └── kotlin/ │ │ │ └── software/ │ │ │ └── amazon/ │ │ │ └── app/ │ │ │ └── platform/ │ │ │ └── template/ │ │ │ ├── DesktopApp.kt │ │ │ ├── DesktopAppGraph.kt │ │ │ └── Main.kt │ │ ├── iosMain/ │ │ │ └── kotlin/ │ │ │ └── software/ │ │ │ └── amazon/ │ │ │ └── app/ │ │ │ └── platform/ │ │ │ └── template/ │ │ │ ├── IosAppGraph.kt │ │ │ └── MainViewController.kt │ │ └── wasmJsMain/ │ │ ├── kotlin/ │ │ │ └── software/ │ │ │ └── amazon/ │ │ │ └── app/ │ │ │ └── platform/ │ │ │ └── template/ │ │ │ ├── Main.kt │ │ │ └── WasmJsAppGraph.kt │ │ └── resources/ │ │ ├── index.html │ │ └── styles.css │ ├── build.gradle.kts │ ├── gradle/ │ │ ├── libs.versions.toml │ │ └── wrapper/ │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties │ ├── gradle.properties │ ├── gradlew │ ├── gradlew.bat │ ├── iosApp/ │ │ ├── Configuration/ │ │ │ └── Config.xcconfig │ │ ├── iosApp/ │ │ │ ├── Assets.xcassets/ │ │ │ │ ├── AccentColor.colorset/ │ │ │ │ │ └── Contents.json │ │ │ │ ├── AppIcon.appiconset/ │ │ │ │ │ └── Contents.json │ │ │ │ └── Contents.json │ │ │ ├── ComposeContentView.swift │ │ │ ├── Info.plist │ │ │ ├── Preview Content/ │ │ │ │ └── Preview Assets.xcassets/ │ │ │ │ └── Contents.json │ │ │ └── iOSApp.swift │ │ └── iosApp.xcodeproj/ │ │ ├── project.pbxproj │ │ ├── project.xcworkspace/ │ │ │ └── contents.xcworkspacedata │ │ └── xcshareddata/ │ │ └── xcschemes/ │ │ └── iosApp.xcscheme │ ├── navigation/ │ │ ├── impl/ │ │ │ ├── build.gradle.kts │ │ │ └── src/ │ │ │ ├── commonMain/ │ │ │ │ └── kotlin/ │ │ │ │ └── software/ │ │ │ │ └── amazon/ │ │ │ │ └── app/ │ │ │ │ └── platform/ │ │ │ │ └── template/ │ │ │ │ └── navigation/ │ │ │ │ ├── ExampleRepositoryImpl.kt │ │ │ │ ├── ExampleValueGenerator.kt │ │ │ │ ├── NavigationDetailPresenterImpl.kt │ │ │ │ ├── NavigationDetailRenderer.kt │ │ │ │ ├── NavigationHeaderPresenterImpl.kt │ │ │ │ ├── NavigationHeaderRenderer.kt │ │ │ │ └── NavigationPresenterImpl.kt │ │ │ └── commonTest/ │ │ │ └── kotlin/ │ │ │ └── software/ │ │ │ └── amazon/ │ │ │ └── app/ │ │ │ └── platform/ │ │ │ └── template/ │ │ │ └── navigation/ │ │ │ ├── NavigationDetailPresenterTest.kt │ │ │ ├── NavigationHeaderPresenterTest.kt │ │ │ └── NavigationPresenterImplTest.kt │ │ ├── public/ │ │ │ ├── build.gradle.kts │ │ │ └── src/ │ │ │ └── commonMain/ │ │ │ └── kotlin/ │ │ │ └── software/ │ │ │ └── amazon/ │ │ │ └── app/ │ │ │ └── platform/ │ │ │ └── template/ │ │ │ └── navigation/ │ │ │ ├── ExampleRepository.kt │ │ │ ├── NavigationDetailPresenter.kt │ │ │ ├── NavigationHeaderPresenter.kt │ │ │ └── NavigationPresenter.kt │ │ └── testing/ │ │ ├── build.gradle.kts │ │ └── src/ │ │ └── commonMain/ │ │ └── kotlin/ │ │ └── software/ │ │ └── amazon/ │ │ └── app/ │ │ └── platform/ │ │ └── template/ │ │ └── navigation/ │ │ └── FakeExampleRepository.kt │ ├── settings.gradle.kts │ └── templates/ │ ├── impl/ │ │ ├── build.gradle.kts │ │ └── src/ │ │ └── commonMain/ │ │ └── kotlin/ │ │ └── software/ │ │ └── amazon/ │ │ └── app/ │ │ └── platform/ │ │ └── template/ │ │ └── templates/ │ │ └── ComposeAppTemplateRenderer.kt │ └── public/ │ ├── build.gradle.kts │ └── src/ │ └── commonMain/ │ └── kotlin/ │ └── software/ │ └── amazon/ │ └── app/ │ └── platform/ │ └── template/ │ └── templates/ │ ├── AppTemplate.kt │ └── AppTemplatePresenter.kt ├── build.gradle ├── buildSrc/ │ ├── build.gradle │ ├── settings.gradle │ └── src/ │ └── main/ │ └── kotlin/ │ └── software/ │ └── amazon/ │ └── app/ │ └── platform/ │ └── gradle/ │ └── buildsrc/ │ ├── AppPlatformExtension.kt │ ├── AppPlugin.kt │ ├── BaseAndroidPlugin.kt │ ├── BasePlugin.kt │ ├── Gradle.kt │ ├── JvmLibraryPlugin.kt │ ├── KmpPlugin.kt │ ├── LibraryPlugin.kt │ ├── Platform.kt │ ├── Plugins.kt │ ├── RootPlugin.kt │ └── SdkPlugin.kt ├── di-common/ │ └── public/ │ ├── api/ │ │ ├── android/ │ │ │ └── public.api │ │ └── desktop/ │ │ └── public.api │ ├── build.gradle │ └── src/ │ └── commonMain/ │ └── kotlin/ │ └── software/ │ └── amazon/ │ └── app/ │ └── platform/ │ ├── inject/ │ │ ├── ContributesRenderer.kt │ │ └── robot/ │ │ └── ContributesRobot.kt │ ├── presenter/ │ │ └── PresenterCoroutineScope.kt │ └── scope/ │ └── coroutine/ │ ├── DefaultCoroutineDispatcher.kt │ ├── IoCoroutineDispatcher.kt │ └── MainCoroutineDispatcher.kt ├── docs/ │ ├── di.md │ ├── faq.md │ ├── index.md │ ├── module-structure.md │ ├── presenter.md │ ├── renderer.md │ ├── scope.md │ ├── setup.md │ ├── template.md │ └── testing.md ├── gradle/ │ ├── detekt-config.yml │ ├── libs.versions.toml │ └── wrapper/ │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradle-plugin/ │ ├── api/ │ │ └── gradle-plugin.api │ ├── build.gradle │ ├── settings.gradle │ └── src/ │ └── main/ │ └── kotlin/ │ └── software/ │ └── amazon/ │ └── app/ │ └── platform/ │ └── gradle/ │ ├── AppPlatformExtension.kt │ ├── AppPlatformPlugin.kt │ ├── GradleExtensions.kt │ ├── ModuleStructureDependencyCheckTask.kt │ ├── ModuleStructurePlugin.kt │ ├── ModuleType.kt │ └── PluginIds.kt ├── gradle.properties ├── gradlew ├── gradlew.bat ├── internal/ │ └── testing/ │ ├── build.gradle │ └── src/ │ ├── androidMain/ │ │ └── kotlin/ │ │ └── software/ │ │ └── amazon/ │ │ └── app/ │ │ └── platform/ │ │ └── internal/ │ │ ├── IgnoreNative.kt │ │ ├── IgnoreWasm.android.kt │ │ ├── Platform.kt │ │ └── Thread.kt │ ├── commonMain/ │ │ └── kotlin/ │ │ └── software/ │ │ └── amazon/ │ │ └── app/ │ │ └── platform/ │ │ └── internal/ │ │ ├── IgnoreNative.kt │ │ ├── IgnoreWasm.kt │ │ ├── Platform.kt │ │ └── Thread.kt │ ├── desktopMain/ │ │ └── kotlin/ │ │ └── software/ │ │ └── amazon/ │ │ └── app/ │ │ └── platform/ │ │ └── internal/ │ │ ├── IgnoreNative.kt │ │ ├── IgnoreWasm.kt │ │ ├── Platform.kt │ │ └── Thread.kt │ ├── nativeMain/ │ │ └── kotlin/ │ │ └── software/ │ │ └── amazon/ │ │ └── app/ │ │ └── platform/ │ │ └── internal/ │ │ ├── IgnoreNative.kt │ │ ├── IgnoreWasm.kt │ │ ├── Platform.kt │ │ └── Thread.kt │ └── wasmJsMain/ │ └── kotlin/ │ └── software/ │ └── amazon/ │ └── app/ │ └── platform/ │ └── internal/ │ ├── IgnoreNative.kt │ ├── IgnoreWasm.kt │ ├── Platform.kt │ └── Thread.kt ├── ios-run.sh ├── kotlin-inject/ │ ├── impl/ │ │ ├── api/ │ │ │ ├── android/ │ │ │ │ └── impl.api │ │ │ └── desktop/ │ │ │ └── impl.api │ │ ├── build.gradle │ │ └── src/ │ │ ├── commonMain/ │ │ │ └── kotlin/ │ │ │ └── software/ │ │ │ └── amazon/ │ │ │ └── app/ │ │ │ └── platform/ │ │ │ ├── presenter/ │ │ │ │ └── PresenterCoroutineScopeComponent.kt │ │ │ └── scope/ │ │ │ └── coroutine/ │ │ │ ├── AppScopeCoroutineScopeComponent.kt │ │ │ ├── CoroutineDispatcherComponent.kt │ │ │ └── IoDispatcher.kt │ │ ├── noWasmJsMain/ │ │ │ └── kotlin/ │ │ │ └── software/ │ │ │ └── amazon/ │ │ │ └── app/ │ │ │ └── platform/ │ │ │ └── scope/ │ │ │ └── coroutine/ │ │ │ └── IoDispatcher.kt │ │ └── wasmJsMain/ │ │ └── kotlin/ │ │ └── software/ │ │ └── amazon/ │ │ └── app/ │ │ └── platform/ │ │ └── scope/ │ │ └── coroutine/ │ │ └── IoDispatcher.kt │ └── public/ │ ├── api/ │ │ ├── android/ │ │ │ └── public.api │ │ └── desktop/ │ │ └── public.api │ ├── build.gradle │ └── src/ │ ├── commonMain/ │ │ └── kotlin/ │ │ └── software/ │ │ └── amazon/ │ │ └── app/ │ │ └── platform/ │ │ └── scope/ │ │ └── di/ │ │ └── ComponentService.kt │ └── commonTest/ │ └── kotlin/ │ └── software/ │ └── amazon/ │ └── app/ │ └── platform/ │ └── scope/ │ └── di/ │ └── ComponentServiceTest.kt ├── kotlin-inject-extensions/ │ └── contribute/ │ ├── impl-code-generators/ │ │ ├── build.gradle │ │ └── src/ │ │ ├── main/ │ │ │ └── kotlin/ │ │ │ └── software/ │ │ │ └── amazon/ │ │ │ └── app/ │ │ │ └── platform/ │ │ │ └── inject/ │ │ │ ├── KotlinInjectContextAware.kt │ │ │ ├── KotlinInjectExtensionSymbolProcessorProvider.kt │ │ │ ├── Util.kt │ │ │ └── processor/ │ │ │ ├── ContributesBindingProcessor.kt │ │ │ ├── ContributesBindingScopedProcessor.kt │ │ │ ├── ContributesMockImplProcessor.kt │ │ │ ├── ContributesRealImplProcessor.kt │ │ │ ├── ContributesRendererProcessor.kt │ │ │ └── ContributesRobotProcessor.kt │ │ └── test/ │ │ └── kotlin/ │ │ └── software/ │ │ └── amazon/ │ │ └── app/ │ │ └── platform/ │ │ └── inject/ │ │ ├── CommonSourceCode.kt │ │ ├── Compilation.kt │ │ ├── CompilerTestUtil.kt │ │ └── processor/ │ │ ├── ContributesBindingProcessorTest.kt │ │ ├── ContributesBindingScopedProcessorTest.kt │ │ ├── ContributesMockImplGeneratorTest.kt │ │ ├── ContributesRealImplGeneratorTest.kt │ │ ├── ContributesRendererProcessorTest.kt │ │ └── ContributesRobotGeneratorTest.kt │ └── public/ │ ├── api/ │ │ ├── android/ │ │ │ └── public.api │ │ └── desktop/ │ │ └── public.api │ ├── build.gradle │ └── src/ │ └── commonMain/ │ └── kotlin/ │ └── software/ │ └── amazon/ │ └── app/ │ └── platform/ │ └── inject/ │ └── mock/ │ ├── ContributesMockImpl.kt │ ├── ContributesRealImpl.kt │ ├── MockMode.kt │ └── RealImpl.kt ├── ksp-common/ │ ├── public/ │ │ ├── build.gradle │ │ └── src/ │ │ └── main/ │ │ └── kotlin/ │ │ └── software/ │ │ └── amazon/ │ │ └── app/ │ │ └── platform/ │ │ └── ksp/ │ │ ├── CompositeSymbolProcessor.kt │ │ ├── ContextAware.kt │ │ ├── MergeScope.kt │ │ └── Util.kt │ └── testing/ │ ├── build.gradle │ └── src/ │ └── main/ │ └── kotlin/ │ └── software/ │ └── amazon/ │ └── app/ │ └── platform/ │ └── ksp/ │ ├── CommonSourceCode.kt │ └── Util.kt ├── metro/ │ ├── impl/ │ │ ├── api/ │ │ │ ├── android/ │ │ │ │ └── impl.api │ │ │ └── desktop/ │ │ │ └── impl.api │ │ ├── build.gradle │ │ └── src/ │ │ ├── commonMain/ │ │ │ └── kotlin/ │ │ │ └── software/ │ │ │ └── amazon/ │ │ │ └── app/ │ │ │ └── platform/ │ │ │ ├── presenter/ │ │ │ │ └── metro/ │ │ │ │ └── PresenterCoroutineScopeGraph.kt │ │ │ └── scope/ │ │ │ └── coroutine/ │ │ │ └── metro/ │ │ │ ├── AppScopeCoroutineScopeGraph.kt │ │ │ ├── CoroutineDispatcherGraph.kt │ │ │ └── IoDispatcher.kt │ │ ├── noWasmJsMain/ │ │ │ └── kotlin/ │ │ │ └── software/ │ │ │ └── amazon/ │ │ │ └── app/ │ │ │ └── platform/ │ │ │ └── scope/ │ │ │ └── coroutine/ │ │ │ └── metro/ │ │ │ └── IoDispatcher.kt │ │ └── wasmJsMain/ │ │ └── kotlin/ │ │ └── software/ │ │ └── amazon/ │ │ └── app/ │ │ └── platform/ │ │ └── scope/ │ │ └── coroutine/ │ │ └── metro/ │ │ └── IoDispatcher.kt │ └── public/ │ ├── api/ │ │ ├── android/ │ │ │ └── public.api │ │ └── desktop/ │ │ └── public.api │ ├── build.gradle │ └── src/ │ ├── commonMain/ │ │ └── kotlin/ │ │ └── software/ │ │ └── amazon/ │ │ └── app/ │ │ └── platform/ │ │ ├── inject/ │ │ │ └── metro/ │ │ │ └── ContributesScoped.kt │ │ ├── renderer/ │ │ │ └── metro/ │ │ │ ├── RendererKey.kt │ │ │ └── RobotKey.kt │ │ └── scope/ │ │ └── di/ │ │ └── metro/ │ │ └── MetroService.kt │ └── commonTest/ │ └── kotlin/ │ └── software/ │ └── amazon/ │ └── app/ │ └── platform/ │ └── scope/ │ └── di/ │ └── metro/ │ └── MetroServiceTest.kt ├── metro-extensions/ │ └── contribute/ │ ├── impl-code-generators/ │ │ ├── build.gradle │ │ └── src/ │ │ ├── main/ │ │ │ └── kotlin/ │ │ │ └── software/ │ │ │ └── amazon/ │ │ │ └── app/ │ │ │ └── platform/ │ │ │ └── metro/ │ │ │ ├── MetroContextAware.kt │ │ │ ├── MetroExtensionSymbolProcessorProvider.kt │ │ │ ├── Util.kt │ │ │ └── processor/ │ │ │ ├── ContributesRendererProcessor.kt │ │ │ ├── ContributesRobotProcessor.kt │ │ │ └── ContributesScopedProcessor.kt │ │ └── test/ │ │ └── kotlin/ │ │ └── software/ │ │ └── amazon/ │ │ ├── app/ │ │ │ └── platform/ │ │ │ └── inject/ │ │ │ └── metro/ │ │ │ ├── CommonSourceCode.kt │ │ │ ├── Compilation.kt │ │ │ ├── CompilerTestUtil.kt │ │ │ └── processor/ │ │ │ ├── ContributesRendererProcessorTest.kt │ │ │ ├── ContributesRobotGeneratorTest.kt │ │ │ └── ContributesScopedProcessorTest.kt │ │ └── test/ │ │ ├── TestRendererGraph.kt │ │ └── TestRobotGraph.kt │ └── impl-compiler-plugin/ │ ├── build.gradle │ └── src/ │ ├── main/ │ │ └── kotlin/ │ │ └── software/ │ │ └── amazon/ │ │ └── app/ │ │ └── platform/ │ │ └── metro/ │ │ └── compiler/ │ │ ├── AppPlatformMetroExtensionsPluginComponentRegistrar.kt │ │ ├── AppPlatformMetroExtensionsPluginRegistrar.kt │ │ ├── ClassIds.kt │ │ ├── Keys.kt │ │ ├── fir/ │ │ │ ├── AppPlatformMetroExtensionsDiagnostics.kt │ │ │ ├── AppPlatformMetroExtensionsFirCheckers.kt │ │ │ ├── FirHelpers.kt │ │ │ └── TypeResolution.kt │ │ ├── renderer/ │ │ │ ├── ContributesRendererChecker.kt │ │ │ ├── ContributesRendererFir.kt │ │ │ ├── ContributesRendererIds.kt │ │ │ ├── ContributesRendererIrExtension.kt │ │ │ ├── ContributesRendererMetroExtension.kt │ │ │ └── ContributesRendererSupport.kt │ │ ├── robot/ │ │ │ ├── ContributesRobotChecker.kt │ │ │ ├── ContributesRobotFir.kt │ │ │ ├── ContributesRobotIds.kt │ │ │ ├── ContributesRobotIrExtension.kt │ │ │ └── ContributesRobotMetroExtension.kt │ │ └── scoped/ │ │ ├── ContributesScopedChecker.kt │ │ ├── ContributesScopedFir.kt │ │ ├── ContributesScopedIds.kt │ │ ├── ContributesScopedMetroExtension.kt │ │ └── ContributesScopedSupport.kt │ └── test/ │ ├── java/ │ │ └── software/ │ │ └── amazon/ │ │ └── app/ │ │ └── platform/ │ │ └── metro/ │ │ └── compiler/ │ │ └── runners/ │ │ ├── BoxTestGenerated.java │ │ ├── FirDiagnosticTestGenerated.java │ │ └── FirDumpTestGenerated.java │ ├── kotlin/ │ │ └── software/ │ │ └── amazon/ │ │ └── app/ │ │ └── platform/ │ │ └── metro/ │ │ └── compiler/ │ │ ├── GenerateTests.kt │ │ ├── runners/ │ │ │ ├── AbstractBoxTest.kt │ │ │ ├── AbstractFirDiagnosticTest.kt │ │ │ └── AbstractFirDumpTest.kt │ │ ├── services/ │ │ │ ├── CompilerPluginTestSupport.kt │ │ │ ├── KotlinTestImportsPreprocessor.kt │ │ │ ├── MetroImportsPreprocessor.kt │ │ │ ├── MetroRuntimeProvider.kt │ │ │ ├── PluginAnnotationsProvider.kt │ │ │ └── TestSupportClasspathProvider.kt │ │ └── support/ │ │ └── UnusedRendererFactory.kt │ └── resources/ │ ├── box/ │ │ ├── contributesrenderer/ │ │ │ ├── defaultConstructorRenderer.kt │ │ │ ├── explicitModelType.kt │ │ │ ├── inferredFromHierarchy.kt │ │ │ ├── inferredFromHierarchyMultipleLevels.kt │ │ │ ├── injectConstructorRenderer.kt │ │ │ ├── innerModel.kt │ │ │ ├── innerRenderer.kt │ │ │ ├── sealedHierarchy.kt │ │ │ ├── sealedHierarchyDisabled.kt │ │ │ └── sealedHierarchyInDependencyModule.kt │ │ ├── contributesrobot/ │ │ │ ├── defaultConstructorRobot.kt │ │ │ ├── indirectSupertype.kt │ │ │ └── injectConstructorRobot.kt │ │ └── contributesscoped/ │ │ ├── defaultScoped.kt │ │ ├── innerClass.kt │ │ ├── onlyScoped.kt │ │ └── transitiveScoped.kt │ ├── diagnostics/ │ │ ├── contributesrenderer/ │ │ │ ├── missingInjectOnNonZeroArgConstructor.fir.diag.txt │ │ │ ├── missingInjectOnNonZeroArgConstructor.kt │ │ │ ├── modelTypeMustBeExplicitWhenNotInferable.fir.diag.txt │ │ │ ├── modelTypeMustBeExplicitWhenNotInferable.kt │ │ │ ├── redundantInjectOnZeroArgConstructor.fir.diag.txt │ │ │ ├── redundantInjectOnZeroArgConstructor.kt │ │ │ ├── rendererMustNotBeSingleton.fir.diag.txt │ │ │ └── rendererMustNotBeSingleton.kt │ │ ├── contributesrobot/ │ │ │ ├── classMustImplementRobot.fir.diag.txt │ │ │ ├── classMustImplementRobot.kt │ │ │ ├── classWithConstructorParametersMustUseInject.fir.diag.txt │ │ │ ├── classWithConstructorParametersMustUseInject.kt │ │ │ ├── onlyAppScopeSupported.fir.diag.txt │ │ │ ├── onlyAppScopeSupported.kt │ │ │ ├── robotMustNotBeSingleton.fir.diag.txt │ │ │ └── robotMustNotBeSingleton.kt │ │ └── contributesscoped/ │ │ ├── multipleOtherSupertypes.fir.diag.txt │ │ ├── multipleOtherSupertypes.kt │ │ ├── mustBeInject.fir.diag.txt │ │ ├── mustBeInject.kt │ │ ├── mustImplementScoped.fir.diag.txt │ │ ├── mustImplementScoped.kt │ │ ├── noSupertypes.fir.diag.txt │ │ ├── noSupertypes.kt │ │ ├── useContributesScopedInsteadOfContributesBinding.fir.diag.txt │ │ └── useContributesScopedInsteadOfContributesBinding.kt │ └── dump/ │ ├── contributesrenderer/ │ │ ├── defaultConstructorRenderer.fir.txt │ │ ├── defaultConstructorRenderer.kt │ │ ├── defaultConstructorRendererIr.fir.kt.txt │ │ ├── defaultConstructorRendererIr.fir.txt │ │ └── defaultConstructorRendererIr.kt │ ├── contributesrobot/ │ │ ├── defaultConstructorRobot.fir.txt │ │ ├── defaultConstructorRobot.kt │ │ ├── defaultConstructorRobotIr.fir.kt.txt │ │ ├── defaultConstructorRobotIr.fir.txt │ │ └── defaultConstructorRobotIr.kt │ └── contributesscoped/ │ ├── defaultScoped.fir.txt │ └── defaultScoped.kt ├── mkdocs.yml ├── presenter/ │ └── public/ │ ├── api/ │ │ ├── android/ │ │ │ └── public.api │ │ └── desktop/ │ │ └── public.api │ ├── build.gradle │ └── src/ │ ├── commonMain/ │ │ └── kotlin/ │ │ └── software/ │ │ └── amazon/ │ │ └── app/ │ │ └── platform/ │ │ └── presenter/ │ │ ├── BaseModel.kt │ │ ├── Presenter.kt │ │ ├── StateIn.kt │ │ └── template/ │ │ ├── ModelDelegate.kt │ │ └── Template.kt │ └── commonTest/ │ └── kotlin/ │ └── software/ │ └── amazon/ │ └── app/ │ └── platform/ │ └── presenter/ │ ├── StateInTest.kt │ └── template/ │ └── TemplateTest.kt ├── presenter-molecule/ │ ├── impl/ │ │ ├── api/ │ │ │ ├── android/ │ │ │ │ └── impl.api │ │ │ └── desktop/ │ │ │ └── impl.api │ │ ├── build.gradle │ │ └── src/ │ │ ├── androidMain/ │ │ │ └── kotlin/ │ │ │ └── software/ │ │ │ └── amazon/ │ │ │ └── app/ │ │ │ └── platform/ │ │ │ └── presenter/ │ │ │ └── molecule/ │ │ │ └── AndroidMoleculeScopeFactory.kt │ │ ├── commonMain/ │ │ │ └── kotlin/ │ │ │ └── software/ │ │ │ └── amazon/ │ │ │ └── app/ │ │ │ └── platform/ │ │ │ └── presenter/ │ │ │ └── molecule/ │ │ │ ├── DefaultMoleculeScopeFactory.kt │ │ │ └── backgesture/ │ │ │ └── DefaultBackGestureDispatcherPresenter.kt │ │ ├── commonTest/ │ │ │ └── kotlin/ │ │ │ └── software/ │ │ │ └── amazon/ │ │ │ └── app/ │ │ │ └── platform/ │ │ │ └── presenter/ │ │ │ └── molecule/ │ │ │ ├── DefaultMoleculeScopeFactoryTest.kt │ │ │ ├── KotlinInjectInjectionTest.kt │ │ │ └── MetroInjectionTest.kt │ │ ├── desktopMain/ │ │ │ └── kotlin/ │ │ │ └── software/ │ │ │ └── amazon/ │ │ │ └── app/ │ │ │ └── platform/ │ │ │ └── presenter/ │ │ │ └── molecule/ │ │ │ └── DesktopMoleculeScopeFactory.kt │ │ ├── iosMain/ │ │ │ └── kotlin/ │ │ │ └── software/ │ │ │ └── amazon/ │ │ │ └── app/ │ │ │ └── platform/ │ │ │ └── presenter/ │ │ │ └── molecule/ │ │ │ └── IosMoleculeScopeFactory.kt │ │ ├── linuxMain/ │ │ │ └── kotlin/ │ │ │ └── software/ │ │ │ └── amazon/ │ │ │ └── app/ │ │ │ └── platform/ │ │ │ └── presenter/ │ │ │ └── molecule/ │ │ │ └── LinuxMoleculeScopeFactory.kt │ │ └── wasmJsMain/ │ │ └── kotlin/ │ │ └── software/ │ │ └── amazon/ │ │ └── app/ │ │ └── platform/ │ │ └── presenter/ │ │ └── molecule/ │ │ └── WasmJsMoleculeScopeFactory.kt │ ├── public/ │ │ ├── api/ │ │ │ ├── android/ │ │ │ │ └── public.api │ │ │ └── desktop/ │ │ │ └── public.api │ │ ├── build.gradle │ │ └── src/ │ │ ├── commonMain/ │ │ │ └── kotlin/ │ │ │ └── software/ │ │ │ └── amazon/ │ │ │ └── app/ │ │ │ └── platform/ │ │ │ └── presenter/ │ │ │ └── molecule/ │ │ │ ├── LaunchMoleculePresenter.kt │ │ │ ├── MoleculePresenter.kt │ │ │ ├── MoleculeScope.kt │ │ │ ├── MoleculeScopeFactory.kt │ │ │ ├── ReturningCompositionLocalProvider.kt │ │ │ └── backgesture/ │ │ │ ├── BackEventPresenter.kt │ │ │ ├── BackGestureDispatcherPresenter.kt │ │ │ └── CommonBackGestureDispatcherPresenter.kt │ │ └── commonTest/ │ │ └── kotlin/ │ │ └── software/ │ │ └── amazon/ │ │ └── app/ │ │ └── platform/ │ │ └── presenter/ │ │ └── molecule/ │ │ ├── LaunchMoleculePresenterTest.kt │ │ ├── MoleculeScopeTest.kt │ │ ├── OnEventMemoizationTest.kt │ │ └── backgesture/ │ │ └── CommonBackGestureDispatcherPresenterTest.kt │ └── testing/ │ ├── api/ │ │ ├── android/ │ │ │ └── testing.api │ │ └── desktop/ │ │ └── testing.api │ ├── build.gradle │ └── src/ │ ├── commonMain/ │ │ └── kotlin/ │ │ └── software/ │ │ └── amazon/ │ │ └── app/ │ │ └── platform/ │ │ └── presenter/ │ │ └── molecule/ │ │ ├── FakeMoleculeScopeFactory.kt │ │ ├── TestMoleculeScope.kt │ │ ├── TestPresenter.kt │ │ └── backgesture/ │ │ └── TestBackGestureDispatcherPresenter.kt │ └── commonTest/ │ └── kotlin/ │ └── software/ │ └── amazon/ │ └── app/ │ └── platform/ │ └── presenter/ │ └── molecule/ │ ├── FakeMoleculeScopeFactoryTest.kt │ ├── TestMoleculeScopeTest.kt │ ├── TestPresenterTest.kt │ └── backgesture/ │ └── TestBackGestureDispatcherPresenterTest.kt ├── recipes/ │ ├── app/ │ │ ├── build.gradle │ │ └── src/ │ │ ├── androidMain/ │ │ │ ├── AndroidManifest.xml │ │ │ └── kotlin/ │ │ │ └── software/ │ │ │ └── amazon/ │ │ │ └── app/ │ │ │ └── platform/ │ │ │ └── recipes/ │ │ │ ├── AndroidAppComponent.kt │ │ │ ├── AndroidApplication.kt │ │ │ ├── MainActivity.kt │ │ │ └── MainActivityViewModel.kt │ │ ├── commonMain/ │ │ │ └── kotlin/ │ │ │ └── software/ │ │ │ └── amazon/ │ │ │ └── app/ │ │ │ └── platform/ │ │ │ └── recipes/ │ │ │ ├── AppComponent.kt │ │ │ ├── DemoApplication.kt │ │ │ └── TemplateProvider.kt │ │ ├── desktopMain/ │ │ │ └── kotlin/ │ │ │ └── software/ │ │ │ └── amazon/ │ │ │ └── app/ │ │ │ └── platform/ │ │ │ └── recipes/ │ │ │ ├── DesktopApp.kt │ │ │ ├── DesktopAppComponent.kt │ │ │ └── Main.kt │ │ ├── iosMain/ │ │ │ └── kotlin/ │ │ │ └── software/ │ │ │ └── amazon/ │ │ │ └── app/ │ │ │ └── platform/ │ │ │ └── recipes/ │ │ │ ├── IosAppComponent.kt │ │ │ └── MainViewController.kt │ │ └── wasmJsMain/ │ │ ├── kotlin/ │ │ │ └── software/ │ │ │ └── amazon/ │ │ │ └── app/ │ │ │ └── platform/ │ │ │ └── recipes/ │ │ │ ├── Main.kt │ │ │ └── WasmJsAppComponent.kt │ │ └── resources/ │ │ ├── index.html │ │ └── styles.css │ ├── common/ │ │ └── impl/ │ │ ├── build.gradle │ │ └── src/ │ │ └── commonMain/ │ │ └── kotlin/ │ │ └── software/ │ │ └── amazon/ │ │ └── app/ │ │ └── platform/ │ │ └── recipes/ │ │ ├── appbar/ │ │ │ ├── AppBarConfig.kt │ │ │ ├── AppBarConfigModel.kt │ │ │ └── menu/ │ │ │ └── MenuPresenter.kt │ │ ├── backstack/ │ │ │ ├── CrossSlideBackstackPresenter.kt │ │ │ ├── CrossSlideBackstackRenderer.kt │ │ │ ├── PresenterBackstackScope.kt │ │ │ └── presenter/ │ │ │ └── BackstackChildPresenter.kt │ │ ├── landing/ │ │ │ ├── LandingPresenter.kt │ │ │ └── LandingRenderer.kt │ │ ├── nav3/ │ │ │ ├── Navigation3ChildPresenter.kt │ │ │ ├── Navigation3ChildRenderer.kt │ │ │ ├── Navigation3HomePresenter.kt │ │ │ └── Navigation3HomeRenderer.kt │ │ ├── saveable/ │ │ │ └── ReturningSaveableStateHolder.kt │ │ ├── swiftui/ │ │ │ ├── SwiftUiChildPresenter.kt │ │ │ └── SwiftUiHomePresenter.kt │ │ └── template/ │ │ ├── RecipesAppTemplate.kt │ │ ├── RootPresenter.kt │ │ └── RootPresenterRenderer.kt │ └── recipesIosApp/ │ ├── recipesIosApp/ │ │ ├── Assets.xcassets/ │ │ │ ├── AccentColor.colorset/ │ │ │ │ └── Contents.json │ │ │ ├── AppIcon.appiconset/ │ │ │ │ └── Contents.json │ │ │ └── Contents.json │ │ ├── ContentView.swift │ │ ├── Info.plist │ │ ├── PresenterViews/ │ │ │ ├── AppPlatform+Extensions.swift │ │ │ ├── MoleculePresenterWrapper.swift │ │ │ ├── PresenterView.swift │ │ │ └── PresenterViewModel.swift │ │ ├── RecipesIosApp.swift │ │ └── SwiftUI/ │ │ ├── SwiftUiChildPresenterView.swift │ │ ├── SwiftUiHomePresenterBuilder.swift │ │ ├── SwiftUiHomePresenterView.swift │ │ └── SwiftUiRootPresenterView.swift │ └── recipesIosApp.xcodeproj/ │ └── project.pbxproj ├── renderer/ │ └── public/ │ ├── api/ │ │ ├── android/ │ │ │ └── public.api │ │ └── desktop/ │ │ └── public.api │ ├── build.gradle │ └── src/ │ ├── commonMain/ │ │ └── kotlin/ │ │ └── software/ │ │ └── amazon/ │ │ └── app/ │ │ └── platform/ │ │ └── renderer/ │ │ ├── BaseRendererFactory.kt │ │ ├── Renderer.kt │ │ ├── RendererComponent.kt │ │ ├── RendererFactory.kt │ │ ├── RendererGraph.kt │ │ └── RendererScope.kt │ └── commonTest/ │ └── kotlin/ │ └── software/ │ └── amazon/ │ └── app/ │ └── platform/ │ └── renderer/ │ └── BaseRendererFactoryTest.kt ├── renderer-android-view/ │ └── public/ │ ├── api/ │ │ └── public.api │ ├── build.gradle │ └── src/ │ ├── androidInstrumentedTest/ │ │ ├── AndroidManifest.xml │ │ ├── kotlin/ │ │ │ └── software/ │ │ │ └── amazon/ │ │ │ └── app/ │ │ │ └── platform/ │ │ │ ├── presenter/ │ │ │ │ └── molecule/ │ │ │ │ └── backgesture/ │ │ │ │ └── ForwardBackPressEventsToPresentersAndroidTest.kt │ │ │ └── renderer/ │ │ │ ├── AndroidRendererFactoryTest.kt │ │ │ ├── RecyclerViewViewHolderRendererTest.kt │ │ │ ├── TestActivity.kt │ │ │ ├── TestApplication.kt │ │ │ ├── ViewBindingRendererTest.kt │ │ │ └── ViewRendererTest.kt │ │ └── res/ │ │ └── layout/ │ │ └── viewbinding_layout.xml │ └── androidMain/ │ └── kotlin/ │ └── software/ │ └── amazon/ │ └── app/ │ └── platform/ │ ├── presenter/ │ │ └── molecule/ │ │ └── backgesture/ │ │ └── BackGestureDispatcherPresenterAndroid.kt │ └── renderer/ │ ├── AndroidRendererFactory.kt │ ├── BaseAndroidViewRenderer.kt │ ├── RecyclerViewViewHolderRenderer.kt │ ├── ViewBindingRenderer.kt │ ├── ViewRenderer.kt │ └── template/ │ └── AndroidTemplateRenderer.kt ├── renderer-compose-multiplatform/ │ └── public/ │ ├── api/ │ │ ├── android/ │ │ │ └── public.api │ │ └── desktop/ │ │ └── public.api │ ├── build.gradle │ └── src/ │ ├── androidInstrumentedTest/ │ │ ├── AndroidManifest.xml │ │ └── kotlin/ │ │ └── software/ │ │ └── amazon/ │ │ └── app/ │ │ └── platform/ │ │ ├── presenter/ │ │ │ └── molecule/ │ │ │ └── backgesture/ │ │ │ └── ForwardBackPressEventsToPresentersComposeTest.kt │ │ └── renderer/ │ │ ├── ComposeAndroidRendererFactoryDeviceTest.kt │ │ ├── TestActivity.kt │ │ └── TestApplication.kt │ ├── androidMain/ │ │ └── kotlin/ │ │ └── software/ │ │ └── amazon/ │ │ └── app/ │ │ └── platform/ │ │ └── renderer/ │ │ ├── AndroidViewWithinComposeRenderer.kt │ │ ├── BaseComposeWithinAndroidViewRenderer.kt │ │ ├── ComposeAndroidRendererFactory.kt │ │ └── ComposeWithinAndroidViewRenderer.kt │ ├── androidUnitTest/ │ │ └── kotlin/ │ │ └── software/ │ │ └── amazon/ │ │ └── app/ │ │ └── platform/ │ │ └── renderer/ │ │ └── ComposeAndroidRendererFactoryTest.kt │ ├── commonMain/ │ │ └── kotlin/ │ │ └── software/ │ │ └── amazon/ │ │ └── app/ │ │ └── platform/ │ │ ├── presenter/ │ │ │ └── molecule/ │ │ │ └── backgesture/ │ │ │ └── BackGestureDispatcherPresenterCompose.kt │ │ └── renderer/ │ │ ├── BaseComposeRenderer.kt │ │ ├── ComposeRenderer.kt │ │ └── ComposeRendererFactory.kt │ └── desktopTest/ │ └── kotlin/ │ └── software/ │ └── amazon/ │ └── app/ │ └── platform/ │ └── renderer/ │ ├── ComposeRendererFactoryTest.kt │ └── ComposeRendererTest.kt ├── robot/ │ └── public/ │ ├── api/ │ │ ├── android/ │ │ │ └── public.api │ │ └── desktop/ │ │ └── public.api │ ├── build.gradle │ └── src/ │ ├── androidMain/ │ │ └── kotlin/ │ │ └── software/ │ │ └── amazon/ │ │ └── app/ │ │ └── platform/ │ │ └── robot/ │ │ ├── AndroidViewRobot.kt │ │ ├── DefaultRootMatcherProvider.kt │ │ └── RootMatcherProvider.kt │ ├── androidUnitTest/ │ │ └── kotlin/ │ │ └── software/ │ │ └── amazon/ │ │ └── app/ │ │ └── platform/ │ │ └── robot/ │ │ └── WaiterTest.kt │ ├── commonMain/ │ │ └── kotlin/ │ │ └── software/ │ │ └── amazon/ │ │ └── app/ │ │ └── platform/ │ │ └── robot/ │ │ ├── Robot.kt │ │ ├── RobotComponent.kt │ │ ├── RobotGraph.kt │ │ └── internal/ │ │ └── RobotInternals.kt │ ├── commonTest/ │ │ └── kotlin/ │ │ └── software/ │ │ └── amazon/ │ │ └── app/ │ │ └── platform/ │ │ └── robot/ │ │ └── RobotTest.kt │ └── noWasmJsMain/ │ └── kotlin/ │ └── software/ │ └── amazon/ │ └── app/ │ └── platform/ │ └── robot/ │ └── Waiter.kt ├── robot-compose-multiplatform/ │ └── public/ │ ├── api/ │ │ ├── android/ │ │ │ └── public.api │ │ └── desktop/ │ │ └── public.api │ ├── build.gradle │ └── src/ │ ├── appleAndDesktopTest/ │ │ └── kotlin/ │ │ └── software/ │ │ └── amazon/ │ │ └── app/ │ │ └── platform/ │ │ └── robot/ │ │ └── ComposeRobotTest.kt │ └── commonMain/ │ └── kotlin/ │ └── software/ │ └── amazon/ │ └── app/ │ └── platform/ │ └── robot/ │ ├── ComposeInteractionsProvider.kt │ └── ComposeRobot.kt ├── robot-internal/ │ └── public/ │ ├── api/ │ │ ├── android/ │ │ │ └── public.api │ │ └── desktop/ │ │ └── public.api │ ├── build.gradle │ └── src/ │ ├── androidMain/ │ │ └── kotlin/ │ │ └── software/ │ │ └── amazon/ │ │ └── app/ │ │ └── platform/ │ │ └── robot/ │ │ └── internal/ │ │ └── DefaultRootScope.kt │ ├── commonMain/ │ │ └── kotlin/ │ │ └── software/ │ │ └── amazon/ │ │ └── app/ │ │ └── platform/ │ │ └── robot/ │ │ └── internal/ │ │ ├── DefaultRootScope.kt │ │ ├── RootScope.kt │ │ └── RootScopeProvider.kt │ ├── commonTest/ │ │ └── kotlin/ │ │ └── software/ │ │ └── amazon/ │ │ └── app/ │ │ └── platform/ │ │ └── robot/ │ │ └── internal/ │ │ └── RootScopeTest.kt │ ├── desktopMain/ │ │ └── kotlin/ │ │ └── software/ │ │ └── amazon/ │ │ └── app/ │ │ └── platform/ │ │ └── robot/ │ │ └── internal/ │ │ └── DefaultRootScope.kt │ ├── nativeMain/ │ │ └── kotlin/ │ │ └── software/ │ │ └── amazon/ │ │ └── app/ │ │ └── platform/ │ │ └── robot/ │ │ └── internal/ │ │ └── DefaultRootScope.kt │ └── wasmJsMain/ │ └── kotlin/ │ └── software/ │ └── amazon/ │ └── app/ │ └── platform/ │ └── robot/ │ └── internal/ │ └── DefaultRootScope.kt ├── sample/ │ ├── app/ │ │ ├── build.gradle │ │ ├── lint.xml │ │ └── src/ │ │ ├── androidInstrumentedTest/ │ │ │ └── kotlin/ │ │ │ └── software/ │ │ │ └── amazon/ │ │ │ └── app/ │ │ │ └── platform/ │ │ │ └── sample/ │ │ │ ├── AndroidLoginUiTest.kt │ │ │ ├── TestAndroidAppGraph.kt │ │ │ ├── TestAndroidApplication.kt │ │ │ └── TestRunner.kt │ │ ├── androidMain/ │ │ │ ├── AndroidManifest.xml │ │ │ ├── kotlin/ │ │ │ │ └── software/ │ │ │ │ └── amazon/ │ │ │ │ └── app/ │ │ │ │ └── platform/ │ │ │ │ └── sample/ │ │ │ │ ├── AndroidAppGraph.kt │ │ │ │ ├── AndroidApplication.kt │ │ │ │ ├── MainActivity.kt │ │ │ │ └── MainActivityViewModel.kt │ │ │ └── res/ │ │ │ ├── drawable/ │ │ │ │ ├── ic_launcher_background.xml │ │ │ │ └── ic_launcher_foreground.xml │ │ │ ├── mipmap-anydpi/ │ │ │ │ ├── ic_launcher.xml │ │ │ │ └── ic_launcher_round.xml │ │ │ └── values/ │ │ │ └── strings.xml │ │ ├── commonMain/ │ │ │ └── kotlin/ │ │ │ └── software/ │ │ │ └── amazon/ │ │ │ └── app/ │ │ │ └── platform/ │ │ │ └── sample/ │ │ │ ├── AppGraph.kt │ │ │ ├── DemoApplication.kt │ │ │ └── TemplateProvider.kt │ │ ├── desktopMain/ │ │ │ └── kotlin/ │ │ │ └── software/ │ │ │ └── amazon/ │ │ │ └── app/ │ │ │ └── platform/ │ │ │ └── sample/ │ │ │ ├── DesktopApp.kt │ │ │ ├── DesktopAppGraph.kt │ │ │ └── Main.kt │ │ ├── desktopTest/ │ │ │ └── kotlin/ │ │ │ └── software/ │ │ │ └── amazon/ │ │ │ └── app/ │ │ │ └── platform/ │ │ │ └── sample/ │ │ │ ├── LoginUiTest.kt │ │ │ ├── TestAnimationHelper.kt │ │ │ └── TestDesktopAppGraph.kt │ │ ├── iosMain/ │ │ │ └── kotlin/ │ │ │ └── software/ │ │ │ └── amazon/ │ │ │ └── app/ │ │ │ └── platform/ │ │ │ └── sample/ │ │ │ ├── IosAppGraph.kt │ │ │ └── MainViewController.kt │ │ └── wasmJsMain/ │ │ ├── kotlin/ │ │ │ └── software/ │ │ │ └── amazon/ │ │ │ └── app/ │ │ │ └── platform/ │ │ │ └── sample/ │ │ │ ├── Main.kt │ │ │ └── WasmJsAppGraph.kt │ │ └── resources/ │ │ ├── index.html │ │ └── styles.css │ ├── iosApp/ │ │ ├── Configuration/ │ │ │ └── Config.xcconfig │ │ ├── iosApp/ │ │ │ ├── Assets.xcassets/ │ │ │ │ ├── AccentColor.colorset/ │ │ │ │ │ └── Contents.json │ │ │ │ ├── AppIcon.appiconset/ │ │ │ │ │ └── Contents.json │ │ │ │ └── Contents.json │ │ │ ├── ComposeContentView.swift │ │ │ ├── Info.plist │ │ │ ├── Preview Content/ │ │ │ │ └── Preview Assets.xcassets/ │ │ │ │ └── Contents.json │ │ │ └── iOSApp.swift │ │ └── iosApp.xcodeproj/ │ │ └── project.pbxproj │ ├── login/ │ │ ├── impl/ │ │ │ ├── build.gradle │ │ │ └── src/ │ │ │ ├── appleAndDesktopTest/ │ │ │ │ └── kotlin/ │ │ │ │ └── software/ │ │ │ │ └── amazon/ │ │ │ │ └── app/ │ │ │ │ └── platform/ │ │ │ │ └── sample/ │ │ │ │ └── login/ │ │ │ │ └── LoginRendererTest.kt │ │ │ ├── commonMain/ │ │ │ │ └── kotlin/ │ │ │ │ └── software/ │ │ │ │ └── amazon/ │ │ │ │ └── app/ │ │ │ │ └── platform/ │ │ │ │ └── sample/ │ │ │ │ └── login/ │ │ │ │ ├── LoginPresenterImpl.kt │ │ │ │ └── LoginRenderer.kt │ │ │ └── commonTest/ │ │ │ └── kotlin/ │ │ │ └── software/ │ │ │ └── amazon/ │ │ │ └── app/ │ │ │ └── platform/ │ │ │ └── sample/ │ │ │ └── login/ │ │ │ └── LoginPresenterImplTest.kt │ │ ├── impl-robots/ │ │ │ ├── build.gradle │ │ │ └── src/ │ │ │ └── commonMain/ │ │ │ └── kotlin/ │ │ │ └── software/ │ │ │ └── amazon/ │ │ │ └── app/ │ │ │ └── platform/ │ │ │ └── sample/ │ │ │ └── login/ │ │ │ └── LoginRobot.kt │ │ └── public/ │ │ ├── build.gradle │ │ └── src/ │ │ └── commonMain/ │ │ └── kotlin/ │ │ └── software/ │ │ └── amazon/ │ │ └── app/ │ │ └── platform/ │ │ └── sample/ │ │ └── login/ │ │ └── LoginPresenter.kt │ ├── navigation/ │ │ ├── impl/ │ │ │ ├── build.gradle │ │ │ └── src/ │ │ │ ├── commonMain/ │ │ │ │ └── kotlin/ │ │ │ │ └── software/ │ │ │ │ └── amazon/ │ │ │ │ └── app/ │ │ │ │ └── platform/ │ │ │ │ └── sample/ │ │ │ │ └── navigation/ │ │ │ │ └── NavigationPresenterImpl.kt │ │ │ └── commonTest/ │ │ │ └── kotlin/ │ │ │ └── software/ │ │ │ └── amazon/ │ │ │ └── app/ │ │ │ └── platform/ │ │ │ └── sample/ │ │ │ └── navigation/ │ │ │ └── NavigationPresenterImplTest.kt │ │ └── public/ │ │ ├── build.gradle │ │ └── src/ │ │ └── commonMain/ │ │ └── kotlin/ │ │ └── software/ │ │ └── amazon/ │ │ └── app/ │ │ └── platform/ │ │ └── sample/ │ │ └── navigation/ │ │ └── NavigationPresenter.kt │ ├── templates/ │ │ ├── impl/ │ │ │ ├── build.gradle │ │ │ └── src/ │ │ │ ├── androidMain/ │ │ │ │ ├── kotlin/ │ │ │ │ │ └── software/ │ │ │ │ │ └── amazon/ │ │ │ │ │ └── app/ │ │ │ │ │ └── platform/ │ │ │ │ │ └── sample/ │ │ │ │ │ └── template/ │ │ │ │ │ └── AndroidSampleAppTemplateRenderer.kt │ │ │ │ └── res/ │ │ │ │ └── layout/ │ │ │ │ └── sample_app_template_root.xml │ │ │ └── commonMain/ │ │ │ └── kotlin/ │ │ │ └── software/ │ │ │ └── amazon/ │ │ │ └── app/ │ │ │ └── platform/ │ │ │ └── sample/ │ │ │ └── template/ │ │ │ └── ComposeSampleAppTemplateRenderer.kt │ │ └── public/ │ │ ├── build.gradle │ │ └── src/ │ │ ├── commonMain/ │ │ │ └── kotlin/ │ │ │ └── software/ │ │ │ └── amazon/ │ │ │ └── app/ │ │ │ └── platform/ │ │ │ └── sample/ │ │ │ └── template/ │ │ │ ├── SampleAppTemplate.kt │ │ │ ├── SampleAppTemplatePresenter.kt │ │ │ └── animation/ │ │ │ └── AnimationContentKey.kt │ │ └── commonTest/ │ │ └── kotlin/ │ │ └── software/ │ │ └── amazon/ │ │ └── app/ │ │ └── platform/ │ │ └── sample/ │ │ └── template/ │ │ └── SampleAppTemplatePresenterTest.kt │ └── user/ │ ├── impl/ │ │ ├── build.gradle │ │ └── src/ │ │ ├── androidMain/ │ │ │ └── kotlin/ │ │ │ └── software/ │ │ │ └── amazon/ │ │ │ └── app/ │ │ │ └── platform/ │ │ │ └── sample/ │ │ │ └── user/ │ │ │ └── AndroidAnimationsHelper.kt │ │ ├── appleAndDesktopMain/ │ │ │ └── kotlin/ │ │ │ └── software/ │ │ │ └── amazon/ │ │ │ └── app/ │ │ │ └── platform/ │ │ │ └── sample/ │ │ │ └── user/ │ │ │ └── DefaultAnimationsHelper.kt │ │ ├── commonMain/ │ │ │ └── kotlin/ │ │ │ └── software/ │ │ │ └── amazon/ │ │ │ └── app/ │ │ │ └── platform/ │ │ │ └── sample/ │ │ │ └── user/ │ │ │ ├── AnimationHelper.kt │ │ │ ├── SessionTimeout.kt │ │ │ ├── UserGraph.kt │ │ │ ├── UserImpl.kt │ │ │ ├── UserManagerImpl.kt │ │ │ ├── UserPageDetailPresenter.kt │ │ │ ├── UserPageDetailRenderer.kt │ │ │ ├── UserPageListPresenter.kt │ │ │ ├── UserPageListRenderer.kt │ │ │ └── UserPagePresenterImpl.kt │ │ ├── commonTest/ │ │ │ └── kotlin/ │ │ │ └── software/ │ │ │ └── amazon/ │ │ │ └── app/ │ │ │ └── platform/ │ │ │ └── sample/ │ │ │ └── user/ │ │ │ ├── FakeAnimationHelper.kt │ │ │ ├── SessionTimeoutTest.kt │ │ │ ├── UserManagerImplTest.kt │ │ │ └── UserPagePresenterImplTest.kt │ │ └── wasmJsMain/ │ │ └── kotlin/ │ │ └── software/ │ │ └── amazon/ │ │ └── app/ │ │ └── platform/ │ │ └── sample/ │ │ └── user/ │ │ └── DefaultAnimationsHelper.kt │ ├── impl-robots/ │ │ ├── build.gradle │ │ └── src/ │ │ └── commonMain/ │ │ └── kotlin/ │ │ └── software/ │ │ └── amazon/ │ │ └── app/ │ │ └── platform/ │ │ └── sample/ │ │ └── user/ │ │ └── UserPageRobot.kt │ ├── public/ │ │ ├── build.gradle │ │ └── src/ │ │ └── commonMain/ │ │ └── kotlin/ │ │ └── software/ │ │ └── amazon/ │ │ └── app/ │ │ └── platform/ │ │ └── sample/ │ │ └── user/ │ │ ├── User.kt │ │ ├── UserManager.kt │ │ ├── UserPagePresenter.kt │ │ └── UserScope.kt │ └── testing/ │ ├── build.gradle │ └── src/ │ └── commonMain/ │ └── kotlin/ │ └── software/ │ └── amazon/ │ └── app/ │ └── platform/ │ └── sample/ │ └── user/ │ ├── FakeUser.kt │ └── FakeUserManager.kt ├── scope/ │ ├── public/ │ │ ├── api/ │ │ │ ├── android/ │ │ │ │ └── public.api │ │ │ └── desktop/ │ │ │ └── public.api │ │ ├── build.gradle │ │ └── src/ │ │ ├── commonMain/ │ │ │ └── kotlin/ │ │ │ └── software/ │ │ │ └── amazon/ │ │ │ └── app/ │ │ │ └── platform/ │ │ │ └── scope/ │ │ │ ├── RootScopeProvider.kt │ │ │ ├── Scope.kt │ │ │ ├── ScopeImpl.kt │ │ │ ├── Scoped.kt │ │ │ └── coroutine/ │ │ │ ├── CoroutineScopeScoped.kt │ │ │ └── CoroutineScopeService.kt │ │ └── commonTest/ │ │ └── kotlin/ │ │ └── software/ │ │ └── amazon/ │ │ └── app/ │ │ └── platform/ │ │ └── scope/ │ │ ├── ScopeTest.kt │ │ └── coroutine/ │ │ ├── CoroutineScopeScopedTest.kt │ │ └── CoroutineScopeServiceTest.kt │ └── testing/ │ ├── api/ │ │ ├── android/ │ │ │ └── testing.api │ │ └── desktop/ │ │ └── testing.api │ ├── build.gradle │ └── src/ │ ├── commonMain/ │ │ └── kotlin/ │ │ └── software/ │ │ └── amazon/ │ │ └── app/ │ │ └── platform/ │ │ └── scope/ │ │ ├── RunTestWithScope.kt │ │ └── TestScope.kt │ └── commonTest/ │ └── kotlin/ │ └── software/ │ └── amazon/ │ └── app/ │ └── platform/ │ └── scope/ │ ├── RunTestWithScopeTest.kt │ └── TestScopeTest.kt └── settings.gradle
SYMBOL INDEX (59 symbols across 3 files)
FILE: metro-extensions/contribute/impl-compiler-plugin/src/test/java/software/amazon/app/platform/metro/compiler/runners/BoxTestGenerated.java
class BoxTestGenerated (line 15) | @SuppressWarnings("all")
method testAllFilesPresentInBox (line 19) | @Test
class Contributesrenderer (line 24) | @Nested
method testAllFilesPresentInContributesrenderer (line 28) | @Test
method testDefaultConstructorRenderer (line 33) | @Test
method testExplicitModelType (line 39) | @Test
method testInferredFromHierarchy (line 45) | @Test
method testInferredFromHierarchyMultipleLevels (line 51) | @Test
method testInjectConstructorRenderer (line 57) | @Test
method testInnerModel (line 63) | @Test
method testInnerRenderer (line 69) | @Test
method testSealedHierarchy (line 75) | @Test
method testSealedHierarchyDisabled (line 81) | @Test
method testSealedHierarchyInDependencyModule (line 87) | @Test
class Contributesrobot (line 94) | @Nested
method testAllFilesPresentInContributesrobot (line 98) | @Test
method testDefaultConstructorRobot (line 103) | @Test
method testIndirectSupertype (line 109) | @Test
method testInjectConstructorRobot (line 115) | @Test
class Contributesscoped (line 122) | @Nested
method testAllFilesPresentInContributesscoped (line 126) | @Test
method testDefaultScoped (line 131) | @Test
method testInnerClass (line 137) | @Test
method testOnlyScoped (line 143) | @Test
method testTransitiveScoped (line 149) | @Test
FILE: metro-extensions/contribute/impl-compiler-plugin/src/test/java/software/amazon/app/platform/metro/compiler/runners/FirDiagnosticTestGenerated.java
class FirDiagnosticTestGenerated (line 15) | @SuppressWarnings("all")
method testAllFilesPresentInDiagnostics (line 19) | @Test
class Contributesrenderer (line 24) | @Nested
method testAllFilesPresentInContributesrenderer (line 28) | @Test
method testMissingInjectOnNonZeroArgConstructor (line 33) | @Test
method testModelTypeMustBeExplicitWhenNotInferable (line 39) | @Test
method testRedundantInjectOnZeroArgConstructor (line 45) | @Test
method testRendererMustNotBeSingleton (line 51) | @Test
class Contributesrobot (line 58) | @Nested
method testAllFilesPresentInContributesrobot (line 62) | @Test
method testClassMustImplementRobot (line 67) | @Test
method testClassWithConstructorParametersMustUseInject (line 73) | @Test
method testOnlyAppScopeSupported (line 79) | @Test
method testRobotMustNotBeSingleton (line 85) | @Test
class Contributesscoped (line 92) | @Nested
method testAllFilesPresentInContributesscoped (line 96) | @Test
method testMultipleOtherSupertypes (line 101) | @Test
method testMustBeInject (line 107) | @Test
method testMustImplementScoped (line 113) | @Test
method testNoSupertypes (line 119) | @Test
method testUseContributesScopedInsteadOfContributesBinding (line 125) | @Test
FILE: metro-extensions/contribute/impl-compiler-plugin/src/test/java/software/amazon/app/platform/metro/compiler/runners/FirDumpTestGenerated.java
class FirDumpTestGenerated (line 15) | @SuppressWarnings("all")
method testAllFilesPresentInDump (line 19) | @Test
class Contributesrenderer (line 24) | @Nested
method testAllFilesPresentInContributesrenderer (line 28) | @Test
method testDefaultConstructorRenderer (line 33) | @Test
method testDefaultConstructorRendererIr (line 39) | @Test
class Contributesrobot (line 46) | @Nested
method testAllFilesPresentInContributesrobot (line 50) | @Test
method testDefaultConstructorRobot (line 55) | @Test
method testDefaultConstructorRobotIr (line 61) | @Test
class Contributesscoped (line 68) | @Nested
method testAllFilesPresentInContributesscoped (line 72) | @Test
method testDefaultScoped (line 77) | @Test
Condensed preview — 621 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (1,757K chars).
[
{
"path": ".editorconfig",
"chars": 42384,
"preview": "[*]\ncharset = utf-8\nend_of_line = lf\nindent_size = 4\nindent_style = space\ninsert_final_newline = true\nmax_line_length = "
},
{
"path": ".gitattributes",
"chars": 278,
"preview": "#\n# https://help.github.com/articles/dealing-with-line-endings/\n#\n# Linux start script should use lf\n/gradlew tex"
},
{
"path": ".github/actions/prepare-emulator-action/action.yml",
"chars": 774,
"preview": "name: 'Prepare Emulator'\ndescription: 'Common emulator setup steps'\nruns:\n using: \"composite\"\n steps:\n # This is ne"
},
{
"path": ".github/actions/setup-action/action.yml",
"chars": 771,
"preview": "name: 'Setup'\ndescription: 'Common setup steps'\n\ninputs:\n gradle-encryption-key:\n description: \"The key used to encr"
},
{
"path": ".github/workflows/blueprints-starter-ci.yml",
"chars": 2514,
"preview": "name: Build Starter Blueprint (Android + iOS + WASM + Desktop)\n\non:\n push:\n paths:\n - 'blueprints/starter/**'\n "
},
{
"path": ".github/workflows/ci.yml",
"chars": 12310,
"preview": "name: CI\n\non:\n push:\n branches:\n - main\n tags-ignore:\n - '**'\n paths-ignore:\n - '**/*.md'\n pul"
},
{
"path": ".github/workflows/pages.yml",
"chars": 2536,
"preview": "# Simple workflow for deploying static content to GitHub Pages\nname: Deploy Wiki\n\non:\n # Runs on pushes targeting the d"
},
{
"path": ".github/workflows/publish-release.yml",
"chars": 2366,
"preview": "name: Publish Release\n\non:\n push:\n tags:\n - '*.*.*'\n\npermissions:\n contents: read\n\n# Allow only one concurrent"
},
{
"path": ".github/workflows/publish-snapshot.yml",
"chars": 1472,
"preview": "name: Publish Snapshot\n\non:\n push:\n branches:\n - main\n paths-ignore:\n - '**/*.md'\n\npermissions:\n conte"
},
{
"path": ".gitignore",
"chars": 219,
"preview": "# Gradle\n.gradle\n/.gradle/\nbuild/\n!/scripts/**/build\nlocal.properties\n/reports/\n\n# IntelliJ IDEA\n.idea/*\n!.idea/ktfmt.xm"
},
{
"path": ".idea/ktfmt.xml",
"chars": 236,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n <component name=\"KtfmtSettings\">\n <option name=\"enable"
},
{
"path": "AGENTS.md",
"chars": 11008,
"preview": "# AGENTS.md\n\n## Purpose\n\nThis repository is the Amazon App Platform: a Kotlin Multiplatform application framework plus e"
},
{
"path": "CHANGELOG.md",
"chars": 6261,
"preview": "# Change Log\n\n## [Unreleased]\n\n### Added\n\n### Changed\n\n### Deprecated\n\n### Removed\n\n- Removed Apple x86_64 targets from "
},
{
"path": "CODE_OF_CONDUCT.md",
"chars": 309,
"preview": "## Code of Conduct\nThis project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-condu"
},
{
"path": "CONTRIBUTING.md",
"chars": 3207,
"preview": "# Contributing Guidelines\n\nThank you for your interest in contributing to our project. Whether it's a bug report, new fe"
},
{
"path": "LICENSE",
"chars": 10142,
"preview": "\n Apache License\n Version 2.0, January 2004\n "
},
{
"path": "NOTICE",
"chars": 67,
"preview": "Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n"
},
{
"path": "README.md",
"chars": 1202,
"preview": "# App Platform\n\n[ to help you quickly get started with projects using"
},
{
"path": "blueprints/starter/.gitignore",
"chars": 182,
"preview": "# Gradle\n.gradle\n/.gradle/\nbuild/\nlocal.properties\n/reports/\n\n# IntelliJ IDEA\n.idea/*\n*.iml\n*.ipl\n*.ipr\n*.iws\n.shelf/\n\n#"
},
{
"path": "blueprints/starter/README.md",
"chars": 3007,
"preview": "# Template App for Amazon App Platform\n\nThis is a Kotlin Multiplatform template application built using the [Amazon App "
},
{
"path": "blueprints/starter/app/build.gradle.kts",
"chars": 2823,
"preview": "@file:OptIn(ExperimentalWasmDsl::class)\n\nimport dev.zacsweers.metro.gradle.DiagnosticSeverity\nimport dev.zacsweers.metro"
},
{
"path": "blueprints/starter/app/src/androidMain/AndroidManifest.xml",
"chars": 1102,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n xmlns:to"
},
{
"path": "blueprints/starter/app/src/androidMain/kotlin/software/amazon/app/platform/template/AndroidAppGraph.kt",
"chars": 926,
"preview": "package software.amazon.app.platform.template\n\nimport android.app.Application\nimport dev.zacsweers.metro.AppScope\nimport"
},
{
"path": "blueprints/starter/app/src/androidMain/kotlin/software/amazon/app/platform/template/AndroidApplication.kt",
"chars": 1078,
"preview": "package software.amazon.app.platform.template\n\nimport android.app.Application\nimport dev.zacsweers.metro.createGraphFact"
},
{
"path": "blueprints/starter/app/src/androidMain/kotlin/software/amazon/app/platform/template/MainActivity.kt",
"chars": 1260,
"preview": "package software.amazon.app.platform.template\n\nimport android.os.Bundle\nimport androidx.activity.ComponentActivity\nimpor"
},
{
"path": "blueprints/starter/app/src/androidMain/kotlin/software/amazon/app/platform/template/MainActivityViewModel.kt",
"chars": 1351,
"preview": "package software.amazon.app.platform.template\n\nimport android.app.Application\nimport androidx.lifecycle.AndroidViewModel"
},
{
"path": "blueprints/starter/app/src/androidMain/res/values/strings.xml",
"chars": 73,
"preview": "<resources>\n <string name=\"app_name\">TemplateApp</string>\n</resources>"
},
{
"path": "blueprints/starter/app/src/commonMain/kotlin/software/amazon/app/platform/template/AppGraph.kt",
"chars": 849,
"preview": "package software.amazon.app.platform.template\n\nimport dev.zacsweers.metro.AppScope\nimport dev.zacsweers.metro.Contribute"
},
{
"path": "blueprints/starter/app/src/commonMain/kotlin/software/amazon/app/platform/template/Application.kt",
"chars": 1298,
"preview": "package software.amazon.app.platform.template\n\nimport software.amazon.app.platform.scope.RootScopeProvider\nimport softwa"
},
{
"path": "blueprints/starter/app/src/commonMain/kotlin/software/amazon/app/platform/template/TemplateProvider.kt",
"chars": 2535,
"preview": "package software.amazon.app.platform.template\n\nimport dev.zacsweers.metro.Assisted\nimport dev.zacsweers.metro.AssistedFa"
},
{
"path": "blueprints/starter/app/src/desktopMain/kotlin/software/amazon/app/platform/template/DesktopApp.kt",
"chars": 1846,
"preview": "package software.amazon.app.platform.template\n\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtim"
},
{
"path": "blueprints/starter/app/src/desktopMain/kotlin/software/amazon/app/platform/template/DesktopAppGraph.kt",
"chars": 787,
"preview": "package software.amazon.app.platform.template\n\nimport dev.zacsweers.metro.AppScope\nimport dev.zacsweers.metro.Dependency"
},
{
"path": "blueprints/starter/app/src/desktopMain/kotlin/software/amazon/app/platform/template/Main.kt",
"chars": 566,
"preview": "package software.amazon.app.platform.template\n\nimport androidx.compose.ui.window.Window\nimport androidx.compose.ui.windo"
},
{
"path": "blueprints/starter/app/src/iosMain/kotlin/software/amazon/app/platform/template/IosAppGraph.kt",
"chars": 1378,
"preview": "package software.amazon.app.platform.template\n\nimport dev.zacsweers.metro.AppScope\nimport dev.zacsweers.metro.Dependency"
},
{
"path": "blueprints/starter/app/src/iosMain/kotlin/software/amazon/app/platform/template/MainViewController.kt",
"chars": 1737,
"preview": "package software.amazon.app.platform.template\n\nimport androidx.compose.runtime.DisposableEffect\nimport androidx.compose."
},
{
"path": "blueprints/starter/app/src/wasmJsMain/kotlin/software/amazon/app/platform/template/Main.kt",
"chars": 1580,
"preview": "package software.amazon.app.platform.template\n\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtim"
},
{
"path": "blueprints/starter/app/src/wasmJsMain/kotlin/software/amazon/app/platform/template/WasmJsAppGraph.kt",
"chars": 921,
"preview": "package software.amazon.app.platform.template\n\nimport dev.zacsweers.metro.AppScope\nimport dev.zacsweers.metro.Dependency"
},
{
"path": "blueprints/starter/app/src/wasmJsMain/resources/index.html",
"chars": 339,
"preview": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width"
},
{
"path": "blueprints/starter/app/src/wasmJsMain/resources/styles.css",
"chars": 102,
"preview": "html, body {\n width: 100%;\n height: 100%;\n margin: 0;\n padding: 0;\n overflow: hidden;\n}"
},
{
"path": "blueprints/starter/build.gradle.kts",
"chars": 350,
"preview": "plugins {\n alias(libs.plugins.androidApplication) apply false\n alias(libs.plugins.androidKmpLibrary) apply false\n ali"
},
{
"path": "blueprints/starter/gradle/libs.versions.toml",
"chars": 1715,
"preview": "[versions]\nassertk = \"0.28.1\"\napp-platform = \"0.0.9\"\nagp = \"8.13.2\"\nandroid-compileSdk = \"36\"\nandroid-minSdk = \"23\"\nandr"
},
{
"path": "blueprints/starter/gradle/wrapper/gradle-wrapper.properties",
"chars": 252,
"preview": "distributionBase=GRADLE_USER_HOME\ndistributionPath=wrapper/dists\ndistributionUrl=https\\://services.gradle.org/distributi"
},
{
"path": "blueprints/starter/gradle.properties",
"chars": 363,
"preview": "GROUP=software.amazon.app.platform.template\n\norg.gradle.jvmargs=-Xmx8g -Dfile.encoding=UTF-8\norg.gradle.daemon=true\norg."
},
{
"path": "blueprints/starter/gradlew",
"chars": 8631,
"preview": "#!/bin/sh\n\n#\n# Copyright © 2015 the original authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\")"
},
{
"path": "blueprints/starter/gradlew.bat",
"chars": 2896,
"preview": "@rem\r\n@rem Copyright 2015 the original author or authors.\r\n@rem\r\n@rem Licensed under the Apache License, Version 2.0 (th"
},
{
"path": "blueprints/starter/iosApp/Configuration/Config.xcconfig",
"chars": 84,
"preview": "TEAM_ID=\nBUNDLE_ID=software.amazon.app.platform.template.Template\nAPP_NAME=Template\n"
},
{
"path": "blueprints/starter/iosApp/iosApp/Assets.xcassets/AccentColor.colorset/Contents.json",
"chars": 123,
"preview": "{\n \"colors\" : [\n {\n \"idiom\" : \"universal\"\n }\n ],\n \"info\" : {\n \"author\" : \"xcode\",\n \"version\" : 1\n }"
},
{
"path": "blueprints/starter/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/Contents.json",
"chars": 647,
"preview": "{\n \"images\" : [\n {\n \"filename\" : \"app-icon-1024.png\",\n \"idiom\" : \"universal\",\n \"platform\" : \"ios\",\n "
},
{
"path": "blueprints/starter/iosApp/iosApp/Assets.xcassets/Contents.json",
"chars": 63,
"preview": "{\n \"info\" : {\n \"author\" : \"xcode\",\n \"version\" : 1\n }\n}\n"
},
{
"path": "blueprints/starter/iosApp/iosApp/ComposeContentView.swift",
"chars": 860,
"preview": "import UIKit\nimport SwiftUI\nimport TemplateApp\n\nstruct ComposeView: UIViewControllerRepresentable {\n private var root"
},
{
"path": "blueprints/starter/iosApp/iosApp/Info.plist",
"chars": 1577,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/P"
},
{
"path": "blueprints/starter/iosApp/iosApp/Preview Content/Preview Assets.xcassets/Contents.json",
"chars": 63,
"preview": "{\n \"info\" : {\n \"author\" : \"xcode\",\n \"version\" : 1\n }\n}\n"
},
{
"path": "blueprints/starter/iosApp/iosApp/iOSApp.swift",
"chars": 826,
"preview": "import TemplateApp\nimport SwiftUI\n\nclass AppDelegate: NSObject, UIApplicationDelegate, RootScopeProvider {\n\n private "
},
{
"path": "blueprints/starter/iosApp/iosApp.xcodeproj/project.pbxproj",
"chars": 13442,
"preview": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 70;\n\tobjects = {\n\n/* Begin PBXBuildFile section *"
},
{
"path": "blueprints/starter/iosApp/iosApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata",
"chars": 135,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Workspace\n version = \"1.0\">\n <FileRef\n location = \"self:\">\n </FileRef"
},
{
"path": "blueprints/starter/iosApp/iosApp.xcodeproj/xcshareddata/xcschemes/iosApp.xcscheme",
"chars": 2878,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Scheme\n LastUpgradeVersion = \"1630\"\n version = \"1.7\">\n <BuildAction\n "
},
{
"path": "blueprints/starter/navigation/impl/build.gradle.kts",
"chars": 1300,
"preview": "@file:OptIn(ExperimentalWasmDsl::class)\n\nimport org.jetbrains.kotlin.gradle.ExperimentalWasmDsl\nimport org.jetbrains.kot"
},
{
"path": "blueprints/starter/navigation/impl/src/commonMain/kotlin/software/amazon/app/platform/template/navigation/ExampleRepositoryImpl.kt",
"chars": 939,
"preview": "package software.amazon.app.platform.template.navigation\n\nimport dev.zacsweers.metro.AppScope\nimport dev.zacsweers.metro"
},
{
"path": "blueprints/starter/navigation/impl/src/commonMain/kotlin/software/amazon/app/platform/template/navigation/ExampleValueGenerator.kt",
"chars": 1375,
"preview": "package software.amazon.app.platform.template.navigation\n\nimport dev.zacsweers.metro.AppScope\nimport dev.zacsweers.metro"
},
{
"path": "blueprints/starter/navigation/impl/src/commonMain/kotlin/software/amazon/app/platform/template/navigation/NavigationDetailPresenterImpl.kt",
"chars": 1254,
"preview": "package software.amazon.app.platform.template.navigation\n\nimport androidx.compose.runtime.Composable\nimport androidx.com"
},
{
"path": "blueprints/starter/navigation/impl/src/commonMain/kotlin/software/amazon/app/platform/template/navigation/NavigationDetailRenderer.kt",
"chars": 1872,
"preview": "package software.amazon.app.platform.template.navigation\n\nimport androidx.compose.foundation.background\nimport androidx."
},
{
"path": "blueprints/starter/navigation/impl/src/commonMain/kotlin/software/amazon/app/platform/template/navigation/NavigationHeaderPresenterImpl.kt",
"chars": 878,
"preview": "package software.amazon.app.platform.template.navigation\n\nimport androidx.compose.runtime.Composable\nimport androidx.com"
},
{
"path": "blueprints/starter/navigation/impl/src/commonMain/kotlin/software/amazon/app/platform/template/navigation/NavigationHeaderRenderer.kt",
"chars": 2761,
"preview": "package software.amazon.app.platform.template.navigation\n\nimport androidx.compose.foundation.background\nimport androidx."
},
{
"path": "blueprints/starter/navigation/impl/src/commonMain/kotlin/software/amazon/app/platform/template/navigation/NavigationPresenterImpl.kt",
"chars": 876,
"preview": "package software.amazon.app.platform.template.navigation\n\nimport androidx.compose.runtime.Composable\nimport dev.zacsweer"
},
{
"path": "blueprints/starter/navigation/impl/src/commonTest/kotlin/software/amazon/app/platform/template/navigation/NavigationDetailPresenterTest.kt",
"chars": 1211,
"preview": "package software.amazon.app.platform.template.navigation\n\nimport assertk.assertThat\nimport assertk.assertions.isEqualTo\n"
},
{
"path": "blueprints/starter/navigation/impl/src/commonTest/kotlin/software/amazon/app/platform/template/navigation/NavigationHeaderPresenterTest.kt",
"chars": 925,
"preview": "package software.amazon.app.platform.template.navigation\n\nimport assertk.assertThat\nimport assertk.assertions.isEqualTo\n"
},
{
"path": "blueprints/starter/navigation/impl/src/commonTest/kotlin/software/amazon/app/platform/template/navigation/NavigationPresenterImplTest.kt",
"chars": 1600,
"preview": "package software.amazon.app.platform.template.navigation\n\nimport androidx.compose.runtime.Composable\nimport assertk.asse"
},
{
"path": "blueprints/starter/navigation/public/build.gradle.kts",
"chars": 930,
"preview": "@file:OptIn(ExperimentalWasmDsl::class)\n\nimport org.jetbrains.kotlin.gradle.ExperimentalWasmDsl\nimport org.jetbrains.kot"
},
{
"path": "blueprints/starter/navigation/public/src/commonMain/kotlin/software/amazon/app/platform/template/navigation/ExampleRepository.kt",
"chars": 331,
"preview": "package software.amazon.app.platform.template.navigation\n\nimport kotlinx.coroutines.flow.StateFlow\n\n/**\n * Interface of "
},
{
"path": "blueprints/starter/navigation/public/src/commonMain/kotlin/software/amazon/app/platform/template/navigation/NavigationDetailPresenter.kt",
"chars": 463,
"preview": "package software.amazon.app.platform.template.navigation\n\nimport software.amazon.app.platform.presenter.BaseModel\nimport"
},
{
"path": "blueprints/starter/navigation/public/src/commonMain/kotlin/software/amazon/app/platform/template/navigation/NavigationHeaderPresenter.kt",
"chars": 757,
"preview": "package software.amazon.app.platform.template.navigation\n\nimport software.amazon.app.platform.presenter.BaseModel\nimport"
},
{
"path": "blueprints/starter/navigation/public/src/commonMain/kotlin/software/amazon/app/platform/template/navigation/NavigationPresenter.kt",
"chars": 429,
"preview": "package software.amazon.app.platform.template.navigation\n\nimport software.amazon.app.platform.presenter.BaseModel\nimport"
},
{
"path": "blueprints/starter/navigation/testing/build.gradle.kts",
"chars": 930,
"preview": "@file:OptIn(ExperimentalWasmDsl::class)\n\nimport org.jetbrains.kotlin.gradle.ExperimentalWasmDsl\nimport org.jetbrains.kot"
},
{
"path": "blueprints/starter/navigation/testing/src/commonMain/kotlin/software/amazon/app/platform/template/navigation/FakeExampleRepository.kt",
"chars": 495,
"preview": "package software.amazon.app.platform.template.navigation\n\nimport kotlinx.coroutines.flow.MutableStateFlow\n\n/**\n * Fake i"
},
{
"path": "blueprints/starter/settings.gradle.kts",
"chars": 381,
"preview": "pluginManagement {\n repositories {\n google()\n mavenCentral()\n gradlePluginPortal()\n }\n}\n\ndependencyResolution"
},
{
"path": "blueprints/starter/templates/impl/build.gradle.kts",
"chars": 967,
"preview": "@file:OptIn(ExperimentalWasmDsl::class)\n\nimport org.jetbrains.kotlin.gradle.ExperimentalWasmDsl\nimport org.jetbrains.kot"
},
{
"path": "blueprints/starter/templates/impl/src/commonMain/kotlin/software/amazon/app/platform/template/templates/ComposeAppTemplateRenderer.kt",
"chars": 2258,
"preview": "package software.amazon.app.platform.template.templates\n\nimport androidx.compose.animation.ExperimentalSharedTransitionA"
},
{
"path": "blueprints/starter/templates/public/build.gradle.kts",
"chars": 825,
"preview": "@file:OptIn(ExperimentalWasmDsl::class)\n\nimport org.jetbrains.kotlin.gradle.ExperimentalWasmDsl\nimport org.jetbrains.kot"
},
{
"path": "blueprints/starter/templates/public/src/commonMain/kotlin/software/amazon/app/platform/template/templates/AppTemplate.kt",
"chars": 596,
"preview": "package software.amazon.app.platform.template.templates\n\nimport software.amazon.app.platform.presenter.BaseModel\nimport "
},
{
"path": "blueprints/starter/templates/public/src/commonMain/kotlin/software/amazon/app/platform/template/templates/AppTemplatePresenter.kt",
"chars": 1860,
"preview": "package software.amazon.app.platform.template.templates\n\nimport androidx.compose.runtime.Composable\nimport dev.zacsweers"
},
{
"path": "build.gradle",
"chars": 58,
"preview": " plugins {\n id 'software.amazon.app.platform.root'\n }\n"
},
{
"path": "buildSrc/build.gradle",
"chars": 3104,
"preview": "//file:noinspection UnnecessaryQualifiedReference\nplugins {\n id 'java-gradle-plugin'\n alias libs.plugins.kotlin.jv"
},
{
"path": "buildSrc/settings.gradle",
"chars": 484,
"preview": "includeBuild('../gradle-plugin') {\n dependencySubstitution {\n substitute module(\"$GROUP:gradle-plugin\") using "
},
{
"path": "buildSrc/src/main/kotlin/software/amazon/app/platform/gradle/buildsrc/AppPlatformExtension.kt",
"chars": 4081,
"preview": "package software.amazon.app.platform.gradle.buildsrc\n\nimport javax.inject.Inject\nimport org.gradle.api.Project\nimport or"
},
{
"path": "buildSrc/src/main/kotlin/software/amazon/app/platform/gradle/buildsrc/AppPlugin.kt",
"chars": 4808,
"preview": "package software.amazon.app.platform.gradle.buildsrc\n\nimport kotlin.math.max\nimport org.gradle.api.Plugin\nimport org.gra"
},
{
"path": "buildSrc/src/main/kotlin/software/amazon/app/platform/gradle/buildsrc/BaseAndroidPlugin.kt",
"chars": 3856,
"preview": "package software.amazon.app.platform.gradle.buildsrc\n\nimport com.android.build.api.dsl.ApplicationExtension\nimport com.a"
},
{
"path": "buildSrc/src/main/kotlin/software/amazon/app/platform/gradle/buildsrc/BasePlugin.kt",
"chars": 5680,
"preview": "package software.amazon.app.platform.gradle.buildsrc\n\nimport buildSrc.BuildConfig.APP_PLATFORM_GROUP\nimport com.android."
},
{
"path": "buildSrc/src/main/kotlin/software/amazon/app/platform/gradle/buildsrc/Gradle.kt",
"chars": 2190,
"preview": "package software.amazon.app.platform.gradle.buildsrc\n\nimport com.android.build.api.dsl.CommonExtension\nimport com.androi"
},
{
"path": "buildSrc/src/main/kotlin/software/amazon/app/platform/gradle/buildsrc/JvmLibraryPlugin.kt",
"chars": 1927,
"preview": "package software.amazon.app.platform.gradle.buildsrc\n\nimport org.gradle.api.Plugin\nimport org.gradle.api.Project\nimport "
},
{
"path": "buildSrc/src/main/kotlin/software/amazon/app/platform/gradle/buildsrc/KmpPlugin.kt",
"chars": 15991,
"preview": "package software.amazon.app.platform.gradle.buildsrc\n\nimport com.google.devtools.ksp.gradle.KspExtension\nimport com.ncor"
},
{
"path": "buildSrc/src/main/kotlin/software/amazon/app/platform/gradle/buildsrc/LibraryPlugin.kt",
"chars": 416,
"preview": "package software.amazon.app.platform.gradle.buildsrc\n\nimport org.gradle.api.Plugin\nimport org.gradle.api.Project\n\npublic"
},
{
"path": "buildSrc/src/main/kotlin/software/amazon/app/platform/gradle/buildsrc/Platform.kt",
"chars": 6579,
"preview": "package software.amazon.app.platform.gradle.buildsrc\n\nimport org.gradle.api.Project\nimport org.gradle.api.plugins.JavaPl"
},
{
"path": "buildSrc/src/main/kotlin/software/amazon/app/platform/gradle/buildsrc/Plugins.kt",
"chars": 898,
"preview": "package software.amazon.app.platform.gradle.buildsrc\n\ninternal object Plugins {\n const val ANDROID_APP = \"com.android.a"
},
{
"path": "buildSrc/src/main/kotlin/software/amazon/app/platform/gradle/buildsrc/RootPlugin.kt",
"chars": 258,
"preview": "package software.amazon.app.platform.gradle.buildsrc\n\nimport org.gradle.api.Plugin\nimport org.gradle.api.Project\n\npublic"
},
{
"path": "buildSrc/src/main/kotlin/software/amazon/app/platform/gradle/buildsrc/SdkPlugin.kt",
"chars": 2972,
"preview": "package software.amazon.app.platform.gradle.buildsrc\n\nimport com.vanniktech.maven.publish.MavenPublishBaseExtension\nimpo"
},
{
"path": "di-common/public/api/android/public.api",
"chars": 1023,
"preview": "public abstract interface annotation class software/amazon/app/platform/inject/ContributesRenderer : java/lang/annotatio"
},
{
"path": "di-common/public/api/desktop/public.api",
"chars": 1023,
"preview": "public abstract interface annotation class software/amazon/app/platform/inject/ContributesRenderer : java/lang/annotatio"
},
{
"path": "di-common/public/build.gradle",
"chars": 199,
"preview": "plugins {\n id 'software.amazon.app.platform.lib'\n}\n\nappPlatformBuildSrc {\n enableKotlinInject true\n enablePubli"
},
{
"path": "di-common/public/src/commonMain/kotlin/software/amazon/app/platform/inject/ContributesRenderer.kt",
"chars": 2452,
"preview": "package software.amazon.app.platform.inject\n\nimport kotlin.annotation.AnnotationTarget.CLASS\nimport kotlin.reflect.KClas"
},
{
"path": "di-common/public/src/commonMain/kotlin/software/amazon/app/platform/inject/robot/ContributesRobot.kt",
"chars": 991,
"preview": "package software.amazon.app.platform.inject.robot\n\nimport kotlin.reflect.KClass\nimport software.amazon.lastmile.kotlin.i"
},
{
"path": "di-common/public/src/commonMain/kotlin/software/amazon/app/platform/presenter/PresenterCoroutineScope.kt",
"chars": 1233,
"preview": "package software.amazon.app.platform.presenter\n\nimport dev.zacsweers.metro.Qualifier as MetroQualifier\nimport kotlin.ann"
},
{
"path": "di-common/public/src/commonMain/kotlin/software/amazon/app/platform/scope/coroutine/DefaultCoroutineDispatcher.kt",
"chars": 775,
"preview": "package software.amazon.app.platform.scope.coroutine\n\nimport dev.zacsweers.metro.Qualifier as MetroQualifier\nimport kotl"
},
{
"path": "di-common/public/src/commonMain/kotlin/software/amazon/app/platform/scope/coroutine/IoCoroutineDispatcher.kt",
"chars": 765,
"preview": "package software.amazon.app.platform.scope.coroutine\n\nimport dev.zacsweers.metro.Qualifier as MetroQualifier\nimport kotl"
},
{
"path": "di-common/public/src/commonMain/kotlin/software/amazon/app/platform/scope/coroutine/MainCoroutineDispatcher.kt",
"chars": 769,
"preview": "package software.amazon.app.platform.scope.coroutine\n\nimport dev.zacsweers.metro.Qualifier as MetroQualifier\nimport kotl"
},
{
"path": "docs/di.md",
"chars": 21680,
"preview": "# DI Framework\n\n!!! note\n\n App Platform provides support for [Metro](https://zacsweers.github.io/metro) and\n [kotl"
},
{
"path": "docs/faq.md",
"chars": 2981,
"preview": "# FAQ\n\n#### How can I incrementally adopt App Platform?\n\nApp Platform offers many recommendations and best practices and"
},
{
"path": "docs/index.md",
"chars": 6183,
"preview": "---\nsocial:\n cards_layout_options:\n title: Application framework for KMP\n---\n\n# App Platform\n\n## Introduction\n\n\n google()\n }\n}\n\ndependencyResolutionManagem"
},
{
"path": "gradle-plugin/src/main/kotlin/software/amazon/app/platform/gradle/AppPlatformExtension.kt",
"chars": 15405,
"preview": "package software.amazon.app.platform.gradle\n\nimport com.google.devtools.ksp.gradle.KspExtension\nimport gradle_plugin.Bui"
},
{
"path": "gradle-plugin/src/main/kotlin/software/amazon/app/platform/gradle/AppPlatformPlugin.kt",
"chars": 4796,
"preview": "package software.amazon.app.platform.gradle\n\nimport gradle_plugin.BuildConfig.APP_PLATFORM_GROUP\nimport gradle_plugin.Bu"
},
{
"path": "gradle-plugin/src/main/kotlin/software/amazon/app/platform/gradle/GradleExtensions.kt",
"chars": 1835,
"preview": "package software.amazon.app.platform.gradle\n\nimport com.android.build.api.dsl.CommonExtension\nimport com.android.build.a"
},
{
"path": "gradle-plugin/src/main/kotlin/software/amazon/app/platform/gradle/ModuleStructureDependencyCheckTask.kt",
"chars": 7962,
"preview": "package software.amazon.app.platform.gradle\n\nimport java.io.File\nimport org.gradle.api.DefaultTask\nimport org.gradle.api"
},
{
"path": "gradle-plugin/src/main/kotlin/software/amazon/app/platform/gradle/ModuleStructurePlugin.kt",
"chars": 5976,
"preview": "package software.amazon.app.platform.gradle\n\nimport com.android.build.api.dsl.androidLibrary\nimport org.gradle.api.Plugi"
},
{
"path": "gradle-plugin/src/main/kotlin/software/amazon/app/platform/gradle/ModuleType.kt",
"chars": 6553,
"preview": "@file:Suppress(\"TooManyFunctions\", \"unused\")\n\npackage software.amazon.app.platform.gradle\n\nimport org.gradle.api.Project"
},
{
"path": "gradle-plugin/src/main/kotlin/software/amazon/app/platform/gradle/PluginIds.kt",
"chars": 655,
"preview": "package software.amazon.app.platform.gradle\n\ninternal object PluginIds {\n const val ANDROID_APP = \"com.android.applicat"
},
{
"path": "gradle.properties",
"chars": 1948,
"preview": "VERSION_NAME=0.0.11-SNAPSHOT\nGROUP=software.amazon.app.platform\n\norg.gradle.jvmargs=-Xmx8g -Dfile.encoding=UTF-8\norg.gra"
},
{
"path": "gradlew",
"chars": 8631,
"preview": "#!/bin/sh\n\n#\n# Copyright © 2015 the original authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\")"
},
{
"path": "gradlew.bat",
"chars": 2896,
"preview": "@rem\r\n@rem Copyright 2015 the original author or authors.\r\n@rem\r\n@rem Licensed under the Apache License, Version 2.0 (th"
},
{
"path": "internal/testing/build.gradle",
"chars": 54,
"preview": "plugins {\n id 'software.amazon.app.platform.lib'\n}\n"
},
{
"path": "internal/testing/src/androidMain/kotlin/software/amazon/app/platform/internal/IgnoreNative.kt",
"chars": 280,
"preview": "package software.amazon.app.platform.internal\n\nimport kotlin.annotation.AnnotationTarget.CLASS\nimport kotlin.annotation."
},
{
"path": "internal/testing/src/androidMain/kotlin/software/amazon/app/platform/internal/IgnoreWasm.android.kt",
"chars": 266,
"preview": "package software.amazon.app.platform.internal\n\nimport kotlin.annotation.AnnotationTarget.CLASS\nimport kotlin.annotation."
},
{
"path": "internal/testing/src/androidMain/kotlin/software/amazon/app/platform/internal/Platform.kt",
"chars": 136,
"preview": "package software.amazon.app.platform.internal\n\n/** The current test environment target. */\nactual val platform: Platform"
},
{
"path": "internal/testing/src/androidMain/kotlin/software/amazon/app/platform/internal/Thread.kt",
"chars": 188,
"preview": "package software.amazon.app.platform.internal\n\n/** Provides the name of the current thread this is called on. */\nactual "
},
{
"path": "internal/testing/src/commonMain/kotlin/software/amazon/app/platform/internal/IgnoreNative.kt",
"chars": 261,
"preview": "package software.amazon.app.platform.internal\n\nimport kotlin.annotation.AnnotationTarget.CLASS\nimport kotlin.annotation."
},
{
"path": "internal/testing/src/commonMain/kotlin/software/amazon/app/platform/internal/IgnoreWasm.kt",
"chars": 247,
"preview": "package software.amazon.app.platform.internal\n\nimport kotlin.annotation.AnnotationTarget.CLASS\nimport kotlin.annotation."
},
{
"path": "internal/testing/src/commonMain/kotlin/software/amazon/app/platform/internal/Platform.kt",
"chars": 353,
"preview": "package software.amazon.app.platform.internal\n\n/** All test environment targets. */\nenum class Platform {\n /** The JVM "
},
{
"path": "internal/testing/src/commonMain/kotlin/software/amazon/app/platform/internal/Thread.kt",
"chars": 150,
"preview": "package software.amazon.app.platform.internal\n\n/** Provides the name of the current thread this is called on. */\nexpect "
},
{
"path": "internal/testing/src/desktopMain/kotlin/software/amazon/app/platform/internal/IgnoreNative.kt",
"chars": 280,
"preview": "package software.amazon.app.platform.internal\n\nimport kotlin.annotation.AnnotationTarget.CLASS\nimport kotlin.annotation."
},
{
"path": "internal/testing/src/desktopMain/kotlin/software/amazon/app/platform/internal/IgnoreWasm.kt",
"chars": 266,
"preview": "package software.amazon.app.platform.internal\n\nimport kotlin.annotation.AnnotationTarget.CLASS\nimport kotlin.annotation."
},
{
"path": "internal/testing/src/desktopMain/kotlin/software/amazon/app/platform/internal/Platform.kt",
"chars": 136,
"preview": "package software.amazon.app.platform.internal\n\n/** The current test environment target. */\nactual val platform: Platform"
},
{
"path": "internal/testing/src/desktopMain/kotlin/software/amazon/app/platform/internal/Thread.kt",
"chars": 188,
"preview": "package software.amazon.app.platform.internal\n\n/** Provides the name of the current thread this is called on. */\nactual "
},
{
"path": "internal/testing/src/nativeMain/kotlin/software/amazon/app/platform/internal/IgnoreNative.kt",
"chars": 148,
"preview": "package software.amazon.app.platform.internal\n\n/** Skips annotated tests on Native platforms. */\nactual typealias Ignore"
},
{
"path": "internal/testing/src/nativeMain/kotlin/software/amazon/app/platform/internal/IgnoreWasm.kt",
"chars": 266,
"preview": "package software.amazon.app.platform.internal\n\nimport kotlin.annotation.AnnotationTarget.CLASS\nimport kotlin.annotation."
},
{
"path": "internal/testing/src/nativeMain/kotlin/software/amazon/app/platform/internal/Platform.kt",
"chars": 139,
"preview": "package software.amazon.app.platform.internal\n\n/** The current test environment target. */\nactual val platform: Platform"
},
{
"path": "internal/testing/src/nativeMain/kotlin/software/amazon/app/platform/internal/Thread.kt",
"chars": 180,
"preview": "package software.amazon.app.platform.internal\n\n/** Provides the name of the current thread this is called on. */\nactual "
},
{
"path": "internal/testing/src/wasmJsMain/kotlin/software/amazon/app/platform/internal/IgnoreNative.kt",
"chars": 280,
"preview": "package software.amazon.app.platform.internal\n\nimport kotlin.annotation.AnnotationTarget.CLASS\nimport kotlin.annotation."
},
{
"path": "internal/testing/src/wasmJsMain/kotlin/software/amazon/app/platform/internal/IgnoreWasm.kt",
"chars": 134,
"preview": "package software.amazon.app.platform.internal\n\n/** Skips annotated tests on Wasm. */\nactual typealias IgnoreWasm = kotli"
},
{
"path": "internal/testing/src/wasmJsMain/kotlin/software/amazon/app/platform/internal/Platform.kt",
"chars": 136,
"preview": "package software.amazon.app.platform.internal\n\n/** The current test environment target. */\nactual val platform: Platform"
},
{
"path": "internal/testing/src/wasmJsMain/kotlin/software/amazon/app/platform/internal/Thread.kt",
"chars": 180,
"preview": "package software.amazon.app.platform.internal\n\n/** Provides the name of the current thread this is called on. */\nactual "
},
{
"path": "ios-run.sh",
"chars": 6496,
"preview": "#!/usr/bin/env bash\n\nset -euo pipefail\n\nROOT_DIR=\"$(cd -- \"$(dirname -- \"${BASH_SOURCE[0]}\")\" && pwd)\"\n\nAPP_KEY=\"\"\nAPP_L"
},
{
"path": "kotlin-inject/impl/api/android/impl.api",
"chars": 2594,
"preview": "public abstract interface class software/amazon/app/platform/presenter/PresenterCoroutineScopeComponent {\n\tpublic fun pr"
},
{
"path": "kotlin-inject/impl/api/desktop/impl.api",
"chars": 2594,
"preview": "public abstract interface class software/amazon/app/platform/presenter/PresenterCoroutineScopeComponent {\n\tpublic fun pr"
},
{
"path": "kotlin-inject/impl/build.gradle",
"chars": 194,
"preview": "plugins {\n id 'software.amazon.app.platform.lib'\n}\n\nappPlatformBuildSrc {\n enableKotlinInject true\n enablePubli"
},
{
"path": "kotlin-inject/impl/src/commonMain/kotlin/software/amazon/app/platform/presenter/PresenterCoroutineScopeComponent.kt",
"chars": 1176,
"preview": "package software.amazon.app.platform.presenter\n\nimport kotlinx.coroutines.CoroutineDispatcher\nimport kotlinx.coroutines."
},
{
"path": "kotlin-inject/impl/src/commonMain/kotlin/software/amazon/app/platform/scope/coroutine/AppScopeCoroutineScopeComponent.kt",
"chars": 1517,
"preview": "package software.amazon.app.platform.scope.coroutine\n\nimport kotlinx.coroutines.CoroutineDispatcher\nimport kotlinx.corou"
},
{
"path": "kotlin-inject/impl/src/commonMain/kotlin/software/amazon/app/platform/scope/coroutine/CoroutineDispatcherComponent.kt",
"chars": 1030,
"preview": "package software.amazon.app.platform.scope.coroutine\n\nimport kotlinx.coroutines.CoroutineDispatcher\nimport kotlinx.corou"
},
{
"path": "kotlin-inject/impl/src/commonMain/kotlin/software/amazon/app/platform/scope/coroutine/IoDispatcher.kt",
"chars": 239,
"preview": "package software.amazon.app.platform.scope.coroutine\n\nimport kotlinx.coroutines.CoroutineDispatcher\n\n/** Expect declarat"
},
{
"path": "kotlin-inject/impl/src/noWasmJsMain/kotlin/software/amazon/app/platform/scope/coroutine/IoDispatcher.kt",
"chars": 323,
"preview": "package software.amazon.app.platform.scope.coroutine\n\nimport kotlinx.coroutines.CoroutineDispatcher\nimport kotlinx.corou"
},
{
"path": "kotlin-inject/impl/src/wasmJsMain/kotlin/software/amazon/app/platform/scope/coroutine/IoDispatcher.kt",
"chars": 338,
"preview": "package software.amazon.app.platform.scope.coroutine\n\nimport kotlinx.coroutines.CoroutineDispatcher\nimport kotlinx.corou"
},
{
"path": "kotlin-inject/public/api/android/public.api",
"chars": 378,
"preview": "public final class software/amazon/app/platform/scope/di/ComponentServiceKt {\n\tpublic static final field DI_COMPONENT_KE"
},
{
"path": "kotlin-inject/public/api/desktop/public.api",
"chars": 378,
"preview": "public final class software/amazon/app/platform/scope/di/ComponentServiceKt {\n\tpublic static final field DI_COMPONENT_KE"
},
{
"path": "kotlin-inject/public/build.gradle",
"chars": 225,
"preview": "plugins {\n id 'software.amazon.app.platform.lib'\n}\n\nappPlatformBuildSrc {\n enablePublishing true\n}\n\ndependencies {"
},
{
"path": "kotlin-inject/public/src/commonMain/kotlin/software/amazon/app/platform/scope/di/ComponentService.kt",
"chars": 2447,
"preview": "package software.amazon.app.platform.scope.di\n\nimport software.amazon.app.platform.scope.Scope\nimport software.amazon.ap"
},
{
"path": "kotlin-inject/public/src/commonTest/kotlin/software/amazon/app/platform/scope/di/ComponentServiceTest.kt",
"chars": 2903,
"preview": "package software.amazon.app.platform.scope.di\n\nimport assertk.assertThat\nimport assertk.assertions.hasMessage\nimport ass"
},
{
"path": "kotlin-inject-extensions/contribute/impl-code-generators/build.gradle",
"chars": 1801,
"preview": "plugins {\n id 'software.amazon.app.platform.lib.jvm'\n id 'com.google.devtools.ksp'\n\n alias(libs.plugins.build.c"
},
{
"path": "kotlin-inject-extensions/contribute/impl-code-generators/src/main/kotlin/software/amazon/app/platform/inject/KotlinInjectContextAware.kt",
"chars": 853,
"preview": "package software.amazon.app.platform.inject\n\nimport com.google.devtools.ksp.symbol.KSAnnotation\nimport com.google.devtoo"
},
{
"path": "kotlin-inject-extensions/contribute/impl-code-generators/src/main/kotlin/software/amazon/app/platform/inject/KotlinInjectExtensionSymbolProcessorProvider.kt",
"chars": 1982,
"preview": "package software.amazon.app.platform.inject\n\nimport com.google.auto.service.AutoService\nimport com.google.devtools.ksp.p"
},
{
"path": "kotlin-inject-extensions/contribute/impl-code-generators/src/main/kotlin/software/amazon/app/platform/inject/Util.kt",
"chars": 935,
"preview": "package software.amazon.app.platform.inject\n\nimport com.google.devtools.ksp.symbol.KSClassDeclaration\nimport com.squareu"
},
{
"path": "kotlin-inject-extensions/contribute/impl-code-generators/src/main/kotlin/software/amazon/app/platform/inject/processor/ContributesBindingProcessor.kt",
"chars": 5145,
"preview": "package software.amazon.app.platform.inject.processor\n\nimport com.google.devtools.ksp.processing.CodeGenerator\nimport co"
},
{
"path": "kotlin-inject-extensions/contribute/impl-code-generators/src/main/kotlin/software/amazon/app/platform/inject/processor/ContributesBindingScopedProcessor.kt",
"chars": 4804,
"preview": "package software.amazon.app.platform.inject.processor\n\nimport com.google.devtools.ksp.processing.CodeGenerator\nimport co"
},
{
"path": "kotlin-inject-extensions/contribute/impl-code-generators/src/main/kotlin/software/amazon/app/platform/inject/processor/ContributesMockImplProcessor.kt",
"chars": 6295,
"preview": "package software.amazon.app.platform.inject.processor\n\nimport com.google.devtools.ksp.KspExperimental\nimport com.google."
},
{
"path": "kotlin-inject-extensions/contribute/impl-code-generators/src/main/kotlin/software/amazon/app/platform/inject/processor/ContributesRealImplProcessor.kt",
"chars": 5686,
"preview": "package software.amazon.app.platform.inject.processor\n\nimport com.google.devtools.ksp.KspExperimental\nimport com.google."
},
{
"path": "kotlin-inject-extensions/contribute/impl-code-generators/src/main/kotlin/software/amazon/app/platform/inject/processor/ContributesRendererProcessor.kt",
"chars": 11230,
"preview": "package software.amazon.app.platform.inject.processor\n\nimport com.google.devtools.ksp.KspExperimental\nimport com.google."
},
{
"path": "kotlin-inject-extensions/contribute/impl-code-generators/src/main/kotlin/software/amazon/app/platform/inject/processor/ContributesRobotProcessor.kt",
"chars": 6787,
"preview": "package software.amazon.app.platform.inject.processor\n\nimport com.google.devtools.ksp.KspExperimental\nimport com.google."
},
{
"path": "kotlin-inject-extensions/contribute/impl-code-generators/src/test/kotlin/software/amazon/app/platform/inject/CommonSourceCode.kt",
"chars": 1208,
"preview": "@file:OptIn(ExperimentalCompilerApi::class)\n\npackage software.amazon.app.platform.inject\n\nimport com.tschuchort.compilet"
},
{
"path": "kotlin-inject-extensions/contribute/impl-code-generators/src/test/kotlin/software/amazon/app/platform/inject/Compilation.kt",
"chars": 5443,
"preview": "@file:OptIn(ExperimentalCompilerApi::class)\n\npackage software.amazon.app.platform.inject\n\nimport assertk.assertThat\nimpo"
},
{
"path": "kotlin-inject-extensions/contribute/impl-code-generators/src/test/kotlin/software/amazon/app/platform/inject/CompilerTestUtil.kt",
"chars": 478,
"preview": "package software.amazon.app.platform.inject\n\nimport java.lang.reflect.Method\n\n// Following changes to Kotlin starting in"
},
{
"path": "kotlin-inject-extensions/contribute/impl-code-generators/src/test/kotlin/software/amazon/app/platform/inject/processor/ContributesBindingProcessorTest.kt",
"chars": 11196,
"preview": "@file:OptIn(ExperimentalCompilerApi::class)\n\npackage software.amazon.app.platform.inject.processor\n\nimport assertk.asser"
},
{
"path": "kotlin-inject-extensions/contribute/impl-code-generators/src/test/kotlin/software/amazon/app/platform/inject/processor/ContributesBindingScopedProcessorTest.kt",
"chars": 12247,
"preview": "@file:OptIn(ExperimentalCompilerApi::class)\n\npackage software.amazon.app.platform.inject.processor\n\nimport assertk.asser"
},
{
"path": "kotlin-inject-extensions/contribute/impl-code-generators/src/test/kotlin/software/amazon/app/platform/inject/processor/ContributesMockImplGeneratorTest.kt",
"chars": 25914,
"preview": "@file:OptIn(ExperimentalCompilerApi::class)\n\npackage software.amazon.app.platform.inject.processor\n\nimport assertk.asser"
},
{
"path": "kotlin-inject-extensions/contribute/impl-code-generators/src/test/kotlin/software/amazon/app/platform/inject/processor/ContributesRealImplGeneratorTest.kt",
"chars": 13576,
"preview": "@file:OptIn(ExperimentalCompilerApi::class)\n\npackage software.amazon.app.platform.inject.processor\n\nimport assertk.asser"
},
{
"path": "kotlin-inject-extensions/contribute/impl-code-generators/src/test/kotlin/software/amazon/app/platform/inject/processor/ContributesRendererProcessorTest.kt",
"chars": 25468,
"preview": "@file:OptIn(ExperimentalCompilerApi::class)\n\npackage software.amazon.app.platform.inject.processor\n\nimport assertk.asser"
},
{
"path": "kotlin-inject-extensions/contribute/impl-code-generators/src/test/kotlin/software/amazon/app/platform/inject/processor/ContributesRobotGeneratorTest.kt",
"chars": 8688,
"preview": "@file:OptIn(ExperimentalCompilerApi::class)\n\npackage software.amazon.app.platform.inject.processor\n\nimport assertk.asser"
},
{
"path": "kotlin-inject-extensions/contribute/public/api/android/public.api",
"chars": 1238,
"preview": "public abstract interface annotation class software/amazon/app/platform/inject/mock/ContributesMockImpl : java/lang/anno"
},
{
"path": "kotlin-inject-extensions/contribute/public/api/desktop/public.api",
"chars": 1238,
"preview": "public abstract interface annotation class software/amazon/app/platform/inject/mock/ContributesMockImpl : java/lang/anno"
},
{
"path": "kotlin-inject-extensions/contribute/public/build.gradle",
"chars": 133,
"preview": "plugins {\n id 'software.amazon.app.platform.lib'\n}\n\nappPlatformBuildSrc {\n enableKotlinInject true\n enablePubli"
},
{
"path": "kotlin-inject-extensions/contribute/public/src/commonMain/kotlin/software/amazon/app/platform/inject/mock/ContributesMockImpl.kt",
"chars": 1725,
"preview": "package software.amazon.app.platform.inject.mock\n\nimport kotlin.reflect.KClass\nimport software.amazon.app.platform.scope"
},
{
"path": "kotlin-inject-extensions/contribute/public/src/commonMain/kotlin/software/amazon/app/platform/inject/mock/ContributesRealImpl.kt",
"chars": 1665,
"preview": "package software.amazon.app.platform.inject.mock\n\nimport kotlin.reflect.KClass\nimport software.amazon.app.platform.scope"
},
{
"path": "kotlin-inject-extensions/contribute/public/src/commonMain/kotlin/software/amazon/app/platform/inject/mock/MockMode.kt",
"chars": 1083,
"preview": "package software.amazon.app.platform.inject.mock\n\nimport kotlin.annotation.AnnotationRetention.RUNTIME\nimport kotlin.ann"
},
{
"path": "kotlin-inject-extensions/contribute/public/src/commonMain/kotlin/software/amazon/app/platform/inject/mock/RealImpl.kt",
"chars": 878,
"preview": "package software.amazon.app.platform.inject.mock\n\nimport kotlin.annotation.AnnotationRetention.RUNTIME\nimport kotlin.ann"
},
{
"path": "ksp-common/public/build.gradle",
"chars": 481,
"preview": "plugins {\n id 'software.amazon.app.platform.lib.jvm'\n}\n\nappPlatformBuildSrc {\n enablePublishing true\n}\n\ndependenci"
},
{
"path": "ksp-common/public/src/main/kotlin/software/amazon/app/platform/ksp/CompositeSymbolProcessor.kt",
"chars": 676,
"preview": "package software.amazon.app.platform.ksp\n\nimport com.google.devtools.ksp.processing.Resolver\nimport com.google.devtools."
},
{
"path": "ksp-common/public/src/main/kotlin/software/amazon/app/platform/ksp/ContextAware.kt",
"chars": 7852,
"preview": "package software.amazon.app.platform.ksp\n\nimport com.google.devtools.ksp.getVisibility\nimport com.google.devtools.ksp.pr"
},
{
"path": "ksp-common/public/src/main/kotlin/software/amazon/app/platform/ksp/MergeScope.kt",
"chars": 493,
"preview": "package software.amazon.app.platform.ksp\n\nimport com.google.devtools.ksp.symbol.KSType\n\n/**\n * Represents the destinatio"
},
{
"path": "ksp-common/public/src/main/kotlin/software/amazon/app/platform/ksp/Util.kt",
"chars": 1214,
"preview": "package software.amazon.app.platform.ksp\n\nimport com.google.devtools.ksp.isDefault\nimport com.google.devtools.ksp.symbol"
},
{
"path": "ksp-common/testing/build.gradle",
"chars": 138,
"preview": "plugins {\n id 'software.amazon.app.platform.lib.jvm'\n}\n\ndependencies {\n api libs.assertk\n api libs.kotlin.compi"
}
]
// ... and 421 more files (download for full content)
About this extraction
This page contains the full source code of the amzn/app-platform GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 621 files (1.6 MB), approximately 397.2k tokens, and a symbol index with 59 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.