[go: nahoru, domu]

Remove Recomposer.current; migrate usages

The Recomposer.current singleton is no more, replaced by window-scoped
recomposers that are lifecycle-aware.

Relnote: "Removed Recomposer.current(). [Abstract]ComposeView now
default to lazily created, window-scoped Recomposers driven by the
ViewTreeLifecycleOwner for the window. Recomposition and
withFrameNanos-based animation ticks are paused while the host Lifecycle
is stopped."

Test: Existing tests modified for new behavior expectations
Change-Id: I38e11565b2fc776966b6b6984aceafd8a1e6fed1
diff --git a/compose/ui/ui/api/public_plus_experimental_current.txt b/compose/ui/ui/api/public_plus_experimental_current.txt
index a149050..ead850e 100644
--- a/compose/ui/ui/api/public_plus_experimental_current.txt
+++ b/compose/ui/ui/api/public_plus_experimental_current.txt
@@ -2155,12 +2155,15 @@
     method public final void disposeComposition();
     method public final boolean getHasComposition();
     method protected boolean getShouldCreateCompositionOnAttachedToWindow();
+    method public final boolean getShowLayoutBounds();
     method protected final void onLayout(boolean changed, int left, int top, int right, int bottom);
     method protected final void onMeasure(int widthMeasureSpec, int heightMeasureSpec);
     method public final void setParentCompositionReference(androidx.compose.runtime.CompositionReference? parent);
+    method public final void setShowLayoutBounds(boolean value);
     method public final void setViewCompositionStrategy(androidx.compose.ui.platform.ViewCompositionStrategy strategy);
     property public final boolean hasComposition;
     property protected boolean shouldCreateCompositionOnAttachedToWindow;
+    property public final boolean showLayoutBounds;
   }
 
   public final class AmbientsKt {
@@ -2408,9 +2411,7 @@
   }
 
   public static final class WindowRecomposerFactory.Companion {
-    method @Deprecated public androidx.compose.ui.platform.WindowRecomposerFactory getGlobal();
     method public androidx.compose.ui.platform.WindowRecomposerFactory getLifecycleAware();
-    property @Deprecated public final androidx.compose.ui.platform.WindowRecomposerFactory Global;
     property public final androidx.compose.ui.platform.WindowRecomposerFactory LifecycleAware;
   }
 
@@ -2427,10 +2428,8 @@
   }
 
   public final class WrapperKt {
-    method public static androidx.compose.runtime.Composition setContent(androidx.activity.ComponentActivity, optional androidx.compose.runtime.CompositionReference parent, kotlin.jvm.functions.Function0<kotlin.Unit> content);
-    method @Deprecated public static androidx.compose.runtime.Composition setContent(android.view.ViewGroup, optional androidx.compose.runtime.CompositionReference parent, kotlin.jvm.functions.Function0<kotlin.Unit> content);
-    method @Deprecated public static androidx.compose.runtime.Composition setViewContent(android.view.ViewGroup, optional androidx.compose.runtime.CompositionReference parent, kotlin.jvm.functions.Function0<kotlin.Unit> composable);
-    method @Deprecated public static androidx.compose.runtime.Composition setViewContent(android.app.Activity, kotlin.jvm.functions.Function0<kotlin.Unit> composable);
+    method public static void setContent(androidx.activity.ComponentActivity, optional androidx.compose.runtime.CompositionReference? parent, kotlin.jvm.functions.Function0<kotlin.Unit> content);
+    method @Deprecated public static androidx.compose.runtime.Composition setContent(android.view.ViewGroup, androidx.compose.runtime.CompositionReference parent, kotlin.jvm.functions.Function0<kotlin.Unit> content);
   }
 
 }