Obsolete
Status Update
Comments
sy...@google.com <sy...@google.com> #2
For example:
@Composable
fun Foo(value: ImmutableCollection<Int>) {}
@Composable
fun Foo(value: PersistentList<Int>) {}
[Deleted User] <[Deleted User]> #3
PersistentList is particularly relevant for hoisting List state with similar performance characteristics as SnapshotStateList for non-hoisted List state.
ma...@gmail.com <ma...@gmail.com> #4
Given that the `immutableListOf`, `immutableSetOf` and `immutableMapOf` functions are all deprecated, it seems like we should be using the Persistent types. However this has a massive performance impact whilst this issue persists.
sw...@google.com <sw...@google.com> #5
+1 vote, PersistentList
is more useful than ImmutableList
(for updating items)
do...@kodroid.com <do...@kodroid.com> #6
Project: platform/frameworks/support
Branch: androidx-main
commit a91b7d222899c073168661eccc465034106f9895
Author: Andrew Bailey <anbailey@google.com>
Date: Mon Dec 05 11:39:51 2022
Make more of kotlinx.collections.immutable stable
This addresses two issues around stability inferencing for types in the
kotlinx.collections.immutable library. We have a few exceptions to treat
ImmutableList, ImmutableSet, and ImmutableMap as stable types, but we
don't have anything for ImmutableCollection or their Persistent
siblings. This CL adds those exceptions.
We also haven't marked any of their corresponding `*Of()` builders as
stable, which this CL also adds exceptions for.
Bug: 238057117
Bug: 254435410
Test: ClassStabilityTransformTests
Change-Id: Ie19290bfb53dd667e866681f11f266ae7bdb6201
M compose/compiler/compiler-hosted/integration-tests/src/test/java/androidx/compose/compiler/plugins/kotlin/ClassStabilityTransformTests.kt
M compose/compiler/compiler-hosted/src/main/java/androidx/compose/compiler/plugins/kotlin/analysis/Stability.kt
https://android-review.googlesource.com/2328593
Branch: androidx-main
commit a91b7d222899c073168661eccc465034106f9895
Author: Andrew Bailey <anbailey@google.com>
Date: Mon Dec 05 11:39:51 2022
Make more of kotlinx.collections.immutable stable
This addresses two issues around stability inferencing for types in the
kotlinx.collections.immutable library. We have a few exceptions to treat
ImmutableList, ImmutableSet, and ImmutableMap as stable types, but we
don't have anything for ImmutableCollection or their Persistent
siblings. This CL adds those exceptions.
We also haven't marked any of their corresponding `*Of()` builders as
stable, which this CL also adds exceptions for.
Bug: 238057117
Bug: 254435410
Test: ClassStabilityTransformTests
Change-Id: Ie19290bfb53dd667e866681f11f266ae7bdb6201
M compose/compiler/compiler-hosted/integration-tests/src/test/java/androidx/compose/compiler/plugins/kotlin/ClassStabilityTransformTests.kt
M compose/compiler/compiler-hosted/src/main/java/androidx/compose/compiler/plugins/kotlin/analysis/Stability.kt
[Deleted User] <[Deleted User]> #7
Thanks for the report! This is addressed in
is...@google.com <is...@google.com>
[Deleted User] <[Deleted User]> #8
Wonderful, can't wait. Thank you!
ad...@google.com <ad...@google.com> #9
Which compose version does include this change?
Description
The issue is described in my blog post
For me an ideal fix without reducing security would be...
Don't allow the user to downgrade device security by removing the lock screen _without_ a message saying "Apps X, Y and Z will lose data if you do this" i.e. some specific message as opposed to the current generic "device protection features will not work if you remove your [pattern|pin|password].
Showing a couple of app icons in this dialog for Key owners would be great, as at least the user is then informed as to the consequences of their actions, rather than just having their banking / other app broken on next launch without knowing why.
Would be fantastic to get someone on the team to talk about this :) Thx