Skip to content

Commit

Permalink
Merge branch 'release/0.0.13'
Browse files Browse the repository at this point in the history
  • Loading branch information
Ribesg committed Apr 26, 2024
2 parents 0b03c5a + dc81ccd commit 4dd9fcf
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ val artifactId = "cinematic.journey"
val groupId = "com.wizbii"
val packageId = "$groupId.$artifactId"

val appVersionName = "0.0.12"
val appVersionName = "0.0.13"
val appVersionCode = appVersionName
.removeSuffix("-SNAPSHOT")
.split('.')
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ gradle = "8.7"
agp = "8.2.2"
build-config = "5.3.5"
compose = "1.6.2"
kotlinx-atomicfu = "0.23.2"
kotlinx-atomicfu = "0.24.0"
versions = "0.51.0"

# Android SDK
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,27 @@ package com.wizbii.cinematic.journey.presentation.component.top.bar

import com.arkivanov.decompose.ComponentContext
import com.wizbii.cinematic.journey.domain.use.case.dark.mode.ToggleDarkModeUseCase
import com.wizbii.cinematic.journey.isAndroid
import com.wizbii.cinematic.journey.presentation.componentCoroutineScope
import kotlinx.coroutines.launch
import org.koin.core.component.KoinComponent
import org.koin.core.component.inject

class DefaultTopBarComponent(
ctx: ComponentContext,
override val hasBackButton: Boolean,
private val displayBackButton: Boolean,
private val onBackButtonClicked: (() -> Unit)? = null,
) : TopBarComponent, KoinComponent, ComponentContext by ctx {

private val toggleDarkModeUseCase: ToggleDarkModeUseCase by inject()

private val scope = componentCoroutineScope()

override val hasBackButton: Boolean
get() = !isAndroid && displayBackButton

init {
if (hasBackButton) require(onBackButtonClicked != null) {
if (displayBackButton) require(onBackButtonClicked != null) {
"Cannot have back button without handler"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class DefaultMovieComponent(
override val topBarComponent by lazy {
DefaultTopBarComponent(
ctx = childContext("top-bar"),
hasBackButton = true,
displayBackButton = true,
onBackButtonClicked = onBackButtonClicked,
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class DefaultMoviesComponent(
override val topBarComponent by lazy {
DefaultTopBarComponent(
ctx = childContext("top-bar"),
hasBackButton = true,
displayBackButton = true,
onBackButtonClicked = onBackButtonClicked,
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class DefaultUniversesComponent(
override val topBarComponent by lazy {
DefaultTopBarComponent(
ctx = childContext("top-bar"),
hasBackButton = false,
displayBackButton = false,
)
}

Expand Down
4 changes: 2 additions & 2 deletions xcode/CinematicJourney/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>0.0.12</string>
<string>0.0.13</string>
<key>CFBundleVersion</key>
<string>12</string>
<string>13</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSRequiresIPhoneOS</key>
Expand Down

0 comments on commit 4dd9fcf

Please sign in to comment.