-
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.
Merge pull request #48 from fleeksoft/release-0.1.5
Release 0.1.5
- Loading branch information
Showing
181 changed files
with
9,523 additions
and
2,246 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
plugins { | ||
alias(libs.plugins.mavenPublish) | ||
} | ||
|
||
group = "com.fleeksoft.ksoup" | ||
version = libs.versions.libraryVersion.get() | ||
|
||
val artifactId = "ksoup-engine-common" | ||
mavenPublishing { | ||
coordinates("com.fleeksoft.ksoup", artifactId, libs.versions.libraryVersion.get()) | ||
pom { | ||
name.set(artifactId) | ||
description.set("Ksoup is a Kotlin Multiplatform library for working with HTML and XML, and offers an easy-to-use API for URL fetching, data parsing, extraction, and manipulation using DOM and CSS selectors.") | ||
licenses { | ||
license { | ||
name.set("Apache-2.0") | ||
url.set("https://opensource.org/licenses/Apache-2.0") | ||
} | ||
} | ||
url.set("https://github.com/fleeksoft/ksoup") | ||
issueManagement { | ||
system.set("Github") | ||
url.set("https://github.com/fleeksoft/ksoup/issues") | ||
} | ||
scm { | ||
connection.set("https://github.com/fleeksoft/ksoup.git") | ||
url.set("https://github.com/fleeksoft/ksoup") | ||
} | ||
developers { | ||
developer { | ||
name.set("Sabeeh Ul Hussnain Anjum") | ||
email.set("[email protected]") | ||
organization.set("Fleek Soft") | ||
} | ||
} | ||
} | ||
} |
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 @@ | ||
product: | ||
type: lib | ||
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] |
19 changes: 19 additions & 0 deletions
19
ksoup-engine-common/src/com/fleeksoft/ksoup/engine/KsoupEngine.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,19 @@ | ||
package com.fleeksoft.ksoup.engine | ||
|
||
import com.fleeksoft.ksoup.io.Charset | ||
import com.fleeksoft.ksoup.io.FileSource | ||
import com.fleeksoft.ksoup.io.SourceReader | ||
|
||
interface KsoupEngine { | ||
fun urlResolveOrNull(base: String, relUrl: String): String? | ||
|
||
fun openSourceReader(content: String, charset: Charset? = null): SourceReader | ||
|
||
fun openSourceReader(byteArray: ByteArray): SourceReader | ||
|
||
fun getUtf8Charset(): Charset | ||
|
||
fun charsetForName(name: String): Charset | ||
|
||
fun pathToFileSource(path: String): FileSource | ||
} |
Oops, something went wrong.