Compare commits

...

3 Commits

Author SHA1 Message Date
Adrian Kuta
75d1ce86eb Update Apk 2025-09-05 10:32:17 +02:00
Adrian Kuta
d6e77be660 Remove dark color scheme 2025-09-05 10:29:21 +02:00
Adrian Kuta
b454701566 Refactor: Clean up QuizScreen and adjust image scaling
This commit includes several refactoring changes and a minor UI adjustment:

- **UI Layer (`ui:quiz` module):**
    - In `QuizScreen.kt`:
        - Removed the unused `timer` extension function for `LazyListScope`.
        - Applied `@Suppress("LongMethod")` to `QuizScreenSuccess` composable.
        - Simplified the `modifier` usage within the `Box` in `QuizScreenSuccess`.
    - In `components/QuestionContent.kt`:
        - Changed `ContentScale` for `AsyncImage` from `FillWidth` to `Fit`.
        - Aligned the `AsyncImage` to `Alignment.CenterHorizontally`.
- **Data Layer (`data` module):**
    - In `QuizRepositoryImpl.kt`:
        - Reordered import statements.

Note: The commit also includes changes to a binary file `App.apk`, which are not detailed here.
2025-09-05 08:26:48 +02:00
3 changed files with 1 additions and 29 deletions

BIN
App.apk

Binary file not shown.

View File

@@ -82,13 +82,6 @@ If you prefer the command line: `./gradlew assembleDebug` and then install the g
- Consider support for additional media types (video/audio), with graceful fallbacks. - Consider support for additional media types (video/audio), with graceful fallbacks.
5. Transitions between questions could be more smooth. 5. Transitions between questions could be more smooth.
## What Im Happy About
- I created and used convention plugins to reuse modules configuration.
- The architecture is clean with multi-modularity and separation of concerns.
- I leaned into Kotlin sugar where it helps readability and conciseness — I love it.
- Configured `Detekt` for static code analysis
## Extra: Related Work I Can Share ## Extra: Related Work I Can Share
I can share more complex code from my private app that is published on the Google Play Store. I can share more complex code from my private app that is published on the Google Play Store.

View File

@@ -1,20 +1,9 @@
package dev.adriankuta.kahootquiz.core.designsystem package dev.adriankuta.kahootquiz.core.designsystem
import android.os.Build
import androidx.compose.foundation.isSystemInDarkTheme import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.material3.MaterialTheme import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.darkColorScheme
import androidx.compose.material3.dynamicDarkColorScheme
import androidx.compose.material3.dynamicLightColorScheme
import androidx.compose.material3.lightColorScheme import androidx.compose.material3.lightColorScheme
import androidx.compose.runtime.Composable import androidx.compose.runtime.Composable
import androidx.compose.ui.platform.LocalContext
private val DarkColorScheme = darkColorScheme(
primary = Purple80,
secondary = PurpleGrey80,
tertiary = Pink80,
)
private val LightColorScheme = lightColorScheme( private val LightColorScheme = lightColorScheme(
primary = Purple40, primary = Purple40,
@@ -29,18 +18,8 @@ fun KahootQuizTheme(
dynamicColor: Boolean = true, dynamicColor: Boolean = true,
content: @Composable () -> Unit, content: @Composable () -> Unit,
) { ) {
val colorScheme = when {
dynamicColor && Build.VERSION.SDK_INT >= Build.VERSION_CODES.S -> {
val context = LocalContext.current
if (darkTheme) dynamicDarkColorScheme(context) else dynamicLightColorScheme(context)
}
darkTheme -> DarkColorScheme
else -> LightColorScheme
}
MaterialTheme( MaterialTheme(
colorScheme = colorScheme, colorScheme = LightColorScheme,
typography = Typography, typography = Typography,
content = content, content = content,
) )