Skip to content

Commit fc8689a

Browse files
committed
Update Kover to 0.9.0-RC, Add Coverage Report to CI, and Consolidate Workflows (#673)
* Run codecov on PR and push Signed-off-by: matt-ramotar <[email protected]> * Use codecov-action@v4 with CODECOV_TOKEN Signed-off-by: matt-ramotar <[email protected]> * Remove coverage files Signed-off-by: matt-ramotar <[email protected]> * Update .gitignore Signed-off-by: matt-ramotar <[email protected]> * Update kover to 0.9.0-RC Signed-off-by: matt-ramotar <[email protected]> * Consolidate workflows Signed-off-by: matt-ramotar <[email protected]> * Update workflow to check out the repository on the correct branch and fetch all history and tags Signed-off-by: matt-ramotar <[email protected]> * Format Signed-off-by: matt-ramotar <[email protected]> --------- Signed-off-by: matt-ramotar <[email protected]>
1 parent 6891b0f commit fc8689a

File tree

1 file changed

+106
-0
lines changed

1 file changed

+106
-0
lines changed

paging/build.gradle.kts

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
import com.vanniktech.maven.publish.SonatypeHost
2+
import org.jetbrains.dokka.gradle.DokkaTask
3+
4+
plugins {
5+
kotlin("multiplatform")
6+
kotlin("plugin.serialization")
7+
id("com.android.library")
8+
id("com.vanniktech.maven.publish")
9+
id("org.jetbrains.dokka")
10+
id("co.touchlab.faktory.kmmbridge")
11+
`maven-publish`
12+
kotlin("native.cocoapods")
13+
id("kotlinx-atomicfu")
14+
}
15+
16+
kotlin {
17+
android()
18+
jvm()
19+
iosArm64()
20+
iosX64()
21+
linuxX64()
22+
iosSimulatorArm64()
23+
js {
24+
browser()
25+
nodejs()
26+
}
27+
cocoapods {
28+
summary = "Store5/Paging"
29+
homepage = "https://github.com/MobileNativeFoundation/Store"
30+
ios.deploymentTarget = "13"
31+
version = libs.versions.store.get()
32+
}
33+
34+
sourceSets {
35+
val commonMain by getting {
36+
dependencies {
37+
implementation(libs.kotlin.stdlib)
38+
implementation(project(":store"))
39+
implementation(project(":cache"))
40+
api(project(":core"))
41+
implementation(libs.kotlinx.coroutines.core)
42+
}
43+
}
44+
45+
val androidMain by getting
46+
val commonTest by getting {
47+
dependencies {
48+
implementation(kotlin("test"))
49+
implementation(libs.turbine)
50+
implementation(libs.kotlinx.coroutines.test)
51+
}
52+
}
53+
}
54+
55+
jvmToolchain(11)
56+
}
57+
58+
android {
59+
namespace = "org.mobilenativefoundation.store.paging5"
60+
61+
sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml")
62+
compileSdk = 34
63+
64+
defaultConfig {
65+
minSdk = 24
66+
targetSdk = 34
67+
}
68+
69+
lint {
70+
disable += "ComposableModifierFactory"
71+
disable += "ModifierFactoryExtensionFunction"
72+
disable += "ModifierFactoryReturnType"
73+
disable += "ModifierFactoryUnreferencedReceiver"
74+
}
75+
76+
compileOptions {
77+
sourceCompatibility = JavaVersion.VERSION_11
78+
targetCompatibility = JavaVersion.VERSION_11
79+
}
80+
}
81+
82+
tasks.withType<DokkaTask>().configureEach {
83+
dokkaSourceSets.configureEach {
84+
reportUndocumented.set(false)
85+
skipDeprecated.set(true)
86+
jdkVersion.set(11)
87+
}
88+
}
89+
90+
mavenPublishing {
91+
publishToMavenCentral(SonatypeHost.S01)
92+
signAllPublications()
93+
}
94+
95+
addGithubPackagesRepository()
96+
kmmbridge {
97+
githubReleaseArtifacts()
98+
githubReleaseVersions()
99+
versionPrefix.set(libs.versions.store.get())
100+
spm()
101+
}
102+
103+
atomicfu {
104+
transformJvm = false
105+
transformJs = false
106+
}

0 commit comments

Comments
 (0)