Switch sourcesets of experimental and release coroutines

- Move experimental coroutines out of the main source root.
- Include experimental coroutines into the coroutines source set.
- Include release coroutines into the main source set.
This commit is contained in:
Ilya Gorbunov
2018-08-31 20:53:08 +03:00
parent 0fa2d29779
commit e22ca022d4
31 changed files with 25 additions and 30 deletions
+5 -2
View File
@@ -19,6 +19,8 @@ sourceSets {
srcDir 'src'
srcDir commonSrcDir
srcDir '../unsigned/src'
srcDir '../coroutines/common/src'
srcDir '../coroutines/src'
}
}
test {
@@ -29,8 +31,7 @@ sourceSets {
}
coroutines {
kotlin {
srcDir '../coroutines/common/src'
srcDir '../coroutines/src'
srcDir '../coroutines-experimental/src'
}
}
}
@@ -57,6 +58,7 @@ compileKotlinCommon {
"-Xuse-experimental=kotlin.ExperimentalUnsignedTypes",
"-Xuse-experimental=kotlin.contracts.ExperimentalContracts",
"-XXLanguage:+InlineClasses",
"-XXLanguage:+ReleaseCoroutines",
"-Xallow-kotlin-package"
]
}
@@ -69,6 +71,7 @@ compileCoroutinesKotlinCommon {
freeCompilerArgs = [
"-module-name", project.name+"-coroutines",
"-Xuse-experimental=kotlin.contracts.ExperimentalContracts",
"-XXLanguage:-ReleaseCoroutines",
"-Xallow-kotlin-package"
]
}