GSoC’21 with SCoRe Lab: Week-10

Abhi Kulshrestha
SCoRe Lab
Published in
3 min readAug 19, 2021

--

Hello Everyone! Here I am with another Blogpost.

In this blog, I’ll discuss Week-10 of the coding period of GSoC’21 with scorelab.

So, Google Summer of Code 2021 with scorelab journey is about to end. Now the coding period has ended and we are required to submit the final reports of our project. and after this, we will have our final evaluations.

In case If you haven’t checked out my week-8 & 9 blog:- GSoC’21 with SCoRe Lab: Week-8 and Week-9

Last week, I implemented Notification Screen and improved styles too. Alongside it, I also added test cases for the added functionalities.
So During Week-10, I added Splash Screen Functionality and updated the Firebase Database Security rules for both Firestore and Realtime Database.

How did Week-10 go and What did I do throughout week-10?

Very last week of Google Summer of Code 2021 went amazing. I am learning a lot of new things and I am really enjoying this learning phase.

During this week, I added Splash screen functionality using an npm library called bootsplash. Firstly I implemented Splash Screen using the react-native-splash-screen library, which is quite outdated and isn’t active for about 2–3 years. Observing this, my Mentor asked me to find some alternative library that should be active and updated. So upon searching, I found bootsplash suitable. Using react-native-splash-screen may lead to some dependencies errors in the future. So taking the safe side, we chose Bootsplash.

After this, my mentor asked me to consider the Firebase Security Rules for Database protection. We were required to add some rules to the database, covering each and every entity (collection). At first, I didn’t know much of it But learned from the documentation provided by firebase itself.

Basically, they are divided into read and write:-

  • read
    1) get
    2) list
  • write
    1) create
    2) update
    3) delete

So here are the methods for which one can set the rules like only the authenticated person can create, update and delete the queries, other than him cannot.

Here is the Basic Example: -

service cloud.firestore {
match /databases/{database}/documents {
match /cities/{city} {
match /landmarks/{landmark} {
allow read, write:if request.auth != null;
}
}
}
}

Related Issue:- https://github.com/scorelab/Ask-SCoRe/issues/38
Related Pull Request:- https://github.com/scorelab/Ask-SCoRe/pull/39

Related Issue:- https://github.com/scorelab/Ask-SCoRe/issues/41
Related Pull Request:- https://github.com/scorelab/Ask-SCoRe/pull/42

Conclusion

Throughout the journey of Google Summer of Code 2021 with scorelab, I Learned hell a lot of things. Scorelab supported a lot, mentors are so helpful. Special Thanks to Mentors(Shehand, Wathsara) for their constant help, support, and advice.

Thank you so much for reading! Stay Safe

For any queries, you can reach me out on LinkedIn

--

--