Bruno Rocha
11/07/2023, 2:38 PMigor.wojda
11/08/2023, 8:15 AMBruno Rocha
11/08/2023, 5:17 PM@Test
fun `navigation files should have 'nav_' prefix`() {
val projectPath = PathProvider.getInstance().rootProjectPath
val path = "/module/src/main/res/navigation"
val navigationDir = File(projectPath + path)
navigationDir.listFiles()?.map { it.name }?.forEach {
assert(it.startsWith("nav"))
}
}
igor.wojda
11/08/2023, 5:44 PMBruno Rocha
11/08/2023, 6:01 PM<?xml version="1.0" encoding="utf-8"?>
<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/nav_graph_id"
app:startDestination="@id/oneFragment">
<fragment
android:id="@+id/oneFragment"
android:name="com.example.OneFragment"
android:label=" "
tools:layout="@layout/fragment_one">
<action
android:id="@+id/onError"
app:destination="@+id/errorScreen"
app:enterAnim="@anim/slide_in_bottom"
app:exitAnim="@anim/slide_out_top"
app:popEnterAnim="@anim/slide_in_top"
app:popExitAnim="@anim/slide_out_bottom" />
</fragment>
<activity
android:id="@+id/errorScreen"
android:name="com.example.GenericErrorActivity"
android:label=" "
tools:layout="@layout/activity_generic_error" />
</navigation>
igor.wojda
11/08/2023, 6:08 PMbuild
dir 🤔 (currently these are ignored by Konsist).build\generated
) should contain everything you need and Konsist should be able to retrieve all of the informations. Please check your build folder and tell me if this is correctBruno Rocha
11/08/2023, 7:07 PM