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