-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create :experimental:market:core module
Signed-off-by: Matt Ramotar <[email protected]>
- Loading branch information
1 parent
63928aa
commit 3c0d3fc
Showing
4 changed files
with
127 additions
and
0 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,122 @@ | ||
import com.vanniktech.maven.publish.SonatypeHost | ||
import org.jetbrains.dokka.gradle.DokkaTask | ||
|
||
plugins { | ||
kotlin("multiplatform") | ||
kotlin("plugin.serialization") | ||
id("com.android.library") | ||
id("com.vanniktech.maven.publish") | ||
id("org.jetbrains.dokka") | ||
id("org.jetbrains.kotlinx.kover") | ||
id("co.touchlab.faktory.kmmbridge") | ||
`maven-publish` | ||
kotlin("native.cocoapods") | ||
id("kotlinx-atomicfu") | ||
} | ||
|
||
kotlin { | ||
android() | ||
jvm() | ||
iosArm64() | ||
iosX64() | ||
linuxX64() | ||
iosSimulatorArm64() | ||
js { | ||
browser() | ||
nodejs() | ||
} | ||
cocoapods { | ||
summary = "Market/core" | ||
homepage = "https://github.com/MobileNativeFoundation/Store" | ||
ios.deploymentTarget = "13" | ||
version = libs.versions.store.get() | ||
} | ||
|
||
sourceSets { | ||
val commonMain by getting { | ||
dependencies { | ||
implementation(libs.kotlin.stdlib) | ||
implementation(libs.kotlinx.coroutines.core) | ||
} | ||
} | ||
|
||
val androidMain by getting | ||
val commonTest by getting { | ||
dependencies { | ||
implementation(kotlin("test")) | ||
implementation(libs.turbine) | ||
implementation(libs.kotlinx.coroutines.test) | ||
} | ||
} | ||
} | ||
|
||
jvmToolchain(11) | ||
} | ||
|
||
android { | ||
namespace = "org.mobilenativefoundation.market.core" | ||
|
||
sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml") | ||
compileSdk = 33 | ||
|
||
defaultConfig { | ||
minSdk = 24 | ||
targetSdk = 33 | ||
} | ||
|
||
lint { | ||
disable += "ComposableModifierFactory" | ||
disable += "ModifierFactoryExtensionFunction" | ||
disable += "ModifierFactoryReturnType" | ||
disable += "ModifierFactoryUnreferencedReceiver" | ||
} | ||
|
||
compileOptions { | ||
sourceCompatibility = JavaVersion.VERSION_11 | ||
targetCompatibility = JavaVersion.VERSION_11 | ||
} | ||
} | ||
|
||
tasks.withType<DokkaTask>().configureEach { | ||
dokkaSourceSets.configureEach { | ||
reportUndocumented.set(false) | ||
skipDeprecated.set(true) | ||
jdkVersion.set(11) | ||
} | ||
} | ||
|
||
mavenPublishing { | ||
publishToMavenCentral(SonatypeHost.S01) | ||
signAllPublications() | ||
} | ||
|
||
addGithubPackagesRepository() | ||
kmmbridge { | ||
githubReleaseArtifacts() | ||
githubReleaseVersions() | ||
versionPrefix.set(libs.versions.market.get()) | ||
spm() | ||
} | ||
|
||
koverMerged { | ||
enable() | ||
|
||
xmlReport { | ||
onCheck.set(true) | ||
reportFile.set(layout.projectDirectory.file("kover/coverage.xml")) | ||
} | ||
|
||
htmlReport { | ||
onCheck.set(true) | ||
reportDir.set(layout.projectDirectory.dir("kover/html")) | ||
} | ||
|
||
verify { | ||
onCheck.set(true) | ||
} | ||
} | ||
|
||
atomicfu { | ||
transformJvm = false | ||
transformJs = false | ||
} |
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,3 @@ | ||
POM_NAME=org.mobilenativefoundation.store | ||
POM_ARTIFACT_ID=paging5 | ||
POM_PACKAGING=jar |
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 |
---|---|---|
|
@@ -8,3 +8,4 @@ include ':multicast' | |
include ':rx2' | ||
include ':paging' | ||
include ':core' | ||
include ':experimental:market:core' |