diff --git a/README.md b/README.md index b270372..78b6e47 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ In case you don't have much time for this - at least spend 5 seconds to give us ## Acknowledgement Special thanks to those awesome developers who give us great suggestions, help us to maintain and improve this project: -@NightEule5, @bishiboosh, @Peanuuutz, @petertrr, @nulls, @Olivki, @edrd-f, @BOOMeranGG, @aSemy +@NightEule5, @bishiboosh, @Peanuuutz, @petertrr, @nulls, @Olivki, @edrd-f, @BOOMeranGG, @aSemy, @thomasgalvin ## Supported platforms All the code is written in Kotlin **common** module. This means that it can be built for each and every Kotlin native platform. diff --git a/ktoml-file/build.gradle.kts b/ktoml-file/build.gradle.kts index 9d61fc4..bd2dacd 100644 --- a/ktoml-file/build.gradle.kts +++ b/ktoml-file/build.gradle.kts @@ -26,6 +26,7 @@ kotlin { macosX64() macosArm64() ios() + iosSimulatorArm64() sourceSets { all { @@ -37,7 +38,7 @@ kotlin { implementation("com.squareup.okio:okio:${Versions.OKIO}") implementation("org.jetbrains.kotlin:kotlin-stdlib:${Versions.KOTLIN}") implementation(project(":ktoml-core")) - implementation(project(":ktoml-source")) + api(project(":ktoml-source")) } } diff --git a/ktoml-file/src/iosSimulatorArm64Main/kotlin/com/akuleshov7/ktoml/file/FileUtilsIosSimulator.kt b/ktoml-file/src/iosSimulatorArm64Main/kotlin/com/akuleshov7/ktoml/file/FileUtilsIosSimulator.kt new file mode 100644 index 0000000..6904d38 --- /dev/null +++ b/ktoml-file/src/iosSimulatorArm64Main/kotlin/com/akuleshov7/ktoml/file/FileUtilsIosSimulator.kt @@ -0,0 +1,14 @@ +/** + * File utils to read files using okio + */ + +package com.akuleshov7.ktoml.file + +import okio.FileSystem + +/** + * Implementation for getting proper file system to read files with okio + * + * @return proper FileSystem + */ +internal actual fun getOsSpecificFileSystem(): FileSystem = FileSystem.SYSTEM