-
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.
added temporary fix for supporting detents for ios bottomsheet
- Loading branch information
Showing
10 changed files
with
162 additions
and
127 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
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,132 +1,111 @@ | ||
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) | ||
id("com.vanniktech.maven.publish") version "0.28.0" | ||
kotlin("plugin.serialization") version "2.0.20" | ||
alias(libs.plugins.multiplatform) | ||
alias(libs.plugins.android.library) | ||
alias(libs.plugins.compose.compiler) | ||
alias(libs.plugins.compose) | ||
id("com.vanniktech.maven.publish") version "0.28.0" | ||
kotlin("plugin.serialization") version "2.0.20" | ||
} | ||
|
||
group = "com.kashif.voyant.voyagerx" | ||
|
||
version = "1.0" | ||
|
||
kotlin { | ||
jvmToolchain(11) | ||
androidTarget { | ||
publishLibraryVariants("release") | ||
} | ||
jvmToolchain(11) | ||
androidTarget { publishLibraryVariants("release") } | ||
|
||
jvm() | ||
jvm() | ||
|
||
wasmJs { | ||
browser() | ||
binaries.executable() | ||
wasmJs { | ||
browser() | ||
binaries.executable() | ||
} | ||
|
||
listOf(iosX64(), iosArm64(), iosSimulatorArm64()).forEach { | ||
it.binaries.framework { | ||
baseName = "voyagerX" | ||
isStatic = true | ||
} | ||
} | ||
|
||
listOf( | ||
iosX64(), | ||
iosArm64(), | ||
iosSimulatorArm64() | ||
).forEach { | ||
it.binaries.framework { | ||
baseName = "voyagerX" | ||
isStatic = true | ||
} | ||
sourceSets { | ||
commonMain.dependencies { | ||
api(projects.common) | ||
api(libs.voyager.navigator) | ||
api(libs.voyager.bottom.sheet.navigator) | ||
} | ||
|
||
sourceSets { | ||
commonMain.dependencies { | ||
api(projects.common) | ||
api(libs.voyager.navigator) | ||
api(libs.voyager.bottom.sheet.navigator) | ||
} | ||
commonTest.dependencies {} | ||
|
||
commonTest.dependencies { | ||
androidMain.dependencies {} | ||
|
||
} | ||
jvmMain.dependencies {} | ||
|
||
androidMain.dependencies { | ||
appleMain.dependencies { implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.1") } | ||
} | ||
|
||
} | ||
// https://kotlinlang.org/docs/native-objc-interop.html#export-of-kdoc-comments-to-generated-objective-c-headers | ||
targets.withType<org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget> { | ||
compilations["main"].compilerOptions.options.freeCompilerArgs.add("-Xexport-kdoc") | ||
} | ||
} | ||
|
||
jvmMain.dependencies { | ||
android { | ||
namespace = "com.kashif.voyant.voyagerx" | ||
compileSdk = 35 | ||
|
||
} | ||
defaultConfig { minSdk = 21 } | ||
|
||
publishing { | ||
singleVariant("release") { | ||
withJavadocJar() | ||
withSourcesJar() | ||
} | ||
|
||
//https://kotlinlang.org/docs/native-objc-interop.html#export-of-kdoc-comments-to-generated-objective-c-headers | ||
targets.withType<org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget> { | ||
compilations["main"].compilerOptions.options.freeCompilerArgs.add("-Xexport-kdoc") | ||
// For debug variant, we exclude Javadoc and sources to prevent conflicts | ||
singleVariant("debug") { | ||
// Exclude Javadoc and sources JARs for debug variant | ||
} | ||
|
||
} | ||
} | ||
|
||
android { | ||
namespace = "com.kashif.voyant.voyagerx" | ||
compileSdk = 35 | ||
dependencies { implementation(libs.androidx.core.ktx) } | ||
|
||
defaultConfig { | ||
minSdk = 21 | ||
mavenPublishing { | ||
coordinates( | ||
groupId = "io.github.kashif-mehmood-km", artifactId = "voyant-voyagerx", version = "0.0.8") | ||
|
||
pom { | ||
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") | ||
|
||
licenses { | ||
license { | ||
name.set("MIT") | ||
url.set("https://opensource.org/licenses/MIT") | ||
} | ||
} | ||
|
||
|
||
publishing { | ||
singleVariant("release") { | ||
withJavadocJar() | ||
withSourcesJar() | ||
} | ||
|
||
// For debug variant, we exclude Javadoc and sources to prevent conflicts | ||
singleVariant("debug") { | ||
// Exclude Javadoc and sources JARs for debug variant | ||
} | ||
developers { | ||
developer { | ||
id.set("Kashif-E") | ||
name.set("Kashif") | ||
email.set("[email protected]") | ||
} | ||
} | ||
} | ||
dependencies { | ||
implementation(libs.androidx.core.ktx) | ||
} | ||
|
||
mavenPublishing { | ||
coordinates( | ||
groupId = "io.github.kashif-mehmood-km", | ||
artifactId = "voyant-voyagerx", | ||
version = "0.0.7" | ||
) | ||
|
||
|
||
|
||
pom { | ||
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") | ||
|
||
licenses { | ||
license { | ||
name.set("MIT") | ||
url.set("https://opensource.org/licenses/MIT") | ||
} | ||
} | ||
|
||
developers { | ||
developer { | ||
id.set("Kashif-E") | ||
name.set("Kashif") | ||
email.set("[email protected]") | ||
} | ||
} | ||
|
||
scm { | ||
url.set("https://github.com/kashif-e/voyant") | ||
} | ||
} | ||
scm { url.set("https://github.com/kashif-e/voyant") } | ||
} | ||
|
||
// Configure publishing to Maven Central | ||
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL) | ||
// Configure publishing to Maven Central | ||
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL) | ||
|
||
// Enable GPG signing for all publications | ||
signAllPublications() | ||
// Enable GPG signing for all publications | ||
signAllPublications() | ||
} |
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
Oops, something went wrong.