This module is responsible for webview setup of the project
- Copy module folder to your project and add module to gradle dependency like this:
implementation project(':web')
- Module requires next modules to work
implementation project(':core')
implementation project(':ui_base')
- nav_id file describe all ids that this module requires. Entry point should implement all those ids.
./src/main/res/values/nav_web.xml
- Add next nav graphs to main navigation graph
<include app:graph="@navigation/nav_splash" />
- The following action should be added into the root navigation graph otherwise navigation actions won't work
<action
android:id="@+id/action_global_toWebF"
app:destination="@id/nav_web">
<argument
android:name="url"
android:defaultValue="<!-- Any default url -->"
app:argType="string" />
<argument
android:name="refresh"
app:argType="boolean" />
</action>