Introduce ReactLegacyArchitectureProcessor annotation processor (#49568)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49568

The goal of this annotation processor is to generate a file with all the types that belong to Legacy Architecture of React Native

changelog: [internal] internal

Reviewed By: cortinico

Differential Revision: D69929876

fbshipit-source-id: c21bf1a868258b20be91721006d7fc8fa85adcd1
This commit is contained in:
David Vacca authored and Facebook GitHub Bot committed 2025-02-20 17:06:11 -08:00
1 parent 2c4a9d2a1b
commit 339297f095
1 file changed
+26
@@ -0,0 +1,26 @@
// (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.
package com.facebook.react.processing;
import com.facebook.annotationprocessors.common.ProcessorBase;
import java.util.Set;
import javax.annotation.processing.RoundEnvironment;
import javax.annotation.processing.SupportedAnnotationTypes;
import javax.annotation.processing.SupportedSourceVersion;
import javax.lang.model.SourceVersion;
import javax.lang.model.element.TypeElement;
@SupportedAnnotationTypes("com.facebook.react.common.annotations.internal.LegacyArchitecture")
@SupportedSourceVersion(SourceVersion.RELEASE_11)
public class ReactLegacyArchitectureProcessor extends ProcessorBase {
public ReactLegacyArchitectureProcessor() {
super();
}
@Override
protected boolean processImpl(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) {
// Do nothing for now
return true;
}
}