Replace NiaTopLevelNavigation with TopLevelDestination based on #186 (#723)

* Replace NiaTopLevelNavigation with TopLevelDestination based on #186

* Update ModularizationLearningJourney.md
pull/753/head
Vixb 2 years ago committed by GitHub
parent a03307e14d
commit 01e5a68a8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -95,7 +95,7 @@ The Now in Android app contains the following types of modules:
* The `app` module - contains app level and scaffolding classes that bind the rest of the codebase, * The `app` module - contains app level and scaffolding classes that bind the rest of the codebase,
such as `MainActivity`, `NiaApp` and app-level controlled navigation. A good example of this is such as `MainActivity`, `NiaApp` and app-level controlled navigation. A good example of this is
the navigation setup through `NiaNavHost` and the bottom navigation bar setup the navigation setup through `NiaNavHost` and the bottom navigation bar setup
through `NiaTopLevelNavigation`. The `app` module depends on all `feature` modules and through `TopLevelDestination`. The `app` module depends on all `feature` modules and
required `core` modules. required `core` modules.
* `feature:` modules - feature specific modules which are scoped to handle a single responsibility * `feature:` modules - feature specific modules which are scoped to handle a single responsibility
@ -132,7 +132,7 @@ Using the above modularization strategy, the Now in Android app has the followin
<td>Brings everything together required for the app to function correctly. This includes UI scaffolding and navigation. <td>Brings everything together required for the app to function correctly. This includes UI scaffolding and navigation.
</td> </td>
<td><code>NiaApp, MainActivity</code><br> <td><code>NiaApp, MainActivity</code><br>
App-level controlled navigation via <code>NiaNavHost, NiaTopLevelNavigation</code> App-level controlled navigation via <code>NiaNavHost, NiaAppState, TopLevelDestination</code>
</td> </td>
</tr> </tr>
<tr> <tr>

Loading…
Cancel
Save