Wish Cloud Firestore

Discussion in 'Bugs & wishlist' started by fabricio, Jul 29, 2018.

?

Do You need Firestore in your Project?

  1. Yes

    78.3%
  2. No

    21.7%
  1. fabricio

    fabricio Member Licensed User

    Will we have integration as well as the other services in B4a?
     
  2. Alexander Stolte

    Alexander Stolte Well-Known Member Licensed User

    It's only attractive if this is also available for B4I, as I mostly develop for both platforms.
     
  3. asales

    asales Well-Known Member Licensed User

  4. Jon Eskdale

    Jon Eskdale Member Licensed User

    +another
     
  5. Mashiane

    Mashiane Expert Licensed User

    Firestore is still in beta isn’t it?
     
  6. Jon Eskdale

    Jon Eskdale Member Licensed User

    Officially it is still in Beta - but Google products are in Beta for years - Just remember how many years Gmail was in Beta but everyone was using it.
    However, it is Google's recommended solution for new projects where its features include all the necessary features. And they do say it is replacing the Firebase database.
     
    asales likes this.
  7. Mashiane

    Mashiane Expert Licensed User

    @Jon Eskdale I hear you. I think even the team here that was working with the elusive FireBase library indicated that working on FireStore can only only happen once the beta has been done and a release is made. I took a chance to look at the FireBase in javascript and will version this for ABM at some stage. One could implement this for a webview based app though. I will also explore FireStore in Javascript once a release is done also.

    I see someone managed to get a basic firebase database working. All good. Lets hope that someone can FireStore too.
     
  8. peacemaker

    peacemaker Well-Known Member Licensed User

  9. DonManfred

    DonManfred Expert Licensed User

    And it also works if one find out all the needed dependencies and that one need to replace (add two lines) to the
    Code:
    CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase)
    Code:
    #MultiDex: true
    #AdditionalJar: com.google.android.gms:play-services-auth
    #AdditionalJar: com.google.android.gms:play-services-base
    #AdditionalJar: constraintlayout-1.1.0.aar
    #AdditionalJar: com.google.firebase:firebase-common
    #AdditionalJar: com.google.firebase:firebase-auth
    #AdditionalJar: com.google.firebase:firebase-database
    #AdditionalJar: com.google.firebase:firebase-core
    #AdditionalJar: com.google.firebase:firebase-common
    #AdditionalJar: com.google.firebase:firebase-firestore
    #AdditionalJar: grpc-core-1.20.0.jar
    #AdditionalJar: grpc-protobuf-1.20.0.jar
    #AdditionalJar: grpc-okhttp-1.20.0.jar
    #AdditionalJar: grpc-android-1.20.0.aar
    #AdditionalJar: opencensus-api-0.20.0.jar
    #AdditionalJar: grpc-stub-1.20.0.jar
    #AdditionalJar: grpc-protobuf-lite-1.20.0.jar
    #AdditionalJar: opencensus-contrib-http-util-0.20.0.jar
    #AdditionalJar: opencensus-contrib-grpc-metrics-0.20.0.jar
    #AdditionalJar: grpc-context-1.20.0.jar

    '#AdditionalJar: com.google.firebase:protolite-well-known-types
    #AdditionalJar: glide-3.8.0
    #AdditionalJar: guava-27.0.1-android
    #AdditionalJar: materialprogressbar.aar
    #AdditionalJar: com.google.gms:google-services
    #ExcludeClasses: com.google.guava:guava-jdk5
    But basically it works :D
     
  10. Alexander Stolte

    Alexander Stolte Well-Known Member Licensed User

    Sorry but WTF,too mutch :rolleyes:
     
  11. DonManfred

    DonManfred Expert Licensed User

    it is possible that maybe one or more of them are not needed. but with my tests in the lasts months i found out that they are needed.
    Today i fixed a problem which i encounter long time ago but did not really found a solution. I not setup a testproject using android studio, decompiled this apk and found a difference in the manifest. I extracted the Firebase.b4x_excluded from FirebaseAnalytics.jar, added two lines and put them back to the jar.

    Effectively i changed

    Code:
    <service android:name="com.google.firebase.components.ComponentDiscoveryService" >
                <meta-data
                    android:name=
    "com.google.firebase.components:com.google.firebase.analytics.connector.internal.AnalyticsConnectorRegistrar"
                    android:value=
    "com.google.firebase.components.ComponentRegistrar" />
                 <meta-data
                    android:name=
    "com.google.firebase.components:com.google.firebase.iid.Registrar"
                    android:value=
    "com.google.firebase.components.ComponentRegistrar" />
                 <meta-data
                    android:name=
    "com.google.firebase.components:com.google.firebase.auth.FirebaseAuthRegistrar"
                    android:value=
    "com.google.firebase.components.ComponentRegistrar" />
    </
    service>
    to

    Code:
    <service android:name="com.google.firebase.components.ComponentDiscoveryService" >
                <meta-data
                    android:name=
    "com.google.firebase.components:com.google.firebase.analytics.connector.internal.AnalyticsConnectorRegistrar"
                    android:value=
    "com.google.firebase.components.ComponentRegistrar" />
                 <meta-data
                    android:name=
    "com.google.firebase.components:com.google.firebase.iid.Registrar"
                    android:value=
    "com.google.firebase.components.ComponentRegistrar" />
                 <meta-data
                    android:name=
    "com.google.firebase.components:com.google.firebase.auth.FirebaseAuthRegistrar"
                    android:value=
    "com.google.firebase.components.ComponentRegistrar" />
                 <meta-data android:name=
    "com.google.firebase.components:com.google.firebase.firestore.FirestoreRegistrar"
                 android:value=
    "com.google.firebase.components.ComponentRegistrar"/>
    </
    service>
    The last meta-data tag is added to include FirebaseFirestore. This is a mandatory and needed step to get anything working with Firestore.
     
  12. DonManfred

    DonManfred Expert Licensed User

  13. LucaMs

    LucaMs Expert Licensed User

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice