Skip to content

Commit

Permalink
Migrate Parceler package (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
cedrickcooke committed Dec 21, 2021
1 parent d966668 commit 90df126
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
1 change: 1 addition & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ kotlin = "1.6.10"
[libraries]
assertj = { module = "org.assertj:assertj-core", version = "3.21.0" }
kotlinpoet = { module = "com.squareup:kotlinpoet", version = "1.10.2" }
kotlin-parcelize-runtime = { module = "org.jetbrains.kotlin:kotlin-parcelize-runtime", version.ref = "kotlin" }
ksp-api = { module = "com.google.devtools.ksp:symbol-processing-api", version = "1.6.10-1.0.2" }
ksp-testing = { module = "com.github.tschuchortdev:kotlin-compile-testing-ksp", version = "1.4.7" }
robolectric = { module = "org.robolectric:robolectric", version = "4.7.3" }
Expand Down
12 changes: 6 additions & 6 deletions runtime/api/runtime.api
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ public final class com/juul/exercise/runtime/BuildConfig {
}

public final class com/juul/exercise/runtime/ParcelerExtensionsKt {
public static final fun createFromMarshalledBytes (Lkotlinx/android/parcel/Parceler;[BII)Ljava/lang/Object;
public static synthetic fun createFromMarshalledBytes$default (Lkotlinx/android/parcel/Parceler;[BIIILjava/lang/Object;)Ljava/lang/Object;
public static final fun createFromMarshalledBytesOrNull (Lkotlinx/android/parcel/Parceler;[BII)Ljava/lang/Object;
public static synthetic fun createFromMarshalledBytesOrNull$default (Lkotlinx/android/parcel/Parceler;[BIIILjava/lang/Object;)Ljava/lang/Object;
public static final fun writeToMarshalledBytes (Lkotlinx/android/parcel/Parceler;Ljava/lang/Object;)[B
public static final fun writeToMarshalledBytesOrNull (Lkotlinx/android/parcel/Parceler;Ljava/lang/Object;)[B
public static final fun createFromMarshalledBytes (Lkotlinx/parcelize/Parceler;[BII)Ljava/lang/Object;
public static synthetic fun createFromMarshalledBytes$default (Lkotlinx/parcelize/Parceler;[BIIILjava/lang/Object;)Ljava/lang/Object;
public static final fun createFromMarshalledBytesOrNull (Lkotlinx/parcelize/Parceler;[BII)Ljava/lang/Object;
public static synthetic fun createFromMarshalledBytesOrNull$default (Lkotlinx/parcelize/Parceler;[BIIILjava/lang/Object;)Ljava/lang/Object;
public static final fun writeToMarshalledBytes (Lkotlinx/parcelize/Parceler;Ljava/lang/Object;)[B
public static final fun writeToMarshalledBytesOrNull (Lkotlinx/parcelize/Parceler;Ljava/lang/Object;)[B
}

1 change: 1 addition & 0 deletions runtime/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ android {
}

dependencies {
api(libs.kotlin.parcelize.runtime)
testImplementation(libs.assertj)
testImplementation(kotlin("test-junit"))
testImplementation(libs.robolectric)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.juul.exercise.runtime

import android.os.Parcel
import kotlinx.android.parcel.Parceler
import kotlinx.parcelize.Parceler

fun <T : Any> Parceler<T>.createFromMarshalledBytes(
data: ByteArray,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.juul.exercise.runtime

import android.os.Parcel
import kotlinx.android.parcel.Parceler
import kotlinx.parcelize.Parceler
import org.assertj.core.api.Assertions.assertThat
import org.junit.Test
import org.junit.runner.RunWith
Expand Down

0 comments on commit 90df126

Please sign in to comment.