https://github.com/archinamon/native-file-io
File IO library based on Posix API for Kotlin/Native
https://github.com/archinamon/native-file-io
Last synced: over 1 year ago
JSON representation
File IO library based on Posix API for Kotlin/Native
- Host: GitHub
- URL: https://github.com/archinamon/native-file-io
- Owner: Archinamon
- License: apache-2.0
- Created: 2020-10-13T09:04:43.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-05-16T10:02:22.000Z (about 2 years ago)
- Last Synced: 2025-04-09T22:52:37.866Z (over 1 year ago)
- Language: Kotlin
- Homepage:
- Size: 171 KB
- Stars: 20
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](http://kotlinlang.org) 
# native-file-io
File IO library based on Posix API for Kotlin/Native
Currently, contains only JS, JVM, Windows and Posix (Linux X64 / MacOS X64) actual realisation.
In plans support mingw (Windows) archetype.
This library shares standard java file API to native environment, implementing Posix API.
# how to use it
```kotlin
// put this block somewhere in root build.gradle.kts file
allprojects {
repositories {
mavenCentral()
}
}
// then in module's build.gradle.kts in target's dependencies section:
val fileIoVersion: String by extra // reads from gradle.properties
// expect; for kotlin common modules
implementation("me.archinamon:file-io:$fileIoVersion")
// actual; demands on target type
implementation("me.archinamon:file-io-jvm:$fileIoVersion") // for jvm module
implementation("me.archinamon:file-io-js:$fileIoVersion") // for kotlin-js module
implementation("me.archinamon:file-io-linuxx64:$fileIoVersion") // for linux x64 posix module
implementation("me.archinamon:file-io-macosx64:$fileIoVersion") // for macOS x64 posix module
implementation("me.archinamon:file-io-mingwx64:$fileIoVersion") // for windows x64 module
```