Skip to content

Android build: Address deprecation warning in react-native-device-info #4240

@chrisbobbe

Description

@chrisbobbe

I see the following warning on running ./gradlew help --warning-mode=all from android (recommended by this doc):

> Configure project :react-native-device-info
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed soon. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html

It looks like this package is still being maintained, by react-native-community: https://github.com/react-native-community/react-native-device-info#readme. So, we might be able to upgrade to a version that doesn't have this warning, following their upgrade guides and handling any breaking changes.

Another route we could take is to get rid of this dependency and consider having expo-application do its job, as we did partially in 18c37ce. expo-device might be needed, too.

Metadata

Metadata

Assignees

Labels

a-AndroiddependenciesPull requests that update a dependency file

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions