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:
Jonathan Keljo
2017-03-14 11:07:54 -07:00
committed by Facebook Github Bot
parent 4203c9c837
commit 0a7427f599
3 changed files with 30 additions and 24 deletions

View File

@@ -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"),