Skip to content

Files

Latest commit

3975c64 · Jul 1, 2024

History

History

web

Description

This module is responsible for webview setup of the project

How to install

  1. Copy module folder to your project and add module to gradle dependency like this:
implementation project(':web')
  1. Module requires next modules to work
    implementation project(':core')
    implementation project(':ui_base')
  1. nav_id file describe all ids that this module requires. Entry point should implement all those ids.

./src/main/res/values/nav_web.xml

  1. Add next nav graphs to main navigation graph
<include app:graph="@navigation/nav_splash" />
  1. 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>