transistorsoft / react-native-background-geolocation-firebase

Firebase Adapter for React Native Background Geolocation
24 stars 4 forks source link

react-native-background-geolocation-firebase does not work with new version of react-native-background-geolocation (3.2.0) #16

Closed cspilhere closed 5 years ago

cspilhere commented 5 years ago

After update geolocation plugin to version 3.2.0 and run-android my app output this error:

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:preDebugBuild'.
> Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
   > Could not find any matches for com.transistorsoft:tslocationmanager:+ as no versions of com.transistorsoft:tslocationmanager are available.
     Searched in the following locations:
       - file:/Users/cspilhere/Projects/pinmycargo/newapp/LevalogDriverApp/node_modules/react-native-background-geolocation-firebase/android/libs/com/transistorsoft/tslocationmanager/maven-metadata.xml
       - file:/Users/cspilhere/Projects/pinmycargo/newapp/LevalogDriverApp/node_modules/react-native-background-geolocation-firebase/android/libs/com/transistorsoft/tslocationmanager/
       - file:/Users/cspilhere/.m2/repository/com/transistorsoft/tslocationmanager/maven-metadata.xml
       - file:/Users/cspilhere/.m2/repository/com/transistorsoft/tslocationmanager/
       - file:/Users/cspilhere/Projects/pinmycargo/newapp/LevalogDriverApp/node_modules/react-native/android/com/transistorsoft/tslocationmanager/maven-metadata.xml
       - file:/Users/cspilhere/Projects/pinmycargo/newapp/LevalogDriverApp/node_modules/react-native/android/com/transistorsoft/tslocationmanager/
       - file:/Users/cspilhere/Projects/pinmycargo/newapp/LevalogDriverApp/node_modules/jsc-android/dist/com/transistorsoft/tslocationmanager/maven-metadata.xml
       - file:/Users/cspilhere/Projects/pinmycargo/newapp/LevalogDriverApp/node_modules/jsc-android/dist/com/transistorsoft/tslocationmanager/
       - https://dl.google.com/dl/android/maven2/com/transistorsoft/tslocationmanager/maven-metadata.xml
       - https://dl.google.com/dl/android/maven2/com/transistorsoft/tslocationmanager/
       - https://jcenter.bintray.com/com/transistorsoft/tslocationmanager/maven-metadata.xml
       - https://jcenter.bintray.com/com/transistorsoft/tslocationmanager/
     Required by:
         project :app > project :react-native-background-geolocation-firebase

I have to do some extra configuration on firebase plugin?

Thanks!

christocracy commented 5 years ago

Right, I forgot about firebase plugin. Changes will be required to this plugin. Stay at 3.1.0 until I release a new version for firebase adapter.

cspilhere commented 5 years ago

Right, I forgot about firebase plugin. Changes will be required to this plugin. Stay at 3.1.0 until I release a new version for firebase adapter.

Thank you!

christocracy commented 5 years ago

I've merged a new version 0.3.0 to master (not yet released to npm).

Give it a try installing from master. This version is compatible with react-native >= 0.60 auto-linking.

See the Setup Instructions

christocracy commented 5 years ago

Please let me know ASAP if master works for you so I can quickly release 0.3.0 to npm.

Are you using react-native >= 0.60?

cspilhere commented 5 years ago

Please let me know ASAP if master works for you so I can quickly release 0.3.0 to npm.

Are you using react-native >= 0.60?

Yes! It worked. The app is starting and posting location into Firebase. Thanks a lot for your quick response.

christocracy commented 5 years ago

Thanks, will be published tomorrow.

christocracy commented 5 years ago

0.3.0 is published.