Skip to content

Releases: SHcommit/SHFirestoreService

[Fix] Fix and divide request(endpoint:) when firestoreMethod type is update,save,delete

25 Apr 14:05

Choose a tag to compare

  • In previous code, FirestoreService.requet(endpoint:) -> AnyPublihser<Void, FirestoreServiceError>'s save, update logic was equal using firestore's setData func. But It isn't good as it may overwrite previously existing fields in a document.

  • So I replaced setData with updateData func and addDocument func when FirestoreMehtod types is update or save.

Improved FirestoreService query function

24 Apr 04:20

Choose a tag to compare

  • Improvement of overlapping Firestore query parameters.
  • Firestore Service Protocol return type Error -> Abstract to FirestoreService Error -> Concrete conversion

A simple example to utilize SHFirestoreService has been added.

19 Apr 15:32

Choose a tag to compare

In the example, you can see the logic of making a request to Firestore and receiving a response through the FirestoreService object based on the endpoint and request type.

[Fix] FirestoreService's init access modifier convert to public

19 Apr 15:09

Choose a tag to compare

FirestoreService's init access modifier converted to public.

First Release SwiftPM

19 Apr 14:44

Choose a tag to compare

SHFirestoreService implementation.

The example has not been implemented yet.