mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 02:34:39 +00:00
refactor: Some multiplatform bs
This commit is contained in:
parent
a19b767aff
commit
3199f07363
8 changed files with 15 additions and 2 deletions
|
@ -64,6 +64,7 @@ android {
|
|||
tasks {
|
||||
withType<KotlinCompile> {
|
||||
compilerOptions.freeCompilerArgs.addAll(
|
||||
"-Xexpect-actual-classes",
|
||||
"-Xcontext-receivers",
|
||||
"-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi",
|
||||
"-opt-in=kotlinx.serialization.ExperimentalSerializationApi",
|
||||
|
|
|
@ -3,6 +3,6 @@ package yokai.core.archive
|
|||
import java.io.InputStream
|
||||
|
||||
// TODO: Use Okio's Source
|
||||
abstract class ArchiveInputStream : InputStream() {
|
||||
actual abstract class ArchiveInputStream : InputStream() {
|
||||
abstract fun getNextEntry(): ArchiveEntry?
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@ package yokai.core.archive
|
|||
import java.io.Closeable
|
||||
import java.io.InputStream
|
||||
|
||||
abstract class ArchiveReader : Closeable {
|
||||
actual abstract class ArchiveReader : Closeable {
|
||||
abstract val address: Long
|
||||
abstract val size: Long
|
||||
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
package yokai.core.archive
|
||||
|
||||
expect abstract class ArchiveInputStream
|
|
@ -0,0 +1,3 @@
|
|||
package yokai.core.archive
|
||||
|
||||
expect abstract class ArchiveReader
|
|
@ -0,0 +1,3 @@
|
|||
package yokai.core.archive
|
||||
|
||||
actual abstract class ArchiveInputStream
|
|
@ -0,0 +1,3 @@
|
|||
package yokai.core.archive
|
||||
|
||||
actual abstract class ArchiveReader
|
Loading…
Add table
Add a link
Reference in a new issue