Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate voyager-rxjava to multiplatform. #36

Merged
merged 2 commits into from
Jan 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions voyager-rxjava/build.gradle

This file was deleted.

60 changes: 60 additions & 0 deletions voyager-rxjava/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
plugins {
kotlin("multiplatform")
id("com.android.library")
id("com.vanniktech.maven.publish")
}

kotlin {
explicitApi()

android {
publishAllLibraryVariants()
}
jvm("desktop")

sourceSets {
/* Source sets structure
common
├─ jvm
├─ android
├─ desktop
*/
val commonMain by getting
val jvmMain by creating {
dependsOn(commonMain)
dependencies {
api(projects.voyagerCore)
compileOnly(libs.compose.rxjava)
}
}
val desktopMain by getting {
dependsOn(jvmMain)
}
val androidMain by getting {
dependsOn(jvmMain)
}
val commonTest by getting
val jvmTest by creating {
dependsOn(commonTest)
dependencies {
implementation(libs.junit.api)
runtimeOnly(libs.junit.engine)
}
}
val desktopTest by getting {
dependsOn(jvmTest)
}
val androidTest by getting {
dependsOn(jvmTest)
}
}
}

android {
compileSdk = 31
sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml")
defaultConfig {
minSdk = 21
targetSdk = 31
}
}