From 24f9f75bf66b8f32a117ba9f9dea3c65b35b1e00 Mon Sep 17 00:00:00 2001 From: Ivan Kobzarev Date: Thu, 25 Mar 2021 11:26:46 -0700 Subject: [PATCH] fbjni version to 0.2.2 (#31191) Summary: android fbjni dependency bump to 0.2.2 The motivation is to address https://github.com/pytorch/pytorch/issues/34682 that pytorch_android and react-native use different versions of fbjni with the same name libfbjni.so In case of loading 0.0.2 version it is missing functions in binary Fbjni is not changing much, that's why this will solve that problem for a long time (Until fbjni changed and versions will not be aligned) ## Changelog [Android][Added] fbjni version bump to 0.0.3 Pull Request resolved: https://github.com/facebook/react-native/pull/31191 Test Plan: Automated (relying on the test suite) and manual testing. Reviewed By: passy Differential Revision: D27330370 Pulled By: IvanKobzarev fbshipit-source-id: 2ea07d80d23f8dbc80e946a8818c1ecb8eb746e8 --- ReactAndroid/build.gradle | 6 +++--- ReactAndroid/src/main/libraries/fbjni/BUCK | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ReactAndroid/build.gradle b/ReactAndroid/build.gradle index 0944a54a9bab74..155ba2d9332987 100644 --- a/ReactAndroid/build.gradle +++ b/ReactAndroid/build.gradle @@ -452,9 +452,9 @@ dependencies { api("com.squareup.okhttp3:okhttp:${OKHTTP_VERSION}") api("com.squareup.okhttp3:okhttp-urlconnection:${OKHTTP_VERSION}") api("com.squareup.okio:okio:1.17.5") - api("com.facebook.fbjni:fbjni-java-only:0.0.3") - extractHeaders("com.facebook.fbjni:fbjni:0.0.2:headers") - extractJNI("com.facebook.fbjni:fbjni:0.0.2") + api("com.facebook.fbjni:fbjni-java-only:0.2.2") + extractHeaders("com.facebook.fbjni:fbjni:0.2.2:headers") + extractJNI("com.facebook.fbjni:fbjni:0.2.2") javadocDeps("com.squareup:javapoet:1.13.0") diff --git a/ReactAndroid/src/main/libraries/fbjni/BUCK b/ReactAndroid/src/main/libraries/fbjni/BUCK index db32c1b4a5463d..4d6d134811ab5a 100644 --- a/ReactAndroid/src/main/libraries/fbjni/BUCK +++ b/ReactAndroid/src/main/libraries/fbjni/BUCK @@ -15,6 +15,6 @@ fb_native.android_prebuilt_aar( fb_native.remote_file( name = "fbjni-binary-aar", - sha1 = "d9e1b6ebbe55fe25f6ee6257ef64588e0f8a8db0", - url = "mvn:com.facebook.fbjni:fbjni:aar:0.0.2", + sha1 = "b20ae3406d911a28315b6ab53f122075500bfa27", + url = "mvn:com.facebook.fbjni:fbjni:aar:0.2.2", )