Opt in into experimental features for android modules as well
This commit is contained in:
parent
ed4f15010a
commit
49d1fb822f
1 changed files with 14 additions and 0 deletions
|
|
@ -31,6 +31,13 @@ subprojects { module ->
|
||||||
includeAndroidResources = true
|
includeAndroidResources = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
module.tasks.configureEach { task ->
|
||||||
|
if (task.taskIdentity.type.toString() == "class org.jetbrains.kotlin.gradle.tasks.KotlinCompile") {
|
||||||
|
task.kotlinOptions {
|
||||||
|
freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
plugins.withId("com.android.library") {
|
plugins.withId("com.android.library") {
|
||||||
|
|
@ -47,5 +54,12 @@ subprojects { module ->
|
||||||
includeAndroidResources = true
|
includeAndroidResources = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
module.tasks.configureEach { task ->
|
||||||
|
if (task.taskIdentity.type.toString() == "class org.jetbrains.kotlin.gradle.tasks.KotlinCompile") {
|
||||||
|
task.kotlinOptions {
|
||||||
|
freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue