Yousef
04/05/2025, 9:15 PMCLOVIS
04/08/2025, 3:24 PMkotlin {
sourceSets {
val commonMain by getting {
dependencies {
implementation("code.yousef:summon:0.1.5")
}
}
val jvmMain by getting {
dependencies {
implementation("code.yousef:summon-jvm:0.1.5")
}
}
val jsMain by getting {
dependencies {
implementation("code.yousef:summon-js:0.1.5")
}
}
}
}
but nowadays you can just write
kotlin {
sourceSets.commonMain.dependencies {
implementation("code.yousef:summon:0.1.5")
}
}
you don't need to re-declare your dependency for all platforms if it's already in the common codeCLOVIS
04/08/2025, 3:26 PMif
in a render
function?Yousef
04/08/2025, 4:49 PM@Composable
functions instead of implementing an interface, and you can use if statements inside render functions of composables