From 59075faa64df5f0f4727adcf406bd0eb576cf3a2 Mon Sep 17 00:00:00 2001 From: "Theo L.M." Date: Sat, 30 Nov 2024 19:41:56 -0300 Subject: [PATCH] Making DeepLink constructor public to improve testing capabilities (#52) --- rinku-core/src/commonMain/kotlin/dev/theolm/rinku/DeepLink.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rinku-core/src/commonMain/kotlin/dev/theolm/rinku/DeepLink.kt b/rinku-core/src/commonMain/kotlin/dev/theolm/rinku/DeepLink.kt index 5cac217..68de289 100644 --- a/rinku-core/src/commonMain/kotlin/dev/theolm/rinku/DeepLink.kt +++ b/rinku-core/src/commonMain/kotlin/dev/theolm/rinku/DeepLink.kt @@ -10,7 +10,7 @@ import kotlinx.datetime.Clock * @property data The raw URI string used to create the deep link object. * @property timestamp The timestamp of the deep link creation. Defaults to the current time. */ -data class DeepLink internal constructor( +data class DeepLink( val data: String, val timestamp: Long = Clock.System.now().toEpochMilliseconds() ) {