GitLiveApp / firebase-kotlin-sdk

A Kotlin-first SDK for Firebase
https://gitliveapp.github.io/firebase-kotlin-sdk/
Apache License 2.0
994 stars 147 forks source link

Add support for Firebase Admin SDK #463

Open gino-m opened 5 months ago

gino-m commented 5 months ago

The Firebase Admin SDK is required server-side by Cloud Functions wanting to interact with Firestore and other services.

Are there any plans to implement this?

nbransby commented 5 months ago

As the api for the admin sdk differs somewhat from the client libraries it feels a little out of scope for this project which focuses on a common api for client-side KMP projects.

That said another jvm target for the java admin sdk could be included with a partial implementation of API present in this project allowing shared code to compile for server-side environments but direct use of the Java Admin SDK would still be required for where the SDKs differ. e.g. initialization.

I will leave this issue open for people to add details on exactly what they looking for in terms of support for the Firebase Admin SDK.

gino-m commented 5 months ago

Thanks for sharing your thoughts on this. Cloud Functions which read and/or write to Firestore will invariably duplicate logic in their corresponding web, Android, and iOS apps; in those cases at least partial support to query and update would be helpful. Thanks!