Skip to content
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

Alert Gradle Deprecated after installation Realm #3879

Closed
bnobre opened this issue Jul 29, 2021 · 5 comments
Closed

Alert Gradle Deprecated after installation Realm #3879

bnobre opened this issue Jul 29, 2021 · 5 comments
Assignees

Comments

@bnobre
Copy link

bnobre commented Jul 29, 2021

Goals

After installing Realm, I wish that when I run the command "react-native run-android" it does not display the following warning: "Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings."

Expected Results

I would like this alert to disappear "Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.", which only appears after installing Realm.

Actual Results

Always after installing Realm, when executing the command "react-native run-android" the alert is displayed.

Steps to Reproduce

1 - Create a new react native project: react-native init testApp
2 - Install Realm: yarn add realm
3 - Run the app: react-native run-android

Version of Realm and Tooling

  • Realm JS SDK Version: 10.6.1
  • Node: 15.10.0 x64
  • React Native: 0.64.2
  • Client OS & Version: Windows 10 Home Single Language x64
  • Which debugger for React Native: None
@takameyer
Copy link
Contributor

@bnobre Thanks for reporting. We will look into it as soon as we can.

@sync-by-unito
Copy link

sync-by-unito bot commented Aug 5, 2021

➤ Andrew Meyer commented:

I have added this to our backlog.
We need to make sure to update this before Gradle 7.0 becomes default for React Native.

@sync-by-unito
Copy link

sync-by-unito bot commented Aug 5, 2021

➤ Andrew Meyer commented:

This could be useful to come up with a solution.
Itiviti/gradle-nuget-plugin#77

takameyer added a commit that referenced this issue Aug 6, 2021
When using Realm in React Native projects, Gradle was complaining the way
applicationId was being declared (using a deprecated method).  This
PR tries to fix this issue.

This fixes #3879
@takameyer takameyer mentioned this issue Aug 6, 2021
1 task
takameyer added a commit that referenced this issue Aug 6, 2021
When using Realm in React Native projects, Gradle was complaining the way
applicationId was being declared (using a deprecated method).  This
PR tries to fix this issue.

This fixes #3879
@takameyer
Copy link
Contributor

It's possible the problem lies in how analytics.gradle is defined. Perhaps adhering to the class structure in the documentation would make the issue go away. I attempted this, but @Inject was not defined.
https://docs.gradle.org/6.7/userguide/more_about_tasks.html#sec:passing_arguments_to_a_task_constructor

@takameyer
Copy link
Contributor

Fix has been merged and will come in the next release

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 16, 2024
@sync-by-unito sync-by-unito bot changed the title Alert Gradle Deprecated after installation Realm Alert Gradle Deprecated after installation Realm Mar 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants