-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Merge CircuitState & CircuitUiEvent to a single Contract file (#…
…409) * chore: move CircuitState & CircuitUiEvent to a Contract file * chore: fix detekt issues
- Loading branch information
Showing
41 changed files
with
142 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 0 additions & 8 deletions
8
.../src/main/kotlin/dev/mslalith/focuslauncher/feature/appdrawerpage/AppDrawerPageUiEvent.kt
This file was deleted.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
...tions/AppMoreOptionsBottomSheetUiEvent.kt → ...ions/AppMoreOptionsBottomSheetContract.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 0 additions & 9 deletions
9
...slauncher/feature/appdrawerpage/bottomsheet/moreoptions/AppMoreOptionsBottomSheetState.kt
This file was deleted.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
...e/UpdateAppDisplayNameBottomSheetState.kt → ...pdateAppDisplayNameBottomSheetContract.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
package dev.mslalith.focuslauncher.feature.appdrawerpage.bottomsheet.updateappdisplayname | ||
|
||
import com.slack.circuit.runtime.CircuitUiEvent | ||
import com.slack.circuit.runtime.CircuitUiState | ||
import dev.mslalith.focuslauncher.core.model.app.App | ||
|
||
data class UpdateAppDisplayNameBottomSheetState( | ||
val app: App, | ||
val eventSink: (UpdateAppDisplayNameBottomSheetUiEvent) -> Unit | ||
) : CircuitUiState | ||
|
||
sealed interface UpdateAppDisplayNameBottomSheetUiEvent : CircuitUiEvent { | ||
data class UpdateDisplayName(val displayName: String) : UpdateAppDisplayNameBottomSheetUiEvent | ||
} |
7 changes: 0 additions & 7 deletions
7
.../appdrawerpage/bottomsheet/updateappdisplayname/UpdateAppDisplayNameBottomSheetUiEvent.kt
This file was deleted.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
.../ClockWidgetSettingsBottomSheetUiEvent.kt → ...ClockWidgetSettingsBottomSheetContract.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 0 additions & 13 deletions
13
...er/feature/clock24/bottomsheet/clockwidgetsettings/ClockWidgetSettingsBottomSheetState.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 0 additions & 7 deletions
7
...kotlin/dev/mslalith/focuslauncher/feature/clock24/widget/ClockWidgetUiComponentUiEvent.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 0 additions & 7 deletions
7
...in/kotlin/dev/mslalith/focuslauncher/feature/favorites/FavoritesListUiComponentUiEvent.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
...ails/LunarPhaseDetailsBottomSheetState.kt → ...s/LunarPhaseDetailsBottomSheetContract.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
package dev.mslalith.focuslauncher.feature.lunarcalendar.bottomsheet.lunarphasedetails | ||
|
||
import com.slack.circuit.runtime.CircuitUiEvent | ||
import com.slack.circuit.runtime.CircuitUiState | ||
import dev.mslalith.focuslauncher.core.common.model.State | ||
import dev.mslalith.focuslauncher.core.model.lunarphase.LunarPhaseDetails | ||
|
||
data class LunarPhaseDetailsBottomSheetState( | ||
val lunarPhaseDetails: State<LunarPhaseDetails> | ||
) : CircuitUiState | ||
|
||
sealed interface LunarPhaseDetailsBottomSheetUiEvent : CircuitUiEvent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 0 additions & 11 deletions
11
...lendar/bottomsheet/lunarphasewidgetsettings/LunarPhaseWidgetSettingsBottomSheetUiEvent.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 0 additions & 9 deletions
9
...ture/quoteforyou/bottomsheet/quotewidgetsettings/QuoteWidgetSettingsBottomSheetUiEvent.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 0 additions & 7 deletions
7
...in/dev/mslalith/focuslauncher/feature/quoteforyou/widget/QuoteForYouUiComponentUiEvent.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 0 additions & 12 deletions
12
...page/src/main/kotlin/dev/mslalith/focuslauncher/feature/settingspage/SettingsPageState.kt
This file was deleted.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
...gs/AppDrawerSettingsBottomSheetUiEvent.kt → ...s/AppDrawerSettingsBottomSheetContract.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 0 additions & 13 deletions
13
...r/feature/settingspage/bottomsheet/appdrawersettings/AppDrawerSettingsBottomSheetState.kt
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...ncher/feature/theme/LauncherThemeState.kt → ...er/feature/theme/LauncherThemeContract.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
package dev.mslalith.focuslauncher.feature.theme | ||
|
||
import com.slack.circuit.runtime.CircuitUiEvent | ||
import com.slack.circuit.runtime.CircuitUiState | ||
import dev.mslalith.focuslauncher.core.model.Theme | ||
|
||
data class LauncherThemeState( | ||
val theme: Theme | ||
) : CircuitUiState | ||
|
||
sealed interface LauncherThemeUiEvent : CircuitUiEvent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 0 additions & 8 deletions
8
...ocuslauncher/feature/theme/bottomsheet/themeselection/ThemeSelectionBottomSheetUiEvent.kt
This file was deleted.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
...cuslauncher/screens/about/AboutUiEvent.kt → ...uslauncher/screens/about/AboutContract.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 0 additions & 7 deletions
7
screens/about/src/main/kotlin/dev/mslalith/focuslauncher/screens/about/AboutState.kt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.