Android Question B4A 7.8 beta#2 - Firebase Firestore dependencies - Part 3

DonManfred

Expert
Licensed User
Longtime User
After installing Beta #2 i checked again....
I now get firestore partially working. But it ends in a Crash.

Please note that we are using okhtp3 in B4A.
Firestore is referencing a 2.x.x Version of okhttp. Based on @Erel answer in Part 1 of my questions i removed the 3rd party dependency from the firestore.pom file and added a b4a reference to okhttputils2... The compiling process goes on after this.


I guess that in V3 of okhttp they removed some parts which was available in 2.x.x and this causes the crash
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Based on @Erel answer in Part 1 of my questions i removed the 3rd party dependency from the firestore.pom file
This is no longer needed. B4A will ignore missing external dependencies.

Firestore is referencing a 2.x.x Version of okhttp
Are you sure? It is a bit strange. This means that you will not be able to use it together with OkHttp / OkHttpUtils2.

Download OkHttp v2 and add it with #AdditionalJar (instead of OkHttpUtils2).
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
This means that you will not be able to use it together with OkHttp / OkHttpUtils2.
Right. I removed okhttp, added a reference to the v2 and tried again. It works now.

But, as you said, using okhttputils together does not work as of now.

Ok, now i´m facing other problems but i´m pretty sure it is a error in the wrapper
 
Upvote 0

Grant Fullen

Member
Licensed User
That's what's up! Just so you know I'd be fine with paid only instead of donation. That's going to be a very fine and useful library if done correctly.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
It is a bit strange
Yes, but this way i got a Valid Firestore instance (with beta#2 so i think you added the missing field to the CreateResource. Thank you for this )
It is now working. I can get an instance, get a Collection, get all Documents inside the Collection... I can order them, but limiting the results is not working as yet.
Or other... I can get the limit working. OR the order. But not both at the same time.

But it is working and i did some progress. Stay tuned ;-)
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…