I have base url defined in my gradle file like
buildTypes {
debug {
applicationIdSuffix ".debug"
minifyEnabled false
debuggable true
buildConfigField("String", "BASE_URL", "\"https://abc.tech/api/\"")
}
stag {
applicationIdSuffix ".stag"
minifyEnabled false
debuggable false
buildConfigField("String", "BASE_URL", "\"https://xyz.tech/api/\"")
}
}
I want BASE_URL
to be accessed in my navigation graph where I have define deeplink. i.e
<navigation xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/navGraph"
app:startDestination="@id/fragmentX">
<fragment
android:id="@+id/fragment1"
android:name="com.xyz.abc.Fragmen1"
android:label="Fragmen1">
<argument
android:name="userId"
app:argType="string" />
<argument
android:name="code"
app:argType="string" />
<deepLink app:uri= "xyz.tech/api/confirm?userId={userId}&code={code}" />
</fragment>
</navigation>