Refactor: Move background image to main App composable and cleanup

This commit refactors the placement of the background image, moving it from `QuizScreen` to the main `KahootQuizApp` composable. This ensures the background is consistently applied across the app.

Additionally, this commit includes:
- Removal of unused Detekt configuration file (`ui/quiz/config/detekt/detekt.yml`).
- Minor code cleanup:
    - Removed commented-out code in `Theme.kt` and `Type.kt`.
    - Removed trailing blank lines in various domain model files.
    - Added `@file:Suppress("TooManyFunctions")` to `QuizMapper.kt`.
    - Added `@file:Suppress("MatchingDeclarationName")` to `QuizNavigation.kt`.
    - Used `1.seconds` instead of `1000` (Long) for delay in `QuizScreenViewModel`.
This commit is contained in:
2025-09-04 22:17:57 +02:00
parent 99f1c49713
commit 77a3dd9eeb
30 changed files with 47 additions and 79 deletions

View File

@@ -6,4 +6,4 @@ data class Access(
val groupRead: List<String>?,
val folderGroupIds: List<String>?,
val features: List<String>?,
)
)

View File

@@ -2,4 +2,4 @@ package dev.adriankuta.kahootquiz.domain.models
// Minimal channel info
data class Channel(val id: String?)
data class Channel(val id: String?)

View File

@@ -4,4 +4,4 @@ data class Choice(
val answer: String?,
val correct: Boolean,
val languageInfo: LanguageInfo? = null,
)
)

View File

@@ -8,4 +8,4 @@ data class ChoiceRange(
val step: Int?,
val correct: Int?,
val tolerance: Int?,
)
)

View File

@@ -5,4 +5,4 @@ package dev.adriankuta.kahootquiz.domain.models
data class ContentTags(
val curriculumCodes: List<String>?,
val generatedCurriculumCodes: List<String>?,
)
)

View File

@@ -14,4 +14,4 @@ data class CoverMetadata(
val extractedColors: List<ExtractedColor>?,
val blurhash: String?,
val crop: Crop?,
)
)

View File

@@ -6,4 +6,4 @@ data class Crop(
val origin: Point?,
val target: Point?,
val circular: Boolean?,
)
)

View File

@@ -5,4 +5,4 @@ package dev.adriankuta.kahootquiz.domain.models
data class ExtractedColor(
val swatch: String?,
val rgbHex: String?,
)
)

View File

@@ -5,4 +5,4 @@ package dev.adriankuta.kahootquiz.domain.models
data class FeaturedListMembership(
val list: String?,
val addedAt: Long?,
)
)

View File

@@ -13,4 +13,4 @@ data class ImageMetadata(
val height: Int? = null,
val effects: List<String>? = null,
val crop: Crop? = null,
)
)

View File

@@ -6,4 +6,4 @@ data class LanguageInfo(
val language: String?,
val lastUpdatedOn: Long?,
val readAloudSupported: Boolean?,
)
)

View File

@@ -6,4 +6,4 @@ data class LastEdit(
val editorUserId: String?,
val editorUsername: String?,
val editTimestamp: Long?,
)
)

View File

@@ -15,4 +15,4 @@ data class MediaItem(
val width: Int? = null,
val height: Int? = null,
val crop: Crop? = null,
)
)

View File

@@ -8,4 +8,4 @@ data class Metadata(
val featuredListMemberships: List<FeaturedListMembership>?,
val lastEdit: LastEdit?,
val versionMetadata: VersionMetadata?,
)
)

View File

@@ -5,4 +5,4 @@ package dev.adriankuta.kahootquiz.domain.models
data class Point(
val x: Int?,
val y: Int?,
)
)

View File

@@ -20,4 +20,4 @@ data class Question(
val languageInfo: LanguageInfo? = null,
val media: List<MediaItem>? = null,
val choiceRange: ChoiceRange? = null,
)
)

View File

@@ -32,4 +32,4 @@ data class Quiz(
val type: String?,
val created: Long?,
val modified: Long?,
)
)

View File

@@ -6,4 +6,4 @@ data class VersionMetadata(
val version: Int?,
val created: Long?,
val creator: String?,
)
)

View File

@@ -6,4 +6,4 @@ data class Video(
val endTime: Int?,
val service: String?,
val fullUrl: String?,
)
)