From e056c78b719d98852dbcb19e296855f24e2cd5ee Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Thu, 12 Aug 2021 19:58:47 +0530 Subject: [PATCH] common: set OptIn flag --- common/build.gradle.kts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/common/build.gradle.kts b/common/build.gradle.kts index c790be0e..ea1ccbb4 100644 --- a/common/build.gradle.kts +++ b/common/build.gradle.kts @@ -1,4 +1,5 @@ import org.jetbrains.compose.compose +import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { kotlin("multiplatform") @@ -42,6 +43,11 @@ kotlin { } } +tasks.withType { + kotlinOptions.freeCompilerArgs = + kotlinOptions.freeCompilerArgs + listOf("-Xopt-in=kotlin.RequiresOptIn") +} + android { buildFeatures { androidResources = true } compileSdk = 30