-
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 #15 from fleeksoft/develop
Release 0.1.0
- Loading branch information
Showing
9 changed files
with
103 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Contributing Guidelines | ||
|
||
You can contribute to this project by reporting issues or submitting changes via a pull request. | ||
|
||
## Reporting issues | ||
|
||
For filing feature requests and bug reports, please use our [GitHub issues](https://github.com/fleeksoft/ksoup/issues). | ||
|
||
For questions about usage and general inquiries, consider asking on StackOverflow or participating in | ||
our [GitHub Discussions](https://github.com/fleeksoft/ksoup/discussions). | ||
|
||
## Submitting changes | ||
|
||
To submit pull requests, please visit [this page](https://github.com/fleeksoft/ksoup/pulls). | ||
Keep in mind that maintainers will have to support the code resulting from your contribution. Therefore, please | ||
familiarize yourself with the following guidelines: | ||
|
||
* All development (both new features and bug fixes) should be performed in the `develop` branch. | ||
* The `master` branch hosts the sources of the most recently released version. | ||
* Base your pull requests against the `develop` branch. | ||
* The `develop` branch is merged into the `master` branch during releases. | ||
* Ensure to [Build the project](#building) to verify that everything works and passes the tests. | ||
* If you are fixing a bug: | ||
* Write the test that reproduces the bug. | ||
* Fixes without tests are accepted only under exceptional circumstances, such as when writing a corresponding test | ||
is too hard or impractical. | ||
* Follow the project's style for writing tests: name test functions as testXxx. Avoid using backticks in test names. | ||
* If you wish to work on an existing issue, comment on it first. Ensure that the issue clearly describes a problem and a | ||
solution that has received positive feedback. Propose a solution if none is suggested. | ||
|
||
## Building | ||
|
||
This library is built with Gradle. | ||
|
||
* Run `./gradlew build` to build the entire project. It also runs all the tests. | ||
* Run `./gradlew <module>:check` to test only the module you are working on. | ||
* Run `./gradlew <module>:jvmTest` to perform only the fast JVM tests of a multiplatform module. |
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 |
---|---|---|
|
@@ -149,6 +149,7 @@ publishing { | |
developer { | ||
name.set("Sabeeh Ul Hussnain") | ||
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 |
---|---|---|
|
@@ -11,6 +11,8 @@ plugins { | |
group = "com.fleeksoft.ksoup" | ||
version = libs.versions.libraryVersion.get() | ||
|
||
val rootPath = "generated/kotlin" | ||
|
||
kotlin { | ||
explicitApi() | ||
|
||
|
@@ -51,10 +53,13 @@ kotlin { | |
implementation(libs.codepoints) | ||
api(libs.okio) | ||
} | ||
commonTest.dependencies { | ||
implementation(libs.kotlin.test) | ||
implementation(libs.gson) | ||
implementation(projects.ksoupNetwork) | ||
commonTest { | ||
this.kotlin.srcDir(layout.buildDirectory.file(rootPath)) | ||
dependencies { | ||
implementation(libs.kotlin.test) | ||
implementation(libs.gson) | ||
implementation(projects.ksoupNetwork) | ||
} | ||
} | ||
|
||
jvmMain.dependencies { | ||
|
@@ -153,6 +158,7 @@ publishing { | |
developer { | ||
name.set("Sabeeh Ul Hussnain") | ||
email.set("[email protected]") | ||
organization.set("Fleek Soft") | ||
} | ||
} | ||
} | ||
|
@@ -173,3 +179,27 @@ signing { | |
project.tasks.withType(AbstractPublishToMaven::class.java).configureEach { | ||
dependsOn(project.tasks.withType(Sign::class.java)) | ||
} | ||
|
||
val generateRootPathSource: Task by tasks.creating { | ||
group = "build setup" | ||
val file = layout.buildDirectory.file("$rootPath/BuildConfig.kt") | ||
outputs.file(file) | ||
|
||
doLast { | ||
val content = | ||
""" | ||
package com.fleeksoft.ksoup | ||
object BuildConfig { | ||
const val PROJECT_ROOT: String = "${rootProject.rootDir.absolutePath.replace("\\", "\\\\")}" | ||
} | ||
""".trimIndent() | ||
file.get().asFile.writeText(content) | ||
} | ||
} | ||
|
||
tasks.all { | ||
if (name != "generateRootPathSource") { | ||
dependsOn("generateRootPathSource") | ||
} | ||
} |
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