Skip to content

Commit

Permalink
Update changelog, fix "unsupported" tests, add param comment
Browse files Browse the repository at this point in the history
  • Loading branch information
elihart committed Oct 31, 2023
1 parent 9f4fac0 commit e8e1a26
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
Change Log
==========

Version 3.0.0
-------------

_2023-10-30_

Compose 1.5 is now supported. Due to breaking API changes within the Compose runtime, this version
is not compatible with earlier versions of Compose. If you need to use an earlier version of Compose,
use a 2.x version of Radiography.

The ScannableView.ComposeView has a new property, `semanticsConfigurations`, which exposes SemanticsConfiguration objects
from both Modifiers and the new Semantics tree. In newer versions of Compose, SemanticsConfigurations cannot
be read from the Modifier list, and are present only in the Semantics tree,
so if you were previously using the `modifiers` property for this you should switch to
using `semanticsConfigurations` instead.

Version 2.4.1
-------------

Expand Down
4 changes: 2 additions & 2 deletions compose-unsupported-tests/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
* Allows using a different version of Compose to validate that we degrade gracefully on apps
* built with unsupported Compose versions.
*/
val oldComposeVersion = "1.0.1"
val oldComposeVersion = "1.3.0"

android {
compileSdk = 34
Expand All @@ -31,7 +31,7 @@ android {
}

composeOptions {
kotlinCompilerExtensionVersion = oldComposeVersion
kotlinCompilerExtensionVersion = Versions.Compose
}

packaging {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ internal sealed class ComposeLayoutInfo {
*/
internal fun Group.computeLayoutInfos(
parentName: String = "",
/**
* The semantics owner for this Group. This is used to look up the semantics nodes for each
* layout node.
*/
semanticsOwner: SemanticsOwner? = null,
): Sequence<ComposeLayoutInfo> {
val name = parentName.ifBlank { this.name }.orEmpty()
Expand Down

0 comments on commit e8e1a26

Please sign in to comment.