mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-13 22:43:59 +08:00
Migrate ReactAndroid to use Buck's new java_annotation_processor rule
Reviewed By: asp2insp Differential Revision: D4654756 fbshipit-source-id: d98d55786d84cf02234699a260e8750305982267
This commit is contained in:
committed by
Facebook Github Bot
parent
4203c9c837
commit
0a7427f599
@@ -1,13 +1,21 @@
|
||||
include_defs("//ReactAndroid/DEFS")
|
||||
|
||||
java_library(
|
||||
java_annotation_processor(
|
||||
name = "processing",
|
||||
srcs = glob(["*.java"]),
|
||||
source = "7",
|
||||
target = "7",
|
||||
processor_class = "com.facebook.react.module.processing.ReactModuleSpecProcessor",
|
||||
visibility = [
|
||||
"PUBLIC",
|
||||
],
|
||||
deps = [
|
||||
":processing-lib",
|
||||
],
|
||||
)
|
||||
|
||||
java_library(
|
||||
name = "processing-lib",
|
||||
srcs = glob(["*.java"]),
|
||||
source = "7",
|
||||
target = "7",
|
||||
deps = [
|
||||
react_native_dep("third-party/java/infer-annotations:infer-annotations"),
|
||||
react_native_dep("third-party/java/javapoet:javapoet"),
|
||||
|
||||
Reference in New Issue
Block a user