-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(firebase_storage): firebase storage Dart & Desktop #67
base: main
Are you sure you want to change the base?
Conversation
@pr-Mais @TimWhiting |
I would look at how the javascript is accessing it: https://github.com/firebase/firebase-js-sdk/blob/master/packages/storage/src/implementation/requests.ts Not sure I would organize it the same as the javascript, but the functions in that file seems to be the api surface I would implement in an FirebaseStorageApiClient class. |
As @TimWhiting said, the JS SDK was my reference in auth, if you look at the API layer in Auth you can take inspiration. |
@pr-Mais @TimWhiting I have already done this but couldn't figure how to extend this by imported code from js sdk as some of functions are implemented twice with different approaches i have searched also the android firebase library so iam stuck at the start but i will try my best |
I used to check the three SDKs for the same functionality (iOS, Android, and JS). There's a way each is implementing something following the practices for the language and framework, but the general idea should be the same. |
sorry for bothering you but how can i test my implementationsof any api request is correct |
how to get "'X-Firebase-Storage-Version'" token inside firebase app @pr-Mais @TimWhiting |
Off-topic but I've just added the newly released |
@Ahmed-elshorbagy sorry for delay. Could you reference a link to where is Regarding testing, write test cases following FlutterFire tests for the Desktop package, and refer to the tests in auth for the Dart package. Also, make an example app in the Desktop package and test the functionalities you implement. |
@pr-Mais https://github.com/firebase/firebase-js-sdk/blob/e34e98e73a72f77ee87d9005d6728402129deda9/packages/storage/src/implementation/request.ts#L249 |
I tracked it down here: https://github.com/firebase/firebase-js-sdk/blob/cdada6c68f9740d13dd6674bcb658e28e68253b6/packages/app/src/api.ts#L31-L51 So this header represents the current SDK version used by the app making the requests. On Dart, could be read from |
cloud. |
+1 |
starting firestorage dart/desktop implementation