-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* libBuildType added for multiple variants * test helper functions & minor tweaks * remove skip function * Use source extension functions * minor tweaks * Source extension functions * remove kotlinx dep * add okio module * update test script to support multiple variants * fix platform checks * refactor TestHelper func * wasm target file updated * Add Okio & Ktor2 (#56) * wasm target updated * add ktor2 * add wasm target flag * chore:build configurations fixed * add ksoup-network-ktor2 * update publish scripts * add okio doc * assert message improved * update target scripts * add test clean flag * update gradle props * gradle enableCInteropCommonization * fix jvm args * runTests updated
- Loading branch information
Showing
81 changed files
with
1,740 additions
and
282 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
#Gradle | ||
org.gradle.jvmargs=-Xmx2048M -Dfile.encoding=UTF-8 -Dkotlin.daemon.jvm.options\="-Xmx2048M" | ||
org.gradle.caching=true | ||
org.gradle.jvmargs=-Xmx8192M -Dfile.encoding=UTF-8 -Dkotlin.daemon.jvm.options\="-Xmx8192M" | ||
#Kotlin | ||
kotlin.code.style=official | ||
#Android | ||
android.useAndroidX=true | ||
android.nonTransitiveRClass=true | ||
kotlin.native.ignoreIncorrectDependencies=true | ||
|
||
# dev, kotlinx, korlibs, okio | ||
# dev will include all modules in project | ||
libBuildType=korlibs | ||
kotlin.mpp.enableCInteropCommonization=true | ||
# dev, kotlinx, korlibs, okio, ktor2 | ||
# dev will include all modules in settings.gradle.kts but use kotlinx dep for engine | ||
libBuildType=kotlinx | ||
isWasmEnabled=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
ksoup-engine-korlibs/src/com/fleeksoft/ksoup/io/SourceExt.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.fleeksoft.ksoup.io | ||
|
||
import korlibs.io.file.VfsFile | ||
import korlibs.io.stream.* | ||
|
||
|
||
fun SourceReader.Companion.from(byteArray: ByteArray): SourceReader = SourceReaderImpl(byteArray) | ||
fun SourceReader.Companion.from(syncStream: SyncStream): SourceReader = SourceReaderImpl(syncStream) | ||
suspend fun SourceReader.Companion.from(asyncInputStream: AsyncInputStream): SourceReader = | ||
SourceReaderImpl(asyncInputStream.toAsyncStream().toSyncOrNull() ?: asyncInputStream.readAll().openSync()) | ||
|
||
|
||
fun FileSource.Companion.from(file: VfsFile): FileSource = FileSourceImpl(file) | ||
fun FileSource.Companion.from(filePath: String): FileSource = FileSourceImpl(filePath) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 0 additions & 20 deletions
20
ksoup-engine-korlibs/src@jvmAndAndroid/com/fleeksoft/ksoup/JvmKotlinxMapper.kt
This file was deleted.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
ksoup-engine-korlibs/src@jvmAndAndroid/com/fleeksoft/ksoup/io/SourceExtJvm.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package com.fleeksoft.ksoup.io | ||
|
||
import korlibs.io.file.std.toVfs | ||
import java.io.File | ||
import java.io.InputStream | ||
|
||
fun FileSource.Companion.from(file: File): FileSource = FileSource.from(file.toVfs()) | ||
fun SourceReader.Companion.from(inputStream: InputStream): SourceReader = SourceReader.from(inputStream.readAllBytes()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
product: | ||
type: lib | ||
platforms: [jvm, js, wasm, android, linuxX64, linuxArm64, tvosArm64, tvosX64, tvosSimulatorArm64, macosX64, macosArm64, iosArm64, iosSimulatorArm64, iosX64, mingwX64] | ||
platforms: [ jvm, js, wasm, android, linuxX64, linuxArm64, tvosArm64, tvosX64, tvosSimulatorArm64, macosX64, macosArm64, iosArm64, iosSimulatorArm64, iosX64, mingwX64 ] | ||
|
||
apply: [ ../common.module-template.yaml ] | ||
|
||
aliases: | ||
- jvmAndAndroid: [jvm, android] | ||
- jvmAndAndroid: [ jvm, android ] | ||
|
||
dependencies: | ||
- ../ksoup-engine-common | ||
- $libs.kotlinx.io | ||
- $libs.kotlinx.io: exported | ||
- $libs.ktor.io | ||
- $libs.ktor.http |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.