question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

This library is using on Android com.google.firebase:firebase-core dependency, but I can not find any imports from firebase packages.

So what is the reason for importing Firebase core dependency?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
cybergrindcommented, Nov 15, 2018

@hannta / @rahsheen what is the exact issue with firebase. There are 2 possible options I see:

  1. You don’t need firebase at all and cannot have it for some reason
  2. You have version conflicts

Regarding second point, you can force desirable versions in your build.gradle file:

allprojects {
    repositories {
        google()
        maven {
            url 'https://maven.google.com/'
            name 'Google'
        }
        // Add jitpack repository (added by tipsi-stripe)
        maven { url "https://jitpack.io" }
        // Add fabric repository (added by tipsi-twitter)
        maven { url "https://maven.fabric.io/public" }
        mavenLocal()
        jcenter()
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url "$rootDir/../node_modules/react-native/android"
        }
        configurations.all {
            // #PlayServicesGate — March, 20 2018
            resolutionStrategy {
                force 'com.google.firebase:firebase-core:16.0.4'
                // force 'com.google.firebase:firebase-analytics:17.3.4'
                force 'com.google.firebase:firebase-iid:17.0.4'
                force 'com.google.firebase:firebase-messaging:17.3.4'
                force 'com.google.android.gms:play-services-base:16.0.1'
                force 'com.google.android.gms:play-services-maps:16.0.0'
                force 'com.google.android.gms:play-services-wallet:16.0.1'
                force 'com.google.android.gms:play-services-vision:11.8.0'

                // #FBSDKGate — August, 31 2018
                force 'com.facebook.android:facebook-android-sdk:4.34.0'
            }
        }
    }

This is what we’re using internally and it works for android.

Regarding first point - I’m not sure if you can have payments with android pay without firebase. Possibly this can be done but this require some additional research and we cannot switch to this right now

1reaction
hanntacommented, Nov 15, 2018

@cybergrind thanks for the clarification, my original question was to ask why the Firebase lib is included in this lib as looks like it is not used at all.

Im using Firebase in my app, and i do not have issues for using it 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Usage and limits | Firestore - Firebase
Use this guide to understand Cloud Firestore limits, and see Cloud Firestore Pricing for a full, detailed explanation of Cloud Firestore costs, including...
Read more >
What is Firebase? The complete story, abridged. - Medium
Firebase Hosting is a secure, global web hosting CDN (Content Delivery Network). It's really good at quickly delivering static content (HTML, ...
Read more >
Usage and billing dashboard - Firebase Help - Google Support
Usage and billing dashboard. Firebase offers a no-cost tier pricing plan for all its products. For some products, usage continues at no cost...
Read more >
Firebase Usage Statistics - BuiltWith Trends
Get access to data on 1,021,610 websites that are Firebase Customers. We know of 369,603 live websites using Firebase and an additional 652,007...
Read more >
Realtime Database - React Native Firebase
React Native Firebase provides native integration with the Android & iOS ... Usage. References. A core concept to understanding Realtime Database are ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found