diff --git a/ReactAndroid/build.gradle b/ReactAndroid/build.gradle index 1ed98bed6eb40b..8b8a05d29e4738 100644 --- a/ReactAndroid/build.gradle +++ b/ReactAndroid/build.gradle @@ -446,6 +446,7 @@ dependencies { api("androidx.swiperefreshlayout:swiperefreshlayout:1.0.0") api("com.facebook.fresco:fresco:${FRESCO_VERSION}") api("com.facebook.fresco:imagepipeline-okhttp3:${FRESCO_VERSION}") + api("com.facebook.fresco:ui-common:${FRESCO_VERSION}") api("com.facebook.soloader:soloader:${SO_LOADER_VERSION}") api("com.google.code.findbugs:jsr305:3.0.2") api("com.squareup.okhttp3:okhttp:${OKHTTP_VERSION}") diff --git a/ReactAndroid/gradle.properties b/ReactAndroid/gradle.properties index 6e87e5187d3d33..2ae9344c3b8557 100644 --- a/ReactAndroid/gradle.properties +++ b/ReactAndroid/gradle.properties @@ -11,7 +11,7 @@ ROBOLECTRIC_VERSION=4.4 JUNIT_VERSION=4.12 ANDROIDX_TEST_VERSION=1.1.0 -FRESCO_VERSION=2.0.0 +FRESCO_VERSION=2.3.0 OKHTTP_VERSION=3.14.9 SO_LOADER_VERSION=0.9.0 diff --git a/ReactAndroid/src/main/libraries/fresco/fresco-react-native/BUCK b/ReactAndroid/src/main/libraries/fresco/fresco-react-native/BUCK index 19c74093d5c8a6..b353e4cca824cf 100644 --- a/ReactAndroid/src/main/libraries/fresco/fresco-react-native/BUCK +++ b/ReactAndroid/src/main/libraries/fresco/fresco-react-native/BUCK @@ -9,8 +9,8 @@ rn_android_prebuilt_aar( fb_native.remote_file( name = "fresco-binary-aar", - sha1 = "d473020b37b7cdd3171154942b55021a55a9d990", - url = "mvn:com.facebook.fresco:fresco:aar:2.0.0", + sha1 = "fbc98413bb32eefe882a07cc556c7a1224dc9f24", + url = "mvn:com.facebook.fresco:fresco:aar:2.3.0", ) rn_android_prebuilt_aar( @@ -21,8 +21,8 @@ rn_android_prebuilt_aar( fb_native.remote_file( name = "drawee-binary-aar", - sha1 = "a85bfaeb87a9c8d1521c70edf6ded91ff9999475", - url = "mvn:com.facebook.fresco:drawee:aar:2.0.0", + sha1 = "1cff917b6f19efe7a21ca542c8b8bed18d0d9779", + url = "mvn:com.facebook.fresco:drawee:aar:2.3.0", ) rn_android_library( @@ -33,7 +33,13 @@ rn_android_library( ":bolts", ":imagepipeline-base", ":imagepipeline-core", + ":imagepipeline-native", + ":memory-type-ashmem", + ":memory-type-java", + ":memory-type-native", ":native-filters", + ":native-transcoder", + ":ui-common", ], ) @@ -45,8 +51,8 @@ rn_android_prebuilt_aar( fb_native.remote_file( name = "imagepipeline-base-aar", - sha1 = "d27635390665d433f987177c548d25d0473eadbe", - url = "mvn:com.facebook.fresco:imagepipeline-base:aar:2.0.0", + sha1 = "ed3c290961f4c20fffa0ce35c098714c1934523d", + url = "mvn:com.facebook.fresco:imagepipeline-base:aar:2.3.0", ) rn_android_prebuilt_aar( @@ -57,8 +63,8 @@ rn_android_prebuilt_aar( fb_native.remote_file( name = "imagepipeline-aar", - sha1 = "7bc59327fb4895c465cbfeede700daf349ea56da", - url = "mvn:com.facebook.fresco:imagepipeline:aar:2.0.0", + sha1 = "579954628c8e1da96e1585741f5dae08f282ce3e", + url = "mvn:com.facebook.fresco:imagepipeline:aar:2.3.0", ) rn_android_prebuilt_aar( @@ -69,8 +75,20 @@ rn_android_prebuilt_aar( remote_file( name = "nativeimagefilters-aar", - sha1 = "f49525db580abc4d2fb0a74fac771fc6c69f2adb", - url = "mvn:com.facebook.fresco:nativeimagefilters:aar:2.0.0", + sha1 = "1f4d81f8f6e2706ae848124d454c99cadd85496c", + url = "mvn:com.facebook.fresco:nativeimagefilters:aar:2.3.0", +) + +rn_android_prebuilt_aar( + name = "native-transcoder", + aar = ":nativeimagetranscoder-aar", + visibility = ["//ReactAndroid/..."], +) + +remote_file( + name = "nativeimagetranscoder-aar", + sha1 = "1b74432d16db744719dfe1d03d4d93850e061d08", + url = "mvn:com.facebook.fresco:nativeimagetranscoder:aar:2.3.0", ) rn_prebuilt_jar( @@ -93,8 +111,20 @@ rn_android_prebuilt_aar( fb_native.remote_file( name = "fbcore-aar", - sha1 = "8de91f71e8aa84a4d9be4dd88d1a0ac51600ad60", - url = "mvn:com.facebook.fresco:fbcore:aar:2.0.0", + sha1 = "6d568ce3e1a5377c390dbde6f150884fecd61bd0", + url = "mvn:com.facebook.fresco:fbcore:aar:2.3.0", +) + +rn_android_prebuilt_aar( + name = "imagepipeline-native", + aar = ":imagepipeline-native-binary-aar", + visibility = ["//ReactAndroid/..."], +) + +fb_native.remote_file( + name = "imagepipeline-native-binary-aar", + sha1 = "705a3629cfba16ab8c9b2765058380276514342c", + url = "mvn:com.facebook.fresco:imagepipeline-native:aar:2.3.0", ) rn_android_prebuilt_aar( @@ -105,6 +135,54 @@ rn_android_prebuilt_aar( fb_native.remote_file( name = "imagepipeline-okhttp3-binary-aar", - sha1 = "bc1212ca66cd09678b416894ea8bd04102d26c5f", - url = "mvn:com.facebook.fresco:imagepipeline-okhttp3:aar:2.0.0", + sha1 = "1065513f02b97ee46601d92105151ae9e2111bfc", + url = "mvn:com.facebook.fresco:imagepipeline-okhttp3:aar:2.3.0", +) + +rn_android_prebuilt_aar( + name = "memory-type-ashmem", + aar = ":memory-type-ashmem-aar", + visibility = ["//ReactAndroid/..."], +) + +remote_file( + name = "memory-type-ashmem-aar", + sha1 = "d0e2ab70d5d35d08de81d3917b0f5d7bbf4fa82c", + url = "mvn:com.facebook.fresco:memory-type-ashmem:aar:2.3.0", +) + +rn_android_prebuilt_aar( + name = "memory-type-java", + aar = ":memory-type-java-aar", + visibility = ["//ReactAndroid/..."], +) + +remote_file( + name = "memory-type-java-aar", + sha1 = "5e8adc594bc9d8f4e8d794dff23c70882fb98e65", + url = "mvn:com.facebook.fresco:memory-type-java:aar:2.3.0", +) + +rn_android_prebuilt_aar( + name = "memory-type-native", + aar = ":memory-type-native-aar", + visibility = ["//ReactAndroid/..."], +) + +remote_file( + name = "memory-type-native-aar", + sha1 = "72bb5626d508587cb9d96beb0e2b61ac36a2c63d", + url = "mvn:com.facebook.fresco:memory-type-native:aar:2.3.0", +) + +rn_android_prebuilt_aar( + name = "ui-common", + aar = ":ui-common-aar", + visibility = ["//ReactAndroid/..."], +) + +remote_file( + name = "ui-common-aar", + sha1 = "0ce37a495f0f37165e3ede1c4cb927b0b55856be", + url = "mvn:com.facebook.fresco:ui-common:aar:2.3.0", )