// 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());
  }
}

/**
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * <p>This source code is licensed under the MIT license found in the LICENSE file in the root
 * directory of this source tree.
 */
package com.facebook.flipper.plugins.litho;

import com.facebook.flipper.plugins.inspector.DescriptorMapping;
import com.facebook.litho.DebugComponent;
import com.facebook.litho.LithoView;
import com.facebook.litho.sections.debug.DebugSection;
import com.facebook.litho.widget.LithoRecylerView;

public final class LithoFlipperDescriptors {

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

  public static void addWithSections(DescriptorMapping descriptorMapping) {
    add(descriptorMapping);
    descriptorMapping.register(LithoRecylerView.class, new LithoRecyclerViewDescriptor());
    descriptorMapping.register(DebugSection.class, new DebugSectionDescriptor());
  }
}

Enable section descriptors in Flipper from configDepends on D13803338/
Enable section descriptors in Flipper from configDepends on D13803338/

Summary: as title

Reviewed By: passy

Differential Revision: D13803412

fbshipit-source-id: a9d511ca7d5466eb9b1f82f93b6c48879f0aa02e
