Hasan Tunçay
07/16/2025, 8:47 AMAnton Lakotka [JB]
07/16/2025, 11:29 AMHasan Tunçay
07/17/2025, 6:43 AMAnton Lakotka [JB]
07/17/2025, 7:17 AMplugins {
kotlin("multiplatform")
id("your.company.kmp-modules-kit") // this is your plugin
kotlin {
// targets and other configurtions
kmpModulesKit { // your plugin adds this extension
addPaywall()
}
and addPaywall function call, should configure everything required.
i.e. add paywall dependency to commonMain source set just like you do right now by hand. And provide necessary binaries. OR configure cinterops again. It depends what is convinient for you.
but In general I encourage to take deeper look on custom Gradle Plugins as conventions for your projects. As it should help with bootstraping new gradle projects. Like by applying one or two reusable conventional plugins they would configure KMP targets, cinterops and other boiler plate code.Andrey Yastrebov
07/17/2025, 1:49 PMAnton Lakotka [JB]
07/17/2025, 1:51 PM