From 74b9860784913c097ae59e58b0958da7744ebc2e Mon Sep 17 00:00:00 2001
From: Guillaume Jacquart <guillaume.jacquart@hoodbrains.com>
Date: Fri, 9 Jun 2023 06:34:09 +0000
Subject: 1227: use navigation graph component, avoid view (fragments)
 duplications

---
 build.gradle | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

(limited to 'build.gradle')

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"
         }
-- 
cgit v1.2.1