-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Android] Fix Android build failures with RN 0.72 #130
base: master
Are you sure you want to change the base?
Conversation
@fabioh8010 Are these changes compatible with RN < 0.72 ? |
0.71 was on 7.6 and the property was deprecated since at least 6.1 which was released in Jan 15, 2020 Although for some time it was replaced by "activated" before "required" in 7.1 (these guys really love breaking changes for subtle semantics...): v7.1 was released in Jun 14, 2021 so it should still be compat with pretty old versions of RN |
@fcaldarelli Just complementing @dominictobias info.. The "required" option was introduced in Gradle 6.8: 6.7.1 -> https://docs.gradle.org/6.7.1/dsl/org.gradle.api.reporting.Report.html#org.gradle.api.reporting.Report:enabled And RN started using Gradle 6.8+ in version 0.65 -> https://react-native-community.github.io/upgrade-helper/?from=0.64.4&to=0.65.0#RnDiffApp-android-gradle-wrapper-gradle-wrapper.properties Since "this SDK supports React Native versions 0.68.2 and later", it should be completely safe to use "required" in the project. |
any updates on this? |
any update on the issue? This is currently a blocker. |
Same for me. I can't update react-native to last 0.72.4 because this error. |
You can use patch-package as a temporary workaround while this PR is not merged yet, we are using in Expensify project -> https://github.com/Expensify/App/blob/main/patches/@onfido+react-native-sdk+7.4.0.patch |
@fabioh8010 thank you, but temporary I solved with these 2 changes: android/gradle/wrapper/gradle-wrapper.properties Now OnFido package is building on RN 0.72.4 |
I would recommend you to use |
I downgraded gradle and all libraries are working fine. |
We've also facing this issue and downgrading gradle wrapper version is not the ideal solution. Can we please fix this and release a new version ? |
Why is this still not merged. Are you stil actively maintaining Onfido support for RN? :/ |
Would somebody finally merge this? |
We have migrated to Gradle 8 and are including this change in our upcoming quarterly release targeted for March 13. |
This requested change however (using |
Description
RN projects starting from 0.72 are going to use Gradle 8.x to build the Android app. This library is using a
enabled
flag inbuild.gradle
that is already deprecated in Gradle 7.x and was removed in Gradle 8.x. This PR aims to solve this by using the new flagrequired
.Test Plan
@onfido/react-native-sdk
library to project.