plugins { id 'kotlin-multiplatform' id "org.jetbrains.kotlin.multiplatform" } description = "IO for meta" repositories { jcenter() } kotlin { targets { fromPreset(presets.jvm, 'jvm') fromPreset(presets.js, 'js') // For ARM, preset should be changed to presets.iosArm32 or presets.iosArm64 // For Linux, preset should be changed to e.g. presets.linuxX64 // For MacOS, preset should be changed to e.g. presets.macosX64 //fromPreset(presets.iosX64, 'ios') } sourceSets { commonMain { dependencies { api project(":dataforge-meta") //implementation 'org.jetbrains.kotlin:kotlin-reflect' implementation "org.jetbrains.kotlinx:kotlinx-serialization-runtime-common:$serialization_version" implementation "org.jetbrains.kotlinx:kotlinx-io:$kotlinx_io_version" } } commonTest { dependencies { implementation 'org.jetbrains.kotlin:kotlin-test-common' implementation 'org.jetbrains.kotlin:kotlin-test-annotations-common' } } jvmMain { dependencies { implementation "org.jetbrains.kotlinx:kotlinx-serialization-runtime:$serialization_version" implementation "org.jetbrains.kotlinx:kotlinx-io-jvm:$kotlinx_io_version" } } jvmTest { dependencies { implementation 'org.jetbrains.kotlin:kotlin-test' implementation 'org.jetbrains.kotlin:kotlin-test-junit' } } jsMain { dependencies { implementation "org.jetbrains.kotlinx:kotlinx-serialization-runtime-js:$serialization_version" implementation "org.jetbrains.kotlinx:kotlinx-io-js:$kotlinx_io_version" } } jsTest { dependencies { implementation 'org.jetbrains.kotlin:kotlin-test-js' } } // iosMain { // } // iosTest { // } } }