Complete Kotlin Multiplatform migration with iOS parity: - All 13 modules converted to KMP (commonMain + androidMain + iosMain) - 100% feature parity: auth, chat, SSE streaming, conversations, settings, agents, files, voice input, TTS, OAuth, file picker, clipboard paste - Platform consolidation: DataStore path, SessionCacheCleaner, bubble layouts, ChatInput core, MIME types, mention parsing, TextField styling, FilterChip components extracted to commonMain - iOS crash reporting via Kotlin/Native exception hook - YAML parsing via custom pure-Kotlin parser (zero dependencies) - Dependency health: Timber removed, kaml replaced, FuzzyWuzzy removed, security-crypto stabilized - CONTRIBUTING.md - Gradle configuration cache enabled
32 lines
1.3 KiB
Kotlin
32 lines
1.3 KiB
Kotlin
import org.gradle.api.Plugin
|
|
import org.gradle.api.Project
|
|
import org.gradle.kotlin.dsl.configure
|
|
import org.gradle.kotlin.dsl.getByType
|
|
import org.jetbrains.compose.ComposeExtension
|
|
import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension
|
|
|
|
class KmpComposeConventionPlugin : Plugin<Project> {
|
|
override fun apply(target: Project) {
|
|
with(target) {
|
|
pluginManager.apply("org.jetbrains.compose")
|
|
pluginManager.apply("org.jetbrains.kotlin.plugin.compose")
|
|
|
|
val compose = extensions.getByType<ComposeExtension>().dependencies
|
|
|
|
extensions.configure<KotlinMultiplatformExtension> {
|
|
sourceSets.commonMain.dependencies {
|
|
implementation(compose.runtime)
|
|
implementation(compose.foundation)
|
|
implementation(compose.material3)
|
|
implementation(compose.materialIconsExtended)
|
|
implementation(compose.ui)
|
|
implementation(compose.animation)
|
|
@Suppress("DEPRECATION")
|
|
implementation(compose.components.resources)
|
|
@Suppress("DEPRECATION")
|
|
implementation(compose.components.uiToolingPreview)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|