diff options
author | Guillaume Jacquart <guillaume.jacquart@hoodbrains.com> | 2023-06-09 06:34:09 +0000 |
---|---|---|
committer | Guillaume Jacquart <guillaume.jacquart@hoodbrains.com> | 2023-06-09 06:34:09 +0000 |
commit | 74b9860784913c097ae59e58b0958da7744ebc2e (patch) | |
tree | 29f4f655f6ac71a0da40bc50d332db3c2c75f634 /build.gradle | |
parent | 045261f84c1ac5ba4c8ed0f3dabd4ea53a1155c9 (diff) |
1227: use navigation graph component, avoid view (fragments) duplications
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/build.gradle b/build.gradle index ef02cd9..824c306 100644 --- a/build.gradle +++ b/build.gradle @@ -1,4 +1,5 @@ /* + * Copyright (C) 2023 MURENA SAS * Copyright (C) 2022 E FOUNDATION * * This program is free software: you can redistribute it and/or modify @@ -49,6 +50,7 @@ buildscript { dependencies { classpath Libs.androidGradlePlugin classpath Libs.Kotlin.gradlePlugin + classpath Libs.AndroidX.navigation.safeArgs // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files @@ -65,7 +67,7 @@ allprojects { //Support @JvmDefault, and @OptIn tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all { kotlinOptions { - freeCompilerArgs = ['-Xjvm-default=enable', '-opt-in=kotlin.RequiresOptIn'] + freeCompilerArgs = ['-Xjvm-default=all', '-opt-in=kotlin.RequiresOptIn'] jvmTarget = "1.8" } @@ -97,7 +99,7 @@ subprojects { // Treat all Kotlin warnings as errors allWarningsAsErrors = true - freeCompilerArgs += "-Xopt-in=kotlinx.coroutines.ExperimentalCoroutinesApi" + freeCompilerArgs += "-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi" // Set JVM target to 1.8 jvmTarget = "1.8" } |