Benjamin Charais
05/16/2019, 6:49 PMactual
keyword on a class to implement an expect.
IntelliJ gives me the warning: The feature "multi platform projects" is experimental and should be enabled explicitly
I have found that in IntelliJ there would be an expectation under :
Preferences ->
Build, Execution, Deployment ->
Kotlin Compiler ->
Additional command line parameters:
To add the flag -Xmulti-platform
I am driving my project settings from gradle and found I can include this block for my subprojects:
targets.all {
compilations.all {
kotlinOptions {
freeCompilerArgs += '-Xmulti-platform'
}
}
}
I am still getting the error and it does not seem to have any effect in the IDE understanding that the feature has been adjusted.
Am I missing something obvious here? Did I implement my gradle wrong?Benjamin Charais
05/16/2019, 10:12 PMbuildTypes {
all {
kotlinOptions {
freeCompilerArgs = [
'-Xmulti-platform',
'-Xuse-experimental=kotlin.Experimental'
]
}
}
}
Tried this in many other places to no avail.gildor
05/16/2019, 11:23 PMBenjamin Charais
05/16/2019, 11:59 PMgildor
05/17/2019, 12:15 AMBenjamin Charais
05/17/2019, 4:15 PMgildor
05/17/2019, 4:25 PM