The Chat Basket

Glitch
3 min readSep 13, 2020

--

Hello guys. Glitch is back after watching another popular anime fruit basket.

Fruit Basket

For those who haven't watched the show, the plot is Tohura Honda the protagonist meets the Soma family who is cursed to turn into their animal forms when they are weak, stressed, or when they are hugged by anyone of the opposite sex that is not possessed by a zodiac spirit. Its an interesting story do give it a try.

So what’s with the chat part. In my last blog, I have taught you guys the Sharingan coding. So now that you are familiar with GitHub and StackOverflow, let's make a project using it. Here we will learn how to implement SDK libraries.

SDK libraries are like soma family they transform into whichever zodiac (app )we use them into.

So for this project, we will be using an SDK library Gappein. It's like Shigure, mature but funny. So to create a beautiful chatting app we need a database. For that, we will be using Firebase.

Glitch what is Firebase — It’s a database cloud you can use. We don’t need to worry about it since our Shigure will take care of that.

So how to start, firstly to transform our Shigure (Gappein SDK) into our app we will need to implement it. So that’s an easy thing just add these lines in your build Gradle.

adding dependencies to buil.gradle

Adding these files and sync the project gives a hug to our Shigure or calls our SDK library Gappein.

Similarly to call any SDK library in your project you just need to add it’s dependencies in your build Gradle and boom you have access to all the properties of that library.

Once adding the dependencies now its time to transform. So to transform your app into a sexy chatting app or to add a chat view in your app just call Gappein using the below lines

Initialize the Gappein SDK with one line.

Set the User bypassing information about the currently logged in user

You can either build your own UI or use our UI SDK to create a beautiful chat experience. To use our UI SDK add the following to your app’s build.gradle -

To open the Channel List Fragment add the following code -

To open the Chat between two users, use the following code -

And ta-da!! just in few steps our app transformed into a beautiful chat app.

Learn more about it at. Link for the Gappein SDK

All thanks to our sensei Himanshu Singh to develop such a fun library for us to play.

That’s all about for this post keep tuned for the next one. Happy coding!!

--

--

No responses yet