build.gradle 966 Bytes
Newer Older
1 2 3
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
4
    ext.kotlin_version = '1.3.21'
5 6 7 8
    ext.kotlinx_serialization_version = '0.6.2'
    repositories {
        google()
        jcenter()
9
        maven { url 'https://jitpack.io' }
10 11
    }
    dependencies {
12
        classpath 'com.android.tools.build:gradle:3.3.2'
13 14
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
        classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
15
        classpath "android.arch.navigation:navigation-safe-args-gradle-plugin:1.0.0-rc02"
16 17 18 19 20 21 22
    }
}

allprojects {
    repositories {
        google()
        jcenter()
23
        maven { url 'https://jitpack.io' }
24 25 26 27 28 29
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}
30 31 32 33

tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
    kotlinOptions.freeCompilerArgs += ["-Xuse-experimental=kotlin.Experimental"]
}