A Helper library for easy navigation between fragments.
- Add this to your Project level build.gradle file:
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
- Add this to your dependencies in your App level build.gradle file:
dependencies {
implementation "com.github.tamimattafi.android-navigation-manager:basic:$latest_version"
}
- OPTIONAL
3.1. Implementing the core module
This should only be included if you want to extend the core functionality in a different direction. This must be included if you want to override transaction animations.
dependencies {
implementation "com.github.tamimattafi.android-navigation-manager:core:$latest_version"
}
3.2. Dagger Support
This module has support for dagger support injectors. It has the same functionality as the basic module so choosing one of them depends on your project requirements. Why not both? It is possible to use both modules alongside each other!
NOTE Using navigation provided by this module requires you to provide an instance of DaggerNavigator. In your ActivityModule, you must implement a binder/provider for this type.
dependencies {
implementation "com.github.tamimattafi.android-navigation-manager:dagger:$latest_version"
}
The code is well documented. A quick reading here would make everything clear to you!