Skip to content

Instantly share code, notes, and snippets.

@senamit2708
Created July 13, 2023 05:42
Show Gist options
  • Save senamit2708/1121bca10fff44db63763e1047e95edf to your computer and use it in GitHub Desktop.
Save senamit2708/1121bca10fff44db63763e1047e95edf to your computer and use it in GitHub Desktop.
how to define library constant in gradle file
//navigation
implementation "androidx.navigation:navigation-fragment-ktx:$nav_version"
implementation "androidx.navigation:navigation-ui-ktx:$nav_version"
//room database
implementation "androidx.room:room-ktx:$room_version"
kapt "androidx.room:room-compiler:$room_version"
implementation "androidx.lifecycle:lifecycle-extensions:$lifecycle_version"
//always keep buildscript above the plugin section.
buildscript {
ext {
nav_version = "2.6.0"
room_version = "2.5.2"
lifecycle_version = "2.2.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment