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
34 lines
1.6 KiB
Kotlin
34 lines
1.6 KiB
Kotlin
import org.gradle.api.Plugin
|
|
import org.gradle.api.Project
|
|
import org.gradle.kotlin.dsl.configure
|
|
import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension
|
|
|
|
class KmpFeatureConventionPlugin : Plugin<Project> {
|
|
override fun apply(target: Project) {
|
|
with(target) {
|
|
pluginManager.apply("librechat.kmp.library")
|
|
pluginManager.apply("librechat.kmp.compose")
|
|
pluginManager.apply("librechat.kmp.koin")
|
|
pluginManager.apply("librechat.kotlin.serialization")
|
|
|
|
extensions.configure<KotlinMultiplatformExtension> {
|
|
sourceSets.commonMain.dependencies {
|
|
implementation(project(":core:ui"))
|
|
implementation(project(":core:data"))
|
|
implementation(project(":core:model"))
|
|
implementation(project(":core:common"))
|
|
implementation(libs.findLibrary("koin-compose").get())
|
|
implementation(libs.findLibrary("koin-compose-viewmodel").get())
|
|
implementation(libs.findLibrary("koin-compose-viewmodel-navigation").get())
|
|
implementation(libs.findLibrary("navigation-compose-kmp").get())
|
|
implementation(libs.findLibrary("lifecycle-runtime-compose-kmp").get())
|
|
implementation(libs.findLibrary("lifecycle-viewmodel-compose-kmp").get())
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
private val Project.libs
|
|
get() = extensions.getByType(org.gradle.api.artifacts.VersionCatalogsExtension::class.java)
|
|
.named("libs")
|