mrousavy / react-native-blob-jsi-helper

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

[Android] Doesn't build with RN 0.71.0 #10

Closed kesha-antonov closed 1 year ago

kesha-antonov commented 1 year ago
> Configure project :react-native-blob-jsi-helper
BlobJsiHelper: node_modules/ found at: /Users/kesha/projects/project_name/node_modules
WARNING:DSL element 'dexOptions' is obsolete and should be removed.
It will be removed in version 8.0 of the Android Gradle plugin.
Using it has no effect, and the AndroidGradle plugin optimizes dexing automatically.

FAILURE: Build failed with an exception.

* Where:
Build file '/Users/kesha/projects/project_name/node_modules/react-native-blob-jsi-helper/android/build.gradle' line: 173
cat node_modules/react-native/android/README.md  
# The `/android` folder inside `react-native`

Starting from React Native 0.71, we're not shipping the `/android` folder inside the React Native NPM package
anymore due to sizing constraints on NPM. The Android artifacts are distributed via Maven Central.
You can read more about it in this RFC:
https://github.com/react-native-community/discussions-and-proposals/pull/508

If you're a library author and you're manipulating the React Native .aar files, to extract headers,
extract `.so` files or do anything with it, you're probably doing something wrong. React Native
0.71 ships with all the necessary logic to let you consume it transparently by just using:

implementation("com.facebook.react:react-android")
// or to keep backward compatibility with older versions of React Native:
implementation("com.facebook.react:react-native:+")

You should consider refactoring your library code not to unzip/manipulate the React Native .aar files.

This README.md file is kept in this folder as some libraries are checking the existence of the `/android` folder
and failing user builds if the folder is missing.
hannojg commented 1 year ago

Hey @kesha-antonov, the build has been fixed in version 0.3.0, please try upgrading. If there are any issues with the new version please open a new issue. Thank you!

kesha-antonov commented 1 year ago

Hey @kesha-antonov, the build has been fixed in version 0.3.0, please try upgrading. If there are any issues with the new version please open a new issue. Thank you!

Thanks!