Fixed
Status Update
Comments
se...@google.com <se...@google.com>
ap...@google.com <ap...@google.com> #2
Project: platform/frameworks/support
Branch: androidx-main
Author: Leland Richardson <
Link:
Add onRectChanged modifier and corresponding callback support to rect tracking
Expand for full commit details
Add onRectChanged modifier and corresponding callback support to rect tracking
Fixes: 372765423
Fixes: 372757007
Fixes: 372994338
Relnote:"""
Added Modifier.onRectChanged API which is an API that allows one to subscribe to the root/window/screen-relative position and size of a
LayoutNode. The API solves many use cases that the existing onGloballyPositioned modifier does, however it does so with much less
overhead and the API comes with facilities to debounce and throttle the callback per what one's use case demands.
"""
Change-Id: Id28c7c6c52ce3b18c9ac8c83cde48111a312cfc9
Files:
- M
compose/ui/ui/api/current.txt
- M
compose/ui/ui/api/restricted_current.txt
- A
compose/ui/ui/src/androidInstrumentedTest/kotlin/androidx/compose/ui/layout/OnGlobalRectChangedTest.kt
- M
compose/ui/ui/src/androidInstrumentedTest/kotlin/androidx/compose/ui/layout/OnGloballyPositionedTest.kt
- A
compose/ui/ui/src/androidMain/kotlin/androidx/compose/ui/Actual.android.kt
- M
compose/ui/ui/src/androidMain/kotlin/androidx/compose/ui/platform/AndroidComposeView.android.kt
- M
compose/ui/ui/src/androidUnitTest/kotlin/androidx/compose/ui/spatial/RectListTest.kt
- A
compose/ui/ui/src/androidUnitTest/kotlin/androidx/compose/ui/spatial/ThrottledCallbacksTest.kt
- M
compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/Expect.kt
- A
compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/layout/OnRectChangedModifier.kt
- M
compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/node/MeasureAndLayoutDelegate.kt
- A
compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/spatial/RectInfo.kt
- M
compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/spatial/RectList.kt
- M
compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/spatial/RectManager.kt
- A
compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/spatial/ThrottledCallbacks.kt
- M
compose/ui/ui/src/commonStubsMain/kotlin/androidx/compose/ui/Actual.commonStubs.kt
Hash: ce33454f34929182e1109f6254144d390f27e7c8
Date: Wed Oct 16 13:18:34 2024
ap...@google.com <ap...@google.com> #3
The following release(s) address this bug.It is possible this bug has only been partially addressed:
androidx.compose.ui:ui:1.8.0-alpha05
androidx.compose.ui:ui-android:1.8.0-alpha05
androidx.compose.ui:ui-jvmstubs:1.8.0-alpha05
androidx.compose.ui:ui-linuxx64stubs:1.8.0-alpha05
ap...@google.com <ap...@google.com> #4
Project: platform/frameworks/support
Branch: androidx-main
commit 0490e25b6d1a7e57410d3c80f77720542d3a6150
Author: Sean McQuillan <seanmcq@google.com>
Date: Tue Dec 06 11:00:27 2022
Promote DeviceFontFamilyName to stable API
This is used to lookup fonts from on-device
Test: n/a
Bug: b/261435386
Relnote: "DeviceFontFamilyName is now a stable API."
Change-Id: I8b640d1d7880dcd7c581f53ff71baf2af0e80860
M compose/ui/ui-text/api/current.txt
M compose/ui/ui-text/api/public_plus_experimental_current.txt
M compose/ui/ui-text/api/restricted_current.txt
M compose/ui/ui-text/src/androidMain/kotlin/androidx/compose/ui/text/font/DeviceFontFamilyNameFont.kt
https://android-review.googlesource.com/2328890
Branch: androidx-main
commit 0490e25b6d1a7e57410d3c80f77720542d3a6150
Author: Sean McQuillan <seanmcq@google.com>
Date: Tue Dec 06 11:00:27 2022
Promote DeviceFontFamilyName to stable API
This is used to lookup fonts from on-device
Test: n/a
Bug:
Relnote: "DeviceFontFamilyName is now a stable API."
Change-Id: I8b640d1d7880dcd7c581f53ff71baf2af0e80860
M compose/ui/ui-text/api/current.txt
M compose/ui/ui-text/api/public_plus_experimental_current.txt
M compose/ui/ui-text/api/restricted_current.txt
M compose/ui/ui-text/src/androidMain/kotlin/androidx/compose/ui/text/font/DeviceFontFamilyNameFont.kt
ap...@google.com <ap...@google.com> #5
Project: platform/frameworks/support
Branch: androidx-main
commit 16b130bf7dcfe07f1166c4c74816ddada1c90a4e
Author: Sean McQuillan <seanmcq@google.com>
Date: Tue Dec 06 10:53:10 2022
Remove deprecated (experimental) font constructor
Test: n/a
Relnote: "Removed deprecated experimental font constructor."
Bug: b/261435386
Change-Id: I8a7245a0eb552b0df8c6bc9344451ccca0d2d2b1
M compose/ui/ui-text/api/public_plus_experimental_current.txt
M compose/ui/ui-text/src/androidAndroidTest/kotlin/androidx/compose/ui/text/font/AndroidFontTest.kt
M compose/ui/ui-text/src/androidMain/kotlin/androidx/compose/ui/text/font/AndroidFont.kt
https://android-review.googlesource.com/2328889
Branch: androidx-main
commit 16b130bf7dcfe07f1166c4c74816ddada1c90a4e
Author: Sean McQuillan <seanmcq@google.com>
Date: Tue Dec 06 10:53:10 2022
Remove deprecated (experimental) font constructor
Test: n/a
Relnote: "Removed deprecated experimental font constructor."
Bug:
Change-Id: I8a7245a0eb552b0df8c6bc9344451ccca0d2d2b1
M compose/ui/ui-text/api/public_plus_experimental_current.txt
M compose/ui/ui-text/src/androidAndroidTest/kotlin/androidx/compose/ui/text/font/AndroidFontTest.kt
M compose/ui/ui-text/src/androidMain/kotlin/androidx/compose/ui/text/font/AndroidFont.kt
ap...@google.com <ap...@google.com> #6
Project: platform/frameworks/support
Branch: androidx-main
commit 1f01456faf1bd74c9107139dfb4ad86e7cf9b9c0
Author: Sean McQuillan <seanmcq@google.com>
Date: Tue Dec 06 10:40:13 2022
Promote createFontFamilyResolver to stable
CoroutineContext API has shown high usage among developres debugging async font loading. Keeping the API as stable.
Bug: b/261435386
Test: n/a
Relnote: "createFontFamilyResolver(context, coroutineContext) is now stable API. This can be used to catch uncaught exceptions during async font loading."
Change-Id: Ibb481cae9c40a1e3ed26e7da911be24fab1788b6
M compose/ui/ui-text/api/current.txt
M compose/ui/ui-text/api/public_plus_experimental_current.txt
M compose/ui/ui-text/api/restricted_current.txt
M compose/ui/ui-text/src/androidMain/kotlin/androidx/compose/ui/text/font/FontFamilyResolver.android.kt
M compose/ui/ui-text/src/androidMain/kotlin/androidx/compose/ui/text/font/PlatformFontFamilyTypefaceAdapter.android.kt
M compose/ui/ui-text/src/commonMain/kotlin/androidx/compose/ui/text/font/FontFamilyResolver.kt
M compose/ui/ui-text/src/commonMain/kotlin/androidx/compose/ui/text/font/FontListFontFamilyTypefaceAdapter.kt
M compose/ui/ui-text/src/skikoMain/kotlin/androidx/compose/ui/text/font/PlatformFontFamilyTypefaceAdapter.skiko.kt
https://android-review.googlesource.com/2328886
Branch: androidx-main
commit 1f01456faf1bd74c9107139dfb4ad86e7cf9b9c0
Author: Sean McQuillan <seanmcq@google.com>
Date: Tue Dec 06 10:40:13 2022
Promote createFontFamilyResolver to stable
CoroutineContext API has shown high usage among developres debugging async font loading. Keeping the API as stable.
Bug:
Test: n/a
Relnote: "createFontFamilyResolver(context, coroutineContext) is now stable API. This can be used to catch uncaught exceptions during async font loading."
Change-Id: Ibb481cae9c40a1e3ed26e7da911be24fab1788b6
M compose/ui/ui-text/api/current.txt
M compose/ui/ui-text/api/public_plus_experimental_current.txt
M compose/ui/ui-text/api/restricted_current.txt
M compose/ui/ui-text/src/androidMain/kotlin/androidx/compose/ui/text/font/FontFamilyResolver.android.kt
M compose/ui/ui-text/src/androidMain/kotlin/androidx/compose/ui/text/font/PlatformFontFamilyTypefaceAdapter.android.kt
M compose/ui/ui-text/src/commonMain/kotlin/androidx/compose/ui/text/font/FontFamilyResolver.kt
M compose/ui/ui-text/src/commonMain/kotlin/androidx/compose/ui/text/font/FontListFontFamilyTypefaceAdapter.kt
M compose/ui/ui-text/src/skikoMain/kotlin/androidx/compose/ui/text/font/PlatformFontFamilyTypefaceAdapter.skiko.kt
ap...@google.com <ap...@google.com> #7
Project: platform/frameworks/support
Branch: androidx-main
commit 86282a77fe4f637892c690640af6310584a670c4
Author: Sean McQuillan <seanmcq@google.com>
Date: Tue Dec 06 10:21:58 2022
Promote Font.loadingStrategy to stable
Also stabilize (internal) max async timeout.
Bug: b/261435386
Test: n/a (is just annotation removal)
Relnote: "Promote Font.loadingStrategy to stable API."
Change-Id: I5937cfa2e03047eb3affd2c07fb4f75eb35faa97
M compose/ui/ui-text/api/current.txt
M compose/ui/ui-text/api/public_plus_experimental_current.txt
M compose/ui/ui-text/api/restricted_current.txt
M compose/ui/ui-text/src/commonMain/kotlin/androidx/compose/ui/text/font/Font.kt
https://android-review.googlesource.com/2328479
Branch: androidx-main
commit 86282a77fe4f637892c690640af6310584a670c4
Author: Sean McQuillan <seanmcq@google.com>
Date: Tue Dec 06 10:21:58 2022
Promote Font.loadingStrategy to stable
Also stabilize (internal) max async timeout.
Bug:
Test: n/a (is just annotation removal)
Relnote: "Promote Font.loadingStrategy to stable API."
Change-Id: I5937cfa2e03047eb3affd2c07fb4f75eb35faa97
M compose/ui/ui-text/api/current.txt
M compose/ui/ui-text/api/public_plus_experimental_current.txt
M compose/ui/ui-text/api/restricted_current.txt
M compose/ui/ui-text/src/commonMain/kotlin/androidx/compose/ui/text/font/Font.kt
na...@google.com <na...@google.com> #8
The following release(s) address this bug.It is possible this bug has only been partially addressed:
androidx.compose.ui:ui-text:1.4.0-alpha04
androidx.compose.ui:ui-text-google-fonts:1.4.0-alpha04
Description
The following Experimental APIs have existed for several releases.
Please consider stabilising or removing these APIs: