Skip to content

Commit 6192d82

Browse files
committed
chore: update bitkit-core to "0.1.33"
1 parent 226b316 commit 6192d82

File tree

11 files changed

+32
-10
lines changed

11 files changed

+32
-10
lines changed

app/build.gradle.kts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import com.android.build.gradle.internal.api.BaseVariantOutputImpl
22
import io.gitlab.arturbosch.detekt.Detekt
33
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
44
import org.gradle.api.tasks.testing.logging.TestLogEvent
5-
import org.jetbrains.kotlin.compose.compiler.gradle.ComposeFeatureFlag
65
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
76
import java.io.FileInputStream
87
import java.util.Properties
@@ -176,7 +175,6 @@ android {
176175

177176
composeCompiler {
178177
featureFlags = setOf(
179-
ComposeFeatureFlag.OptimizeNonSkippingGroups,
180178
)
181179
reportsDestination = layout.buildDirectory.dir("compose_compiler")
182180
}

app/src/main/java/to/bitkit/repositories/ActivityRepo.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,7 @@ class ActivityRepo @Inject constructor(
529529
preimage = null,
530530
createdAt = now,
531531
updatedAt = null,
532+
seenAt = null, // TODO implement synonymdev/bitkit-ios#270 changes
532533
)
533534
)
534535
)

app/src/main/java/to/bitkit/services/CoreService.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,7 @@ class ActivityService(
485485
preimage = kind.preimage,
486486
createdAt = payment.latestUpdateTimestamp,
487487
updatedAt = payment.latestUpdateTimestamp,
488+
seenAt = null, // TODO implement synonymdev/bitkit-ios#270 changes
488489
)
489490
}
490491

@@ -616,6 +617,7 @@ class ActivityService(
616617
transferTxId = null,
617618
createdAt = confirmationData.timestamp,
618619
updatedAt = confirmationData.timestamp,
620+
seenAt = null, // TODO implement synonymdev/bitkit-ios#270 changes
619621
)
620622
}
621623

@@ -737,7 +739,8 @@ class ActivityService(
737739
timestamp = txTimestamp,
738740
preimage = if (Random.nextBoolean()) "preimage$i" else null,
739741
createdAt = txTimestamp,
740-
updatedAt = txTimestamp
742+
updatedAt = txTimestamp,
743+
seenAt = null, // TODO implement synonymdev/bitkit-ios#270 changes
741744
)
742745
)
743746
} else {
@@ -762,6 +765,7 @@ class ActivityService(
762765
transferTxId = null,
763766
createdAt = txTimestamp,
764767
updatedAt = txTimestamp,
768+
seenAt = null, // TODO implement synonymdev/bitkit-ios#270 changes
765769
)
766770
)
767771
}

app/src/main/java/to/bitkit/ui/screens/wallets/activity/ActivityDetailScreen.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -780,6 +780,7 @@ private fun PreviewLightningSent() {
780780
preimage = null,
781781
createdAt = null,
782782
updatedAt = null,
783+
seenAt = null,
783784
)
784785
),
785786
tags = listOf("Lunch", "Drinks"),
@@ -818,6 +819,7 @@ private fun PreviewOnchain() {
818819
transferTxId = null,
819820
createdAt = null,
820821
updatedAt = null,
822+
seenAt = null,
821823
)
822824
),
823825
tags = emptyList(),
@@ -852,6 +854,7 @@ private fun PreviewSheetSmallScreen() {
852854
preimage = null,
853855
createdAt = null,
854856
updatedAt = null,
857+
seenAt = null,
855858
)
856859
),
857860
tags = listOf("Lunch", "Drinks"),

app/src/main/java/to/bitkit/ui/screens/wallets/activity/ActivityExploreScreen.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,7 @@ private fun PreviewLightning() {
340340
preimage = "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
341341
createdAt = null,
342342
updatedAt = null,
343+
seenAt = null,
343344
),
344345
),
345346
)
@@ -371,6 +372,7 @@ private fun PreviewOnchain() {
371372
transferTxId = null,
372373
createdAt = null,
373374
updatedAt = null,
375+
seenAt = null,
374376
),
375377
),
376378
)

app/src/main/java/to/bitkit/ui/screens/wallets/activity/components/ActivityIcon.kt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ fun CircularIcon(
131131
icon: Painter,
132132
iconColor: Color,
133133
backgroundColor: Color,
134-
size: Dp = 32.dp,
135134
modifier: Modifier = Modifier,
135+
size: Dp = 32.dp,
136136
) {
137137
Box(
138138
contentAlignment = Alignment.Center,
@@ -172,6 +172,7 @@ private fun Preview() {
172172
preimage = null,
173173
createdAt = null,
174174
updatedAt = null,
175+
seenAt = null,
175176
)
176177
)
177178
)
@@ -191,6 +192,7 @@ private fun Preview() {
191192
preimage = null,
192193
createdAt = null,
193194
updatedAt = null,
195+
seenAt = null,
194196
)
195197
)
196198
)
@@ -210,6 +212,7 @@ private fun Preview() {
210212
preimage = null,
211213
createdAt = null,
212214
updatedAt = null,
215+
seenAt = null,
213216
)
214217
)
215218
)
@@ -236,6 +239,7 @@ private fun Preview() {
236239
transferTxId = null,
237240
createdAt = null,
238241
updatedAt = null,
242+
seenAt = null,
239243
)
240244
)
241245
)
@@ -262,6 +266,7 @@ private fun Preview() {
262266
transferTxId = null,
263267
createdAt = null,
264268
updatedAt = null,
269+
seenAt = null,
265270
)
266271
)
267272
)
@@ -288,6 +293,7 @@ private fun Preview() {
288293
transferTxId = null,
289294
createdAt = null,
290295
updatedAt = null,
296+
seenAt = null,
291297
)
292298
)
293299
)
@@ -314,6 +320,7 @@ private fun Preview() {
314320
transferTxId = "transferTxId",
315321
createdAt = null,
316322
updatedAt = null,
323+
seenAt = null,
317324
)
318325
)
319326
)
@@ -340,6 +347,7 @@ private fun Preview() {
340347
transferTxId = "transferTxId",
341348
createdAt = null,
342349
updatedAt = null,
350+
seenAt = null,
343351
)
344352
)
345353
)

app/src/main/java/to/bitkit/ui/screens/wallets/activity/utils/PreviewItems.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ val previewActivityItems = buildList {
3838
transferTxId = "transferTxId",
3939
createdAt = today.epochSecond() - 30_000u,
4040
updatedAt = today.epochSecond(),
41+
seenAt = null,
4142
)
4243
)
4344
)
@@ -57,6 +58,7 @@ val previewActivityItems = buildList {
5758
preimage = "preimage1",
5859
createdAt = yesterday.epochSecond(),
5960
updatedAt = yesterday.epochSecond(),
61+
seenAt = null,
6062
)
6163
)
6264
)
@@ -76,6 +78,7 @@ val previewActivityItems = buildList {
7678
preimage = "preimage2",
7779
createdAt = thisWeek.epochSecond(),
7880
updatedAt = thisWeek.epochSecond(),
81+
seenAt = null,
7982
)
8083
)
8184
)
@@ -102,6 +105,7 @@ val previewActivityItems = buildList {
102105
transferTxId = "transferTxId",
103106
createdAt = thisMonth.epochSecond(),
104107
updatedAt = thisMonth.epochSecond(),
108+
seenAt = null,
105109
)
106110
)
107111
)
@@ -121,6 +125,7 @@ val previewActivityItems = buildList {
121125
preimage = null,
122126
createdAt = lastYear.epochSecond(),
123127
updatedAt = lastYear.epochSecond(),
128+
seenAt = null,
124129
)
125130
)
126131
)

app/src/main/java/to/bitkit/ui/sheets/GiftViewModel.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ class GiftViewModel @Inject constructor(
110110
preimage = null,
111111
createdAt = nowTimestamp,
112112
updatedAt = null,
113+
seenAt = null,
113114
)
114115

115116
activityRepo.insertActivity(Activity.Lightning(lightningActivity)).getOrThrow()

app/src/test/java/to/bitkit/repositories/ActivityRepoTest.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ class ActivityRepoTest : BaseUnitTest() {
7676
channelId = null,
7777
transferTxId = null,
7878
createdAt = null,
79-
updatedAt = null
79+
updatedAt = null,
80+
seenAt = null,
8081
)
8182

8283
@Suppress("LongParameterList")

app/src/test/java/to/bitkit/ui/sheets/BoostTransactionViewModelTest.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ class BoostTransactionViewModelTest : BaseUnitTest() {
5858
channelId = null,
5959
transferTxId = null,
6060
createdAt = null,
61-
updatedAt = null
61+
updatedAt = null,
62+
seenAt = null,
6263
)
6364

6465
private val mockActivitySent = Activity.Onchain(v1 = mockOnchainActivity)

0 commit comments

Comments
 (0)