Skip to content

Commit

Permalink
Infra and build updates (#228)
Browse files Browse the repository at this point in the history
### What's done:
- added iosSimulatorArm64 to ktoml-file
- changed ktoml-source dependency to api() to reduce dependency complexity
  • Loading branch information
orchestr7 authored Jun 5, 2023
1 parent 853a3dc commit 0f8cd0a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 2 additions & 1 deletion ktoml-file/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ kotlin {
macosX64()
macosArm64()
ios()
iosSimulatorArm64()

sourceSets {
all {
Expand 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"))
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 0f8cd0a

Please sign in to comment.