Skip to content

Commit 9dd4723

Browse files
committed
Refactor AppRender Longs attributes
1 parent 87f5d89 commit 9dd4723

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/commonMain/kotlin/com/yesferal/hornsapp/core/data/repository/SettingsRepositoryImpl.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class SettingsRepositoryImpl(
88
private val environmentDataSource: EnvironmentDataSource,
99
private val onBoardingDataSource: OnBoardingDataSource
1010
) : SettingsRepository {
11-
override val screenDelay: Long
11+
override val screenDelay: Int
1212
get() = 300
1313

1414
override fun getEnvironments() = environmentDataSource.getEnvironments()

src/commonMain/kotlin/com/yesferal/hornsapp/core/domain/abstraction/SettingsRepository.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.yesferal.hornsapp.core.domain.abstraction
22

33
interface SettingsRepository {
4-
val screenDelay: Long
4+
val screenDelay: Int
55
fun getEnvironments(): List<Pair<String, String>>
66
fun getDefaultEnvironment(): Int
77
fun updateDefaultEnvironment(environment: Int)

src/commonMain/kotlin/com/yesferal/hornsapp/core/domain/entity/render/AppRender.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ package com.yesferal.hornsapp.core.domain.entity.render
44
interface AppRenderContract {
55
val platform: String?
66
val appId: String?
7-
val docVersion: Long?
8-
val appVersion: Long?
7+
val docVersion: Int?
8+
val appVersion: Int?
99
val screens: List<ScreenRenderContract>?
1010
val categories: List<CategoryRenderContract>?
1111
}
1212

1313
data class AppRender(
1414
override val platform: String?,
1515
override val appId: String?,
16-
override val docVersion: Long?,
17-
override val appVersion: Long?,
16+
override val docVersion: Int?,
17+
override val appVersion: Int?,
1818
override val screens: List<ScreenRenderContract>?,
1919
override val categories: List<CategoryRenderContract>?
2020
) : AppRenderContract

0 commit comments

Comments
 (0)