mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-05-09 01:44:24 +02:00
chore: bump compose
This commit is contained in:
parent
4c1ad868a9
commit
cee2240cdc
@ -9,13 +9,13 @@ plugins {
|
||||
|
||||
android {
|
||||
namespace = "app.revanced.manager"
|
||||
compileSdk = 33
|
||||
compileSdk = 34
|
||||
buildToolsVersion = "33.0.2"
|
||||
|
||||
defaultConfig {
|
||||
applicationId = "app.revanced.manager"
|
||||
minSdk = 26
|
||||
targetSdk = 33
|
||||
targetSdk = 34
|
||||
versionCode = 1
|
||||
versionName = "0.0.1"
|
||||
resourceConfigurations.addAll(listOf(
|
||||
|
@ -65,7 +65,12 @@ fun DashboardScreen(
|
||||
val availablePatches by vm.availablePatches.collectAsStateWithLifecycle(0)
|
||||
val androidContext = LocalContext.current
|
||||
|
||||
val pagerState = rememberPagerState()
|
||||
val pagerState = rememberPagerState(
|
||||
initialPage = DashboardPage.DASHBOARD.ordinal,
|
||||
initialPageOffsetFraction = 0f
|
||||
) {
|
||||
DashboardPage.values().size
|
||||
}
|
||||
val composableScope = rememberCoroutineScope()
|
||||
|
||||
LaunchedEffect(pagerState.currentPage) {
|
||||
@ -186,7 +191,6 @@ fun DashboardScreen(
|
||||
}
|
||||
|
||||
HorizontalPager(
|
||||
pageCount = pages.size,
|
||||
state = pagerState,
|
||||
userScrollEnabled = true,
|
||||
modifier = Modifier.fillMaxSize(),
|
||||
|
@ -79,15 +79,19 @@ fun PatchesSelectorScreen(
|
||||
onBackClick: () -> Unit,
|
||||
vm: PatchesSelectorViewModel
|
||||
) {
|
||||
val pagerState = rememberPagerState()
|
||||
val bundles by vm.bundlesFlow.collectAsStateWithLifecycle(initialValue = emptyList())
|
||||
val pagerState = rememberPagerState(
|
||||
initialPage = 0,
|
||||
initialPageOffsetFraction = 0f
|
||||
) {
|
||||
bundles.size
|
||||
}
|
||||
val composableScope = rememberCoroutineScope()
|
||||
var search: String? by rememberSaveable {
|
||||
mutableStateOf(null)
|
||||
}
|
||||
var showBottomSheet by rememberSaveable { mutableStateOf(false) }
|
||||
|
||||
val bundles by vm.bundlesFlow.collectAsStateWithLifecycle(initialValue = emptyList())
|
||||
|
||||
if (showBottomSheet) {
|
||||
ModalBottomSheet(
|
||||
onDismissRequest = {
|
||||
@ -358,7 +362,6 @@ fun PatchesSelectorScreen(
|
||||
}
|
||||
|
||||
HorizontalPager(
|
||||
pageCount = bundles.size,
|
||||
state = pagerState,
|
||||
userScrollEnabled = true,
|
||||
pageContent = { index ->
|
||||
|
@ -1,12 +1,12 @@
|
||||
[versions]
|
||||
ktx = "1.10.1"
|
||||
ktx = "1.12.0"
|
||||
viewmodel-lifecycle = "2.6.2"
|
||||
splash-screen = "1.0.1"
|
||||
compose-activity = "1.7.2"
|
||||
compose-activity = "1.8.0"
|
||||
paging = "3.2.1"
|
||||
preferences-datastore = "1.0.0"
|
||||
work-runtime = "2.8.1"
|
||||
compose-bom = "2023.06.01"
|
||||
compose-bom = "2023.10.00"
|
||||
accompanist = "0.30.1"
|
||||
serialization = "1.6.0"
|
||||
collection = "0.3.5"
|
||||
@ -15,7 +15,7 @@ revanced-patcher = "16.0.1"
|
||||
revanced-library = "1.1.1"
|
||||
koin-version = "3.4.3"
|
||||
koin-version-compose = "3.4.6"
|
||||
reimagined-navigation = "1.4.0"
|
||||
reimagined-navigation = "1.5.0"
|
||||
ktor = "2.3.3"
|
||||
markdown = "0.5.0"
|
||||
androidGradlePlugin = "8.1.1"
|
||||
|
Loading…
x
Reference in New Issue
Block a user