-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
94 additions
and
29 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 |
---|---|---|
@@ -1,43 +1,51 @@ | ||
|
||
# Voyant | ||
|
||
Kotlin Multiplatform Library | ||
<p align="center"> | ||
<a href="https://github.com/Kashif-E/Voyant/releases/tag/0.0.1"> | ||
<img src="https://img.shields.io/github/v/release/kashif-e/voyant" alt="Version"> | ||
</a> | ||
</p> | ||
|
||
## Overview | ||
|
||
|
||
The **Voyant** is an extension library for **Voyager** it enables developers to use native ios navigation for **Apple** platforms. | ||
|
||
|
||
## Installation | ||
|
||
```Kotlin | ||
implementation("io.github.kashif-mehmood-km:voyant:+") | ||
``` | ||
|
||
## Supported Platforms | ||
|
||
### Publish to MavenCentral | ||
- Android | ||
- IOS | ||
- WasmJS | ||
- JVM | ||
|
||
1) Registering a Sonatype account as described here: | ||
https://dev.to/kotlin/how-to-build-and-publish-a-kotlin-multiplatform-library-going-public-4a8k | ||
2) Add developer id, name, email and the project url to | ||
`/convention-plugins/src/main/kotlin/convention.publication.gradle.kts` | ||
3) Add the secrets to `local.properties`: | ||
## Usage | ||
|
||
``` | ||
signing.keyId=... | ||
signing.password=... | ||
signing.secretKeyRingFile=... | ||
ossrhUsername=... | ||
ossrhPassword=... | ||
``` | ||
Instead of using methods of voyager library like `push` use `pushX` instead. Similary for `BottomSheetNavigator` use `showX` instead of `show` | ||
|
||
4) Run `./gradlew :voyagerX:publishAllPublicationsToSonatypeRepository` | ||
|
||
### Build platform artifacts | ||
You can check the `composeApp` for more details. | ||
|
||
#### Android aar | ||
The library is in an experimental stage, APIs can change/break. | ||
|
||
- Run `./gradlew :voyagerX:assembleRelease` | ||
- Output: `/voyagerX/build/outputs/aar/voyagerX-release.aar` | ||
|
||
#### JVM jar | ||
**Contributions** | ||
|
||
- Run `./gradlew :voyagerX:jvmJar` | ||
- Output: `/voyagerX/build/libs/voyagerX-jvm-1.0.jar` | ||
We welcome contributions! Before submitting a pull request, please open an issue so we can discuss the proposed changes and collaborate on improving the project. | ||
|
||
#### iOS Framework | ||
**Feature Requests** | ||
Feature requests are encouraged, and I’ll do my best to address them as quickly as possible. | ||
|
||
- Run `./gradlew :voyagerX:linkReleaseFrameworkIosArm64` | ||
- Output: `/voyagerX/build/bin/iosArm64/releaseFramework/voyagerX.framework` | ||
|
||
#### Wasm binary file | ||
## License | ||
|
||
- Run `./gradlew :voyagerX:wasmJsBrowserDistribution` | ||
- Output: `/voyagerX/build/dist/wasmJs/productionExecutable/voyagerX-wasm-js.wasm` | ||
``` | ||
MIT License | ||
``` |
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