Olivier Patry
08/29/2023, 5:16 PMPager
Warning: com.arkivanov.decompose.extensions.compose.jetbrains.pages.ComposableSingletons$PagesKt$lambda-1$1: can't find referenced method 'void HorizontalPager-AlbwjTQ(int,androidx.compose.ui.Modifier,androidx.compose.foundation.pager.PagerState,androidx.compose.foundation.layout.PaddingValues,androidx.compose.foundation.pager.PageSize,int,float,androidx.compose.ui.Alignment$Vertical,androidx.compose.foundation.gestures.snapping.SnapFlingBehavior,boolean,boolean,kotlin.jvm.functions.Function1,androidx.compose.ui.input.nestedscroll.NestedScrollConnection,kotlin.jvm.functions.Function3,androidx.compose.runtime.Composer,int,int,int)' in program class androidx.compose.foundation.pager.PagerKt
For the record, the warning is in fact an error and fails the build which seems legit here.
(./gradlew runReleaseDistributable
)Arkadii Ivanov
08/29/2023, 5:24 PMPages
Composable function, you will have a runtime crash. Not sure why build fails, though. If you are not using Pages
, it should be safe to suppress that error (if possible).Olivier Patry
08/29/2023, 5:43 PMPager
code.
When updating to Compose 1.5.0, I only had to change the call to the scroll state which was not compiling.
Maybe, under the hood, the Pager
code I use uses Pages
, I'll check that tomorrow.
Do you have plans to deliver a Decompose build compatible with Compose 1.5.0?
(Obviously no pressure! Just to determine what should I do in short timeframe, wait for Decompose update or stay on Compose 1.4.x)Arkadii Ivanov
08/29/2023, 5:44 PMArkadii Ivanov
08/29/2023, 5:45 PMOlivier Patry
08/30/2023, 8:18 AMHorizontalPager
and rememberPagerState
works in debug with Decompose 2.0.1
and Compose 1.5.0
but ProGuard fails like mentioned.
I'm only using these API from the Pager feature.
Using Decompose 2.1.0-alpha-07
with Compose 1.5.0
works as well and fixes the ProGuard issue in release builds.