Skip to content
This repository was archived by the owner on Jul 21, 2021. It is now read-only.

Conversation

@redexp
Copy link

@redexp redexp commented Sep 13, 2018

safeExtGet is a good practise from many popular packages, it will solve notification that this lib uses les sdk version.

and second fix is kinda important, because without it, when trying to install next package, npm will send error react-native-proximity: Appears to be a git repo or submodule.

@mcrowe
Copy link

mcrowe commented Mar 1, 2019

@williambout This module is unusable without this pull request. Please consider merging it.


dependencies {
compile 'com.facebook.react:react-native:+'
compile 'com.facebook.react:react-native:${safeExtGet('reactNativeVersion', '+')}'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a syntax error here resulting in a build failure:

* What went wrong:
A problem occurred evaluating project ':react-native-proximity'.
> Could not find method reactNativeVersion() for arguments [, )}] on DefaultExternalModuleDependency{group='com.facebook.react', name='react-native', version='${safeExtGet(', configuration='default'} of type org.gradle.api.internal.artifacts.dependencies.DefaultExternalModuleDependency.
Suggested change
compile 'com.facebook.react:react-native:${safeExtGet('reactNativeVersion', '+')}'
compile "com.facebook.react:react-native:${safeExtGet('reactNativeVersion', '+')}"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants