FoRRestDp
05/13/2023, 3:19 PMsourceSets {
all { languageSettings.optIn("opt.in.Class") }
commonMain {
dependecies {
implementation("dep.that.require.annotation")
}
}
}
If I do it that way I get a warning that opt.in.Class
is unresolved for some source sets.
sourceSets {
commonMain {
languageSettings.optIn("opt.in.Class")
dependecies {
implementation("dep.that.require.annotation")
}
}
}
If I do it this way I get an error that opt in should be applied to all dependent source sets.Jeff Lockhart
05/15/2023, 10:58 AMFoRRestDp
05/15/2023, 11:52 AMandroidMain
. I get the following warning when build project:
> Task :module:compileDebugKotlinAndroid
w: Opt-in requirement marker com.russhwolf.settings.ExperimentalSettingsApi is unresolved. Please make sure it's present in the module dependencies
Jeff Lockhart
05/15/2023, 1:44 PMandroidMain
source set?FoRRestDp
05/15/2023, 1:47 PMJeff Lockhart
05/15/2023, 1:54 PMFoRRestDp
05/15/2023, 2:30 PMall { }
should’ve added opt-in to all source setsJeff Lockhart
05/15/2023, 2:34 PMFoRRestDp
05/15/2023, 2:35 PM