diff --git a/.gitignore b/.gitignore index 223e061..2089fb1 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,7 @@ captures .externalNativeBuild .cxx local.properties +gradle.properties xcuserdata/ Pods/ *.jks diff --git a/README.MD b/README.MD index db15571..937d482 100644 --- a/README.MD +++ b/README.MD @@ -1,15 +1,16 @@ # Voyant - -

+

Version + + Kotlin Weekly +

## Overview - **Voyant** is an extension library for **Voyager** and **Jetpack Compose Navigation** it enables developers to use native navigation for **Apple** platforms. ## Demo @@ -21,12 +22,12 @@ - For Voyager ```Kotlin -implementation("io.github.kashif-mehmood-km:voyant-voyagerx:0.0.3") +implementation("io.github.kashif-mehmood-km:voyant-voyagerx:0.0.5") ``` - For compose Navigation ```Kotlin -implementation("io.github.kashif-mehmood-km:voyant-navigation-compose:0.0.3") +implementation("io.github.kashif-mehmood-km:voyant-navigation-compose:0.0.5") ``` diff --git a/common/build.gradle.kts b/common/build.gradle.kts index e9d849e..2c35fa2 100644 --- a/common/build.gradle.kts +++ b/common/build.gradle.kts @@ -1,9 +1,12 @@ +import com.vanniktech.maven.publish.SonatypeHost + plugins { alias(libs.plugins.multiplatform) alias(libs.plugins.android.library) alias(libs.plugins.compose.compiler) alias(libs.plugins.compose) kotlin("plugin.serialization") version "2.0.20" + id("com.vanniktech.maven.publish") version "0.28.0" } group = "com.kashif.voyant-common" @@ -85,3 +88,46 @@ android { } } } + +mavenPublishing { + coordinates( + groupId = "io.github.kashif-mehmood-km", + artifactId = "common", + version = "0.0.5" + ) + + + + pom { + name.set("Voyant-common") + description.set("Voyant is an extension library for Voyager and Navigation Compose to use native navigation on apple platforms..") + inceptionYear.set("2024") + url.set("https://github.com/kashif-e/voyant") + + licenses { + license { + name.set("MIT") + url.set("https://opensource.org/licenses/MIT") + } + } + + developers { + developer { + id.set("Kashif-E") + name.set("Kashif") + email.set("kashismails@gmail.com") + } + } + + scm { + url.set("https://github.com/kashif-e/voyant") + } + } + + // Configure publishing to Maven Central + publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL) + + // Enable GPG signing for all publications + signAllPublications() +} + diff --git a/composeApp/build.gradle.kts b/composeApp/build.gradle.kts index 77430d8..6f8eed9 100644 --- a/composeApp/build.gradle.kts +++ b/composeApp/build.gradle.kts @@ -46,8 +46,8 @@ kotlin { implementation(compose.material) implementation(compose.components.resources) implementation(compose.components.uiToolingPreview) - api(projects.voyagerX) - implementation(projects.navigationComposeX) +// api(projects.voyagerX) +// implementation(projects.navigationComposeX) implementation(libs.kotlinx.serialization.json) } diff --git a/gradle.properties b/gradle.properties index 97aeb6e..1dc7a01 100644 --- a/gradle.properties +++ b/gradle.properties @@ -12,3 +12,4 @@ kotlin.daemon.jvmargs=-Xmx4G #Android android.useAndroidX=true android.nonTransitiveRClass=true + diff --git a/navigationComposeX/build.gradle.kts b/navigationComposeX/build.gradle.kts index 3b7e059..bd8bd25 100644 --- a/navigationComposeX/build.gradle.kts +++ b/navigationComposeX/build.gradle.kts @@ -88,13 +88,13 @@ mavenPublishing { coordinates( groupId = "io.github.kashif-mehmood-km", artifactId = "voyant-navigation-compose", - version = "0.0.3" + version = "0.0.5" ) pom { - name.set("Voyant") + name.set("Voyant-Navigation-Compose") description.set("Voyant is an extension library for Voyager and Navigation Compose to use native navigation on apple platforms..") inceptionYear.set("2024") url.set("https://github.com/kashif-e/voyant") diff --git a/settings.gradle.kts b/settings.gradle.kts index 12aa146..4dc037c 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -31,6 +31,5 @@ dependencyResolutionManagement { includeBuild("convention-plugins") include(":voyagerX") include(":composeApp") - include(":navigationComposeX") include(":common") diff --git a/voyagerX/build.gradle.kts b/voyagerX/build.gradle.kts index 8fcf4d4..6b99b7f 100644 --- a/voyagerX/build.gradle.kts +++ b/voyagerX/build.gradle.kts @@ -93,13 +93,13 @@ mavenPublishing { coordinates( groupId = "io.github.kashif-mehmood-km", artifactId = "voyant-voyagerx", - version = "0.0.3" + version = "0.0.5" ) pom { - name.set("Voyant") + name.set("Voyant-VoyagerX") description.set("Voyant is an extension library for Voyager and Navigation Compose to use native navigation on apple platforms..") inceptionYear.set("2024") url.set("https://github.com/kashif-e/voyant")