Skip to content

Instantly share code, notes, and snippets.

@rakib10rr3
Created May 13, 2020 08:16
Show Gist options
  • Save rakib10rr3/26775a2d8597d9f89ea4915e02f2ac6e to your computer and use it in GitHub Desktop.
Save rakib10rr3/26775a2d8597d9f89ea4915e02f2ac6e to your computer and use it in GitHub Desktop.
android project level build file for jetpack and other important libraries
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.3.72'
ext.retrofit_version = '2.6.0'
ext.lifecycle_version = "2.2.0"
ext.nav_version = '2.2.0'
ext.moshi_version = "1.9.2"
ext.room_version = "2.2.5"
repositories {
google()
jcenter()
maven {
url 'https://maven.fabric.io/public'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.6.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$nav_version"
classpath 'com.google.gms:google-services:4.3.3'
classpath 'io.fabric.tools:gradle:1.31.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
maven { url 'https://jitpack.io' }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment