mrousavy / react-native-blob-jsi-helper

A React Native library for accessing an ArrayBuffer of a Blob instance.
MIT License
130 stars 8 forks source link

react native 0.69 build issue #7

Closed mlecoq closed 2 years ago

mlecoq commented 2 years ago

Hi, with react native 0.69, I have a build issue

* Where:
Build file '/Users/mlecoq/Developer/archireport/archireport-mobile/node_modules/react-native-blob-jsi-helper/android/build.gradle' line: 165

* What went wrong:
A problem occurred evaluating project ':react-native-blob-jsi-helper'.
> Expected directory '/Users/mlecoq/Developer/archireport/archireport-mobile/node_modules/react-native/android' to contain exactly one file, however, it contains more than one file.

I solved it modifying build.gradle following line:

 def rnAAR = fileTree("${defaultDir.toString()}").matching({ it.include "**/**/*.aar" }).singleFile

with

 def rnAAR = fileTree("${defaultDir.toString()}").matching({ it.include "**/**/react-native*-release.aar" }).singleFile

but it's not backward compatible with RN 0.68

mlecoq commented 2 years ago

I have now this error

Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':react-native-blob-jsi-helper:downloadBoost'.
> A failure occurred while executing de.undercouch.gradle.tasks.download.internal.DefaultWorkerExecutorHelper$DefaultWorkAction
   > de.undercouch.gradle.tasks.download.org.apache.hc.client5.http.ClientProtocolException: Not Found (HTTP status code: 404, URL: https://github.com/react-native-community/boost-for-react-native/releases/download/v1.76.0-0/boost_1_76_0.tar.gz)
mlecoq commented 2 years ago

fixed by https://github.com/mrousavy/react-native-blob-jsi-helper/commit/00c345cc87061f171c019b5451f19b14c3001e67