You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9f211ca
Browse filesBrowse the repository at this point in the historyBrowse files
Convert `HostDefaultKey` from an expect class to a common interface.
This enables keys to support multiple lookup mechanisms through
interface composition rather than being restricted by single
inheritance, allowing a single key to target various host systems.
Introduce `ViewTreeHostDefaultKey` on Android to provide a standard
contract for keys resolving via View tags. Update the provider
logic to leverage this hierarchy for type-safe retrieval.
RelNote: "Convert HostDefaultKey to an interface to allow keys to
implement multiple lookup mechanisms, such as Android ViewTree
tags, improving extensibility for custom hosting environments."
Bug: 478146897
Test: existing passes
Change-Id: I917a2b6d3e3b9e2bf6c44c0e63815e663940ec8b
method @BytecodeOnly public static <V> void update-impl(androidx.compose.runtime.Composer!, V!, kotlin.jvm.functions.Function2<? super T!,? super V!,kotlin.Unit!>);
810
806
}
811
807
808
+
public interface ViewTreeHostDefaultKey<T> extends androidx.compose.runtime.HostDefaultKey<T> {
809
+
method @InaccessibleFromKotlin @IdRes public int getTagKey();
810
+
property @IdRes public abstract int tagKey;
811
+
}
812
+
812
813
@Deprecated public typealias CheckResult = androidx.annotation.CheckResult;
final class <#A: kotlin/Any?> androidx.compose.runtime/ProvidedValue { // androidx.compose.runtime/ProvidedValue|null[0]
739
737
final val compositionLocal // androidx.compose.runtime/ProvidedValue.compositionLocal|{}compositionLocal[0]
740
738
final fun <get-compositionLocal>(): androidx.compose.runtime/CompositionLocal<#A> // androidx.compose.runtime/ProvidedValue.compositionLocal.<get-compositionLocal>|<get-compositionLocal>(){}[0]
@@ -1193,7 +1191,6 @@ final val androidx.compose.runtime/androidx_compose_runtime_CompositionLocal$sta
1193
1191
final val androidx.compose.runtime/androidx_compose_runtime_CompositionLocalContext$stableprop // androidx.compose.runtime/androidx_compose_runtime_CompositionLocalContext$stableprop|#static{}androidx_compose_runtime_CompositionLocalContext$stableprop[0]
1194
1192
final val androidx.compose.runtime/androidx_compose_runtime_DerivedSnapshotState_ResultRecord$stableprop // androidx.compose.runtime/androidx_compose_runtime_DerivedSnapshotState_ResultRecord$stableprop|#static{}androidx_compose_runtime_DerivedSnapshotState_ResultRecord$stableprop[0]
1195
1193
final val androidx.compose.runtime/androidx_compose_runtime_DisposableEffectScope$stableprop // androidx.compose.runtime/androidx_compose_runtime_DisposableEffectScope$stableprop|#static{}androidx_compose_runtime_DisposableEffectScope$stableprop[0]
1196
-
final val androidx.compose.runtime/androidx_compose_runtime_HostDefaultKey$stableprop // androidx.compose.runtime/androidx_compose_runtime_HostDefaultKey$stableprop|#static{}androidx_compose_runtime_HostDefaultKey$stableprop[0]
1197
1194
final val androidx.compose.runtime/androidx_compose_runtime_MovableContent$stableprop // androidx.compose.runtime/androidx_compose_runtime_MovableContent$stableprop|#static{}androidx_compose_runtime_MovableContent$stableprop[0]
1198
1195
final val androidx.compose.runtime/androidx_compose_runtime_MovableContentState$stableprop // androidx.compose.runtime/androidx_compose_runtime_MovableContentState$stableprop|#static{}androidx_compose_runtime_MovableContentState$stableprop[0]
1199
1196
final val androidx.compose.runtime/androidx_compose_runtime_MovableContentStateReference$stableprop // androidx.compose.runtime/androidx_compose_runtime_MovableContentStateReference$stableprop|#static{}androidx_compose_runtime_MovableContentStateReference$stableprop[0]
@@ -1403,7 +1400,6 @@ final fun androidx.compose.runtime/androidx_compose_runtime_CompositionLocal$sta
1403
1400
final fun androidx.compose.runtime/androidx_compose_runtime_CompositionLocalContext$stableprop_getter(): kotlin/Int // androidx.compose.runtime/androidx_compose_runtime_CompositionLocalContext$stableprop_getter|androidx_compose_runtime_CompositionLocalContext$stableprop_getter(){}[0]
1404
1401
final fun androidx.compose.runtime/androidx_compose_runtime_DerivedSnapshotState_ResultRecord$stableprop_getter(): kotlin/Int // androidx.compose.runtime/androidx_compose_runtime_DerivedSnapshotState_ResultRecord$stableprop_getter|androidx_compose_runtime_DerivedSnapshotState_ResultRecord$stableprop_getter(){}[0]
1405
1402
final fun androidx.compose.runtime/androidx_compose_runtime_DisposableEffectScope$stableprop_getter(): kotlin/Int // androidx.compose.runtime/androidx_compose_runtime_DisposableEffectScope$stableprop_getter|androidx_compose_runtime_DisposableEffectScope$stableprop_getter(){}[0]
1406
-
final fun androidx.compose.runtime/androidx_compose_runtime_HostDefaultKey$stableprop_getter(): kotlin/Int // androidx.compose.runtime/androidx_compose_runtime_HostDefaultKey$stableprop_getter|androidx_compose_runtime_HostDefaultKey$stableprop_getter(){}[0]
1407
1403
final fun androidx.compose.runtime/androidx_compose_runtime_MovableContent$stableprop_getter(): kotlin/Int // androidx.compose.runtime/androidx_compose_runtime_MovableContent$stableprop_getter|androidx_compose_runtime_MovableContent$stableprop_getter(){}[0]
1408
1404
final fun androidx.compose.runtime/androidx_compose_runtime_MovableContentState$stableprop_getter(): kotlin/Int // androidx.compose.runtime/androidx_compose_runtime_MovableContentState$stableprop_getter|androidx_compose_runtime_MovableContentState$stableprop_getter(){}[0]
1409
1405
final fun androidx.compose.runtime/androidx_compose_runtime_MovableContentStateReference$stableprop_getter(): kotlin/Int // androidx.compose.runtime/androidx_compose_runtime_MovableContentStateReference$stableprop_getter|androidx_compose_runtime_MovableContentStateReference$stableprop_getter(){}[0]
Copy file name to clipboardExpand all lines: compose/runtime/runtime/src/nonAndroidMain/kotlin/androidx/compose/runtime/HostDefaultProvider.nonAndroid.kt
Copy file name to clipboardExpand all lines: compose/runtime/runtime/src/nonEmulatorCommonTest/kotlin/androidx/compose/runtime/CompositionLocalTests.kt
0 commit comments