Skip to content

Commit 9639658

Browse files
committed
feat: upgrade libpretixsync
1 parent 9161ad8 commit 9639658

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

pretixscan/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ plugins {
88
alias(libs.plugins.app.cash.sqldelight) apply false
99
alias(libs.plugins.osdetector) apply false
1010
alias(libs.plugins.composeHotReload) apply false
11+
alias(libs.plugins.gmazzo) apply false
1112
}
1213

1314
buildscript {

pretixscan/composeApp/src/commonMain/kotlin/eu/pretix/desktop/cache/SqlDelightUtils.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ fun createSyncDatabase(
3535
price_after_voucherAdapter = bigDecimalAdapter,
3636
tax_rateAdapter = bigDecimalAdapter,
3737
tax_valueAdapter = bigDecimalAdapter,
38+
line_price_grossAdapter = bigDecimalAdapter,
3839
),
3940
ReceiptAdapter = Receipt.Adapter(
4041
datetime_closedAdapter = dateAdapter,
@@ -48,5 +49,9 @@ fun createSyncDatabase(
4849
date_toAdapter = dateAdapter,
4950
),
5051
QueuedCheckInAdapter = QueuedCheckIn.Adapter(datetimeAdapter = dateAdapter),
52+
DiscountAdapter = Discount.Adapter(
53+
available_fromAdapter = dateAdapter,
54+
available_untilAdapter = dateAdapter,
55+
),
5156
)
5257
}

pretixscan/gradle/libs.versions.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ kotlinx-serialization-json = "1.8.0"
2626
datastore = "1.1.7"
2727
mockk = "1.14.6"
2828
okhttp = "4.9.3"
29+
gmazzo = "5.7.1"
2930

3031
[libraries]
3132
apache-pdfbox = { module = "org.apache.pdfbox:pdfbox", version.ref = "pdfbox" }
@@ -68,6 +69,7 @@ okhttp = { module = "com.squareup.okhttp3:okhttp", version.ref = "okhttp" }
6869

6970
[plugins]
7071
composeHotReload = { id = "org.jetbrains.compose.hot-reload", version.ref = "composeHotReload" }
72+
gmazzo = { id = "com.github.gmazzo.buildconfig", version.ref = "gmazzo" }
7173
jetbrainsCompose = { id = "org.jetbrains.compose", version.ref = "compose-plugin" }
7274
compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
7375
kotlinMultiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }

0 commit comments

Comments
 (0)