Skip to content

Commit

Permalink
Add buck module for fetching fbjni
Browse files Browse the repository at this point in the history
  • Loading branch information
passy committed Dec 16, 2019
1 parent a208b03 commit 15172b7
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 5 deletions.
1 change: 1 addition & 0 deletions .buckconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
[maven_repositories]
central = https://repo1.maven.org/maven2
google = https://maven.google.com/
jcenter = https://jcenter.bintray.com/

[alias]
rntester = //RNTester/android/app:app
2 changes: 1 addition & 1 deletion ReactAndroid/src/main/java/com/facebook/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ rn_android_library(
srcs = glob(["yoga/*.java"]),
visibility = ["PUBLIC"],
deps = [
react_native_dep("java/com/facebook/jni:jni"),
react_native_dep("libraries/fbjni/java/com/facebook/fbjni:fbjni"),
react_native_dep("java/com/facebook/proguard/annotations:annotations"),
react_native_dep("libraries/soloader/java/com/facebook/soloader:soloader"),
react_native_dep("third-party/java/infer-annotations:infer-annotations"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ rn_android_library(
deps = [
react_native_dep("java/com/facebook/proguard/annotations:annotations"),
react_native_dep("libraries/soloader/java/com/facebook/soloader:soloader"),
react_native_dep("java/com/facebook/jni:jni"),
react_native_dep("libraries/fbjni/java/com/facebook/fbjni:fbjni"),
":jni_hermes_samplingprofiler",
],
)
Expand Down
2 changes: 1 addition & 1 deletion ReactAndroid/src/main/java/com/facebook/react/bridge/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ rn_android_library(
react_native_target("java/com/facebook/react/turbomodule/core:callinvokerholder"),
] + ([react_native_target("jni/react/jni:jni")] if not IS_OSS_BUILD else []),
exported_deps = [
react_native_dep("java/com/facebook/jni:jni"),
react_native_dep("libraries/fbjni/java/com/facebook/fbjni:fbjni"),
react_native_dep("java/com/facebook/proguard/annotations:annotations"),
react_native_dep("third-party/java/jsr-330:jsr-330"),
react_native_target("java/com/facebook/react/bridge:interfaces"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ rn_android_library(
],
deps = [
react_native_dep("third-party/android/androidx:annotation"),
react_native_dep("java/com/facebook/jni:jni"),
react_native_dep("libraries/fbjni/java/com/facebook/fbjni:fbjni"),
react_native_dep("java/com/facebook/proguard/annotations:annotations"),
react_native_dep("libraries/fbcore/src/main/java/com/facebook/common/logging:logging"),
react_native_dep("libraries/soloader/java/com/facebook/soloader:soloader"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ rn_android_library(
deps = [
react_native_dep("libraries/soloader/java/com/facebook/soloader:soloader"),
react_native_target("java/com/facebook/react/turbomodule/core/interfaces:interfaces"),
react_native_dep("java/com/facebook/jni:jni"),
react_native_dep("libraries/fbjni/java/com/facebook/fbjni:fbjni"),
],
)
20 changes: 20 additions & 0 deletions ReactAndroid/src/main/libraries/fbjni/java/com/facebook/fbjni/BUCK
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
load("//tools/build_defs:fb_native_wrapper.bzl", "fb_native")

fb_native.android_library(
name = "fbjni",
exported_deps = [
":fbjni-binary",
],
visibility = ["PUBLIC"],
)

fb_native.android_prebuilt_aar(
name = "fbjni-binary",
aar = ":fbjni-binary-aar",
)

fb_native.remote_file(
name = "fbjni-binary-aar",
sha1 = "d9e1b6ebbe55fe25f6ee6257ef64588e0f8a8db0",
url = "mvn:com.facebook.fbjni:fbjni:aar:0.0.2",
)

0 comments on commit 15172b7

Please sign in to comment.