Skip to content

Commit 6e92c99

Browse files
committed
(WIP)
1 parent e1a91fe commit 6e92c99

File tree

5 files changed

+44
-1
lines changed

5 files changed

+44
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- uses: gradle/actions/setup-gradle@dbbdc275be76ac10734476cc723d82dfe7ec6eda # v3.4.2
1515
with:
1616
validate-wrappers: true
17-
- run: ./gradlew test jacocoTestReport
17+
- run: cd parcelize-example && ../gradlew test jacocoTestReport
1818
- uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
1919
with:
2020
name: jacoco-report

parcelize-example/build.gradle.kts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
plugins {
2+
id("com.android.library") version "8.5.0"
3+
kotlin("android") version "2.0.0"
4+
kotlin("plugin.parcelize") version "2.0.0"
5+
id("jacoco")
6+
}
7+
8+
group = "org.example"
9+
10+
repositories {
11+
mavenCentral()
12+
}
13+
14+
android {
15+
defaultConfig {
16+
compileSdk = 33
17+
}
18+
namespace = "org.example"
19+
}
20+
21+
dependencies {
22+
testImplementation(kotlin("test"))
23+
}

parcelize-example/settings.gradle.kts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
pluginManagement {
2+
repositories {
3+
google()
4+
gradlePluginPortal()
5+
mavenCentral()
6+
}
7+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
package org.example
2+
3+
data class Data(val a: Int)
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package org.example
2+
3+
internal class ExampleTest {
4+
5+
@kotlin.test.Test
6+
fun test() {
7+
Data(42).a
8+
}
9+
10+
}

0 commit comments

Comments
 (0)