mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +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 {
|
tasks {
|
||||||
withType<KotlinCompile> {
|
withType<KotlinCompile> {
|
||||||
compilerOptions.freeCompilerArgs.addAll(
|
compilerOptions.freeCompilerArgs.addAll(
|
||||||
|
"-Xexpect-actual-classes",
|
||||||
"-Xcontext-receivers",
|
"-Xcontext-receivers",
|
||||||
"-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi",
|
"-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi",
|
||||||
"-opt-in=kotlinx.serialization.ExperimentalSerializationApi",
|
"-opt-in=kotlinx.serialization.ExperimentalSerializationApi",
|
||||||
|
|
|
@ -3,6 +3,6 @@ package yokai.core.archive
|
||||||
import java.io.InputStream
|
import java.io.InputStream
|
||||||
|
|
||||||
// TODO: Use Okio's Source
|
// TODO: Use Okio's Source
|
||||||
abstract class ArchiveInputStream : InputStream() {
|
actual abstract class ArchiveInputStream : InputStream() {
|
||||||
abstract fun getNextEntry(): ArchiveEntry?
|
abstract fun getNextEntry(): ArchiveEntry?
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@ package yokai.core.archive
|
||||||
import java.io.Closeable
|
import java.io.Closeable
|
||||||
import java.io.InputStream
|
import java.io.InputStream
|
||||||
|
|
||||||
abstract class ArchiveReader : Closeable {
|
actual abstract class ArchiveReader : Closeable {
|
||||||
abstract val address: Long
|
abstract val address: Long
|
||||||
abstract val size: 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