// Copyright 2004-present Facebook. All Rights Reserved.

package com.facebook.flipper.plugins.litho;

import com.facebook.flipper.plugins.inspector.DescriptorMapping;
import com.facebook.litho.DebugComponent;
import com.facebook.litho.LithoView;

public final class LithoFlipperDescriptors {

  public static void add(DescriptorMapping descriptorMapping) {
    descriptorMapping.register(LithoView.class, new LithoViewDescriptor());
    descriptorMapping.register(DebugComponent.class, new DebugComponentDescriptor());
  }
}

@@ -1,10 +1,14 @@
 /
-/
+**%0A *
  Copyrig
@@ -14,52 +14,182 @@
 ght 
-2004-present Facebook. All Rights Reserved.%0A
+(c) Facebook, Inc. and its affiliates.%0A *%0A * %3Cp%3EThis source code is licensed under the MIT license found in the LICENSE file in the root%0A * directory of this source tree.%0A */
 %0Apac
@@ -373,16 +373,122 @@
 thoView;
+%0Aimport com.facebook.litho.sections.debug.DebugSection;%0Aimport com.facebook.litho.widget.LithoRecylerView;
 %0A%0Apublic
@@ -667,16 +667,16 @@
 tor());%0A
-
     desc
@@ -756,11 +756,293 @@
 ());%0A  %7D
+%0A%0A  public static void addWithSections(DescriptorMapping descriptorMapping) %7B%0A    add(descriptorMapping);%0A    descriptorMapping.register(LithoRecylerView.class, new LithoRecyclerViewDescriptor());%0A    descriptorMapping.register(DebugSection.class, new DebugSectionDescriptor());%0A  %7D
 %0A%7D%0A

Enable section descriptors in Flipper from configDepends on D13803338/