Description
Start writing navigation in Android app. Create RootComponent class using Decompose framework. Integrate the component into the MainActivity. We use Decompose because it is KMP-compatible and it could make possible future migration to KMP significantly easier.
To do
Notes
Decompose official repository
Decompose documentation with AI-assistant
Decompose regular documentation
A good video about Decompose basics
Acceptance Criteria
Description
Start writing navigation in Android app. Create RootComponent class using Decompose framework. Integrate the component into the MainActivity. We use Decompose because it is KMP-compatible and it could make possible future migration to KMP significantly easier.
To do
implementation "com.arkivanov.decompose:decompose:3.5.0"src/main/java/com/examhacker/mobiledirectory (use Project file-tree view mode) create fileRootComponent.kt. Inside of it create interface IRootComponent and class RootComponent that implements it (check Decompose docs for details).stackthat is app navigation stack and sealed class Child, which inheritors must have constructor argument of feature component type. Each inheritor of Child represents exactly one feature.rootComponentfield creation to MainActivity onCreate() method. In thesetContentfunction body use Children function to specify UI-composables for each child of RootComponent (check docs).Notes
Decompose official repository
Decompose documentation with AI-assistant
Decompose regular documentation
A good video about Decompose basics
Acceptance Criteria