Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Text
Posted by: ali kashan
Added: Jan 14, 2021 3:02 PM
Views: 4
Tags: no tags
  1. def nav_version = "2.3.2"
  2.  
  3.   // Java language implementation
  4.   implementation "androidx.navigation:navigation-fragment:$nav_version"
  5.   implementation "androidx.navigation:navigation-ui:$nav_version"
  6.  
  7.   // Kotlin
  8.   implementation "androidx.navigation:navigation-fragment-ktx:$nav_version"
  9.   implementation "androidx.navigation:navigation-ui-ktx:$nav_version"
  10.  
  11.   // Feature module Support
  12.   implementation "androidx.navigation:navigation-dynamic-features-fragment:$nav_version"
  13.  
  14.   // Testing Navigation
  15.   androidTestImplementation "androidx.navigation:navigation-testing:$nav_version"
  16.  
  17.   // Jetpack Compose Integration
  18.   implementation "androidx.navigation:navigation-compose:1.0.0-alpha05"
  19.  
  20.  
  21. FOR SAFE ARGS
  22. add this in app level gradle
  23. classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$nav_version"
  24.  
  25. add this in module level gradle
  26. apply plugin: "androidx.navigation.safeargs" //for java
  27.  
  28. apply plugin: "androidx.navigation.safeargs.kotlin" // for kotlin