Skip to content

Commit

Permalink
Merge pull request #108 from thomaskioko/feature/navigation-rework-de…
Browse files Browse the repository at this point in the history
…compose

Migrate to Decompose
  • Loading branch information
thomaskioko committed Dec 9, 2023
2 parents e57a00e + 965a44f commit e8a35d5
Show file tree
Hide file tree
Showing 224 changed files with 3,617 additions and 3,539 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ traktRedirectUri: "PUT_CALLBACK_URI_HERE"
* [Kotest Assertions](https://kotest.io/docs/assertions/assertions.html) - Testing
* [SQLDelight](https://github.com/cashapp/sqldelight/) - Local storage
- [Coroutines Extensions](https://cashapp.github.io/sqldelight/js_sqlite/coroutines/) Consume queries as Flow
* [Voyager](https://github.com/adrielcafe/voyager) - A pragmatic navigation library for Jetpack Compose
* [Decompose](https://arkivanov.github.io/Decompose/) - Kotlin Multiplatform library for breaking down your code into lifecycle-aware business logic components (aka BLoC).


### iOS
Expand Down
3 changes: 2 additions & 1 deletion android-core/designsystem/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ dependencies {

implementation(projects.androidCore.resources)

implementation(libs.kenburns)
implementation(libs.androidx.core)
implementation(libs.androidx.compose.foundation)
implementation(libs.androidx.compose.material.icons)
implementation(libs.kenburns)
implementation(libs.kotlinx.collections)
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,23 @@ import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import com.thomaskioko.tvmaniac.compose.extensions.copy
import kotlinx.collections.immutable.ImmutableList
import kotlinx.collections.immutable.persistentListOf

@Composable
fun <T> LazyGridItems(
listState: LazyListState,
paddingValues: PaddingValues,
modifier: Modifier = Modifier,
items: List<T> = listOf(),
items: ImmutableList<T> = persistentListOf(),
rows: Int = 3,
hPadding: Int = 8,
hPadding: Int = 0,
itemContent: @Composable (LazyItemScope.(T) -> Unit),
) {
val chunkedList = items.chunked(rows)
LazyColumn(
state = listState,
contentPadding = paddingValues.copy(copyTop = false),
contentPadding = paddingValues,
modifier = modifier
.padding(horizontal = hPadding.dp),
verticalArrangement = Arrangement.spacedBy(4.dp),
Expand Down
22 changes: 0 additions & 22 deletions android-features/discover/build.gradle.kts

This file was deleted.

This file was deleted.

17 changes: 0 additions & 17 deletions android-features/library/build.gradle.kts

This file was deleted.

This file was deleted.

17 changes: 0 additions & 17 deletions android-features/more-shows/build.gradle.kts

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

20 changes: 0 additions & 20 deletions android-features/profile/build.gradle.kts

This file was deleted.

This file was deleted.

11 changes: 0 additions & 11 deletions android-features/search/build.gradle.kts

This file was deleted.

This file was deleted.

This file was deleted.

18 changes: 0 additions & 18 deletions android-features/season-details/build.gradle.kts

This file was deleted.

Loading

0 comments on commit e8a35d5

Please sign in to comment.