1+ import com.vanniktech.maven.publish.SonatypeHost
2+ import org.jetbrains.dokka.gradle.DokkaTask
13
24plugins {
35 kotlin(" multiplatform" )
@@ -6,42 +8,47 @@ plugins {
68 id(" com.vanniktech.maven.publish" )
79 id(" org.jetbrains.dokka" )
810 id(" org.jetbrains.kotlinx.kover" )
11+ id(" co.touchlab.faktory.kmmbridge" ) version(" 0.3.2" )
912 `maven- publish`
13+ kotlin(" native.cocoapods" )
1014 id(" kotlinx-atomicfu" )
11- id(" org.jetbrains.compose" ) version(" 1.5.1" )
1215}
1316
1417kotlin {
15- androidTarget()
18+ android()
19+ jvm()
20+ iosArm64()
21+ iosX64()
22+ linuxX64()
23+ iosSimulatorArm64()
24+ js {
25+ browser()
26+ nodejs()
27+ }
28+ cocoapods {
29+ summary = " Store5/Paging"
30+ homepage = " https://github.com/MobileNativeFoundation/Store"
31+ ios.deploymentTarget = " 13"
32+ version = libs.versions.store.get()
33+ }
1634
1735 sourceSets {
1836 val commonMain by getting {
1937 dependencies {
2038 implementation(libs.kotlin.stdlib)
2139 implementation(project(" :store" ))
2240 implementation(project(" :cache" ))
23- implementation(compose.runtime)
24- implementation(compose.ui)
25- implementation(compose.foundation)
26- implementation(compose.material)
2741 api(project(" :core" ))
42+ implementation(libs.kotlinx.coroutines.core)
2843 }
2944 }
3045
31- val androidMain by getting {
32- dependencies {
33- implementation(libs.androidx.paging.runtime)
34- implementation(libs.androidx.paging.compose)
35- }
36- }
37- @OptIn(org.jetbrains.compose.ExperimentalComposeLibrary ::class )
46+ val androidMain by getting
3847 val commonTest by getting {
3948 dependencies {
4049 implementation(kotlin(" test" ))
4150 implementation(libs.turbine)
4251 implementation(libs.kotlinx.coroutines.test)
43- implementation(compose.uiTestJUnit4)
44- implementation(compose.ui)
4552 }
4653 }
4754 }
@@ -53,6 +60,7 @@ android {
5360
5461 defaultConfig {
5562 minSdk = 24
63+ targetSdk = 33
5664 }
5765
5866 lint {
@@ -67,3 +75,47 @@ android {
6775 targetCompatibility = JavaVersion .VERSION_11
6876 }
6977}
78+
79+ tasks.withType<DokkaTask >().configureEach {
80+ dokkaSourceSets.configureEach {
81+ reportUndocumented.set(false )
82+ skipDeprecated.set(true )
83+ jdkVersion.set(11 )
84+ }
85+ }
86+
87+ mavenPublishing {
88+ publishToMavenCentral(SonatypeHost .S01 )
89+ signAllPublications()
90+ }
91+
92+ addGithubPackagesRepository()
93+ kmmbridge {
94+ githubReleaseArtifacts()
95+ githubReleaseVersions()
96+ versionPrefix.set(libs.versions.store.get())
97+ spm()
98+ }
99+
100+ koverMerged {
101+ enable()
102+
103+ xmlReport {
104+ onCheck.set(true )
105+ reportFile.set(layout.projectDirectory.file(" kover/coverage.xml" ))
106+ }
107+
108+ htmlReport {
109+ onCheck.set(true )
110+ reportDir.set(layout.projectDirectory.dir(" kover/html" ))
111+ }
112+
113+ verify {
114+ onCheck.set(true )
115+ }
116+ }
117+
118+ atomicfu {
119+ transformJvm = false
120+ transformJs = false
121+ }
0 commit comments