Skip to content

Commit 479a5a5

Browse files
Merge pull request #417 from VPlanPlus-Project/train/v0.2.18-production
Train/v0.2.18 production
2 parents 3023a23 + 7092af7 commit 479a5a5

File tree

4 files changed

+25
-16
lines changed

4 files changed

+25
-16
lines changed

composeApp/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import java.util.Base64
55
import java.util.Properties
66

77
object ApplicationConfig {
8-
const val APP_VERSION_NAME = "0.2.17-production"
9-
const val APP_VERSION_CODE = 227
8+
const val APP_VERSION_NAME = "0.2.18-production"
9+
const val APP_VERSION_CODE = 237
1010
}
1111

1212
val localProperties = Properties().apply {

composeApp/src/commonMain/kotlin/plus/vplan/app/App.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ const val APP_REDIRECT_URI = "vpp://app/auth/"
4949
val VPP_ID_AUTH_URL = URLBuilder(currentConfiguration.authUrl).apply {
5050
appendPathSegments("authorize")
5151
parameters.append("client_id", APP_ID)
52-
parameters.append("client_secret", APP_SECRET)
5352
parameters.append("redirect_uri", APP_REDIRECT_URI)
5453
parameters.append("device_name", getSystemInfo().deviceName)
5554
}.buildString()

composeApp/src/commonMain/kotlin/plus/vplan/app/feature/settings/page/developer/timetable_debug/TimetableDebugScreen.kt

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import androidx.compose.material3.ExperimentalMaterial3Api
1212
import androidx.compose.material3.HorizontalDivider
1313
import androidx.compose.material3.Icon
1414
import androidx.compose.material3.IconButton
15+
import androidx.compose.material3.MaterialTheme
1516
import androidx.compose.material3.Scaffold
1617
import androidx.compose.material3.Text
1718
import androidx.compose.material3.TopAppBar
@@ -92,20 +93,29 @@ private fun TimetableDebugContent(
9293
.fillMaxWidth()
9394
) {
9495
state.weeks.forEach { week ->
95-
Text(
96-
text = "Woche KW ${week.week.calendarWeek} (SW ${week.week.weekIndex})"
97-
)
98-
week.timetableMetadata?.let {
96+
Column(
97+
modifier = Modifier.fillMaxWidth()
98+
) {
9999
Text(
100-
text = buildString {
101-
append(it.dataState.toString())
102-
append(" ")
103-
append(it.id.toHexDashString())
104-
},
105-
maxLines = 1,
106-
overflow = TextOverflow.Clip,
107-
modifier = Modifier.padding(start = 8.dp)
100+
text = "Woche KW ${week.week.calendarWeek} (SW ${week.week.weekIndex})"
108101
)
102+
if (week.timetableMetadata == null) {
103+
Text(
104+
text = "No metadata available",
105+
color = MaterialTheme.colorScheme.outline
106+
)
107+
} else {
108+
Text(
109+
text = buildString {
110+
append(week.timetableMetadata.dataState.toString())
111+
append(" ")
112+
append(week.timetableMetadata.id.toHexDashString())
113+
},
114+
maxLines = 1,
115+
overflow = TextOverflow.Clip,
116+
modifier = Modifier.padding(start = 8.dp)
117+
)
118+
}
109119
}
110120

111121
HorizontalDivider(Modifier.padding(4.dp))

composeApp/src/commonMain/kotlin/plus/vplan/app/feature/sync/domain/usecase/sp24/UpdateTimetableUseCase.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class UpdateTimetableUseCase(
7777
}
7878

7979
weeks.forEach forEachWeek@{ week ->
80-
if (week.relativeTime == WeekState.RelativeTime.Past && !forceUpdate) return@forEachWeek
80+
if ((week.relativeTime == WeekState.RelativeTime.Past && week.hasData != Stundenplan24Repository.HasData.Unknown) && !forceUpdate) return@forEachWeek
8181
if (week.hasData != Stundenplan24Repository.HasData.Yes || forceUpdate) {
8282
LOGGER.d {
8383
buildString {

0 commit comments

Comments
 (0)