Is there a way to suppress the warning for expect/...
# gradle
e
Is there a way to suppress the warning for expect/actual classes across an entire project? Something like this, but in the root build.gradle.kts
Copy code
kotlin {
    compilerOptions {
        freeCompilerArgs.add("-Xexpect-actual-classes")
    }
}
v
If you have a convention plugin for your Kotlin conventions, add it there. If not, create one. :-)
1
e
I do have one but it's not specific to this project so I'd have to build a flag in to control that. Much easier if KGP already had a way 😅
v
I hope it does not have, that would be implicit cross-project configuration. :-) Unless it would be something like a Project Property for example
e
I think they have it for other configuration already, but not sure how they implemented it. My set of convention plugins actually does this in a way that doesn't do cross project configuration. I have a build service that is exposed in the root build.gradle.kts where the user can set default values for all the different configuration I support. Then the convention plugins pull from there as they're applied.
b
In these couple days, I've been working on convention plugin for KMM. so far created for compose, buildTargets and 1 more for kotlin configuration - minSdk, compileOptions... etc. I'm not sure, is this good grouping up? but so far it's reducing duplication quite well and I'm figuring stuff on the way.
e
b
@eygraber Thanks a lot. Checking it out now. The way you implemented it quite different and advanced.🤓