Skip to content

mshivam019/CC-Instagram

Repository files navigation

CC-Instagram

Instagram clone built with Jetpack Compose during Compose Camp

Problem Statement

Using Instagram to socially interact with people has really revolutionized the way of socializing. The way so much has been integrated in this instagram app is quite commendable and making a clone out of it can really help to know what is the actual working and thoughts put in developing and designing the instagram and how we can implement it using Android Jetpack Compose.

Proposed Solution with screenshots

With the usage of Kotlin and Android Jetpack Compose, cloning the various features of for instance Explore page, Reel section, Feed, Stories,Profile page and other important attributes of Instagram as shown in the given screenshots.

App Screenshots

Functionality & Concepts used

  • Login/Sign-up
  • Cloud-Database
  • Explore page
  • Reels page
  • Activity page
  • Profile page

The app has a functional login/sign up feature using Firebase Auth (Confirmation mail may go to spam section), Firestore is used to store user's data and display the details in the profile section of the app. The user can watch videos in the reel section which works with the help of EXOPlayer and the explore page images are loaded using an api with the help of Retrofit and coil, Dagger-Hilt is used for dependency injection, Lifecycle, ViewModel, Kotlin Coroutines with Flow is used for clean app building.

Tech Stack.

  • Kotlin - Kotlin is a programming language that can run on JVM. Google has announced Kotlin as one of its officially supported programming languages in Android Studio; and the Android community is migrating at a pace from Java to Kotlin.
  • Firebase - Firebase is an app development platform that helps you build and grow apps and games users love. Backed by Google and trusted by millions of businesses around the world.
  • Jetpack components:
    • Jetpack Compose - Jetpack Compose is Android’s modern toolkit for building native UI. It simplifies and accelerates UI development on Android. Quickly bring your app to life with less code, powerful tools, and intuitive Kotlin APIs.
    • Android KTX - Android KTX is a set of Kotlin extensions that are included with Android Jetpack and other Android libraries. KTX extensions provide concise, idiomatic Kotlin to Jetpack, Android platform, and other APIs.
    • AndroidX - Major improvement to the original Android Support Library, which is no longer maintained.
    • Lifecycle - Lifecycle-aware components perform actions in response to a change in the lifecycle status of another component, such as activities and fragments. These components help you produce better-organized, and often lighter-weight code, that is easier to maintain.
    • ViewModel -The ViewModel class is designed to store and manage UI-related data in a lifecycle conscious way.
    • Room database - The Room persistence library provides an abstraction layer over SQLite to allow fluent database access while harnessing the full power of SQLite.
    • Kotlin Coroutines - A concurrency design pattern that you can use on Android to simplify code that executes asynchronously.
    • Retrofit - Retrofit is a REST client for Java/ Kotlin and Android by Square inc under Apache 2.0 license. Its a simple network library that is used for network transactions. By using this library we can seamlessly capture JSON response from web service/web API.
    • GSON - JSON Parser,used to parse requests on the data layer for Entities and understands Kotlin non-nullable and default parameters.
    • Kotlin Flow - In coroutines, a flow is a type that can emit multiple values sequentially, as opposed to suspend functions that return only a single value.
    • Dagger Hilt - A dependency injection library for Android that reduces the boilerplate of doing manual dependency injection in your project.
    • Logging Interceptor - logs HTTP request and response data.
    • Coil- An image loading library for Android backed by Kotlin Coroutines.
    • Timber- A logger with a small, extensible API which provides utility on top of Android's normal Log class.
    • EXOPlayer - Application level media player for Android. It provides an alternative to Android’s MediaPlayer API for playing audio and video both locally and over the Internet.

Application Link & Future Scope

App apk

As the app currently lacks the feature of adding stories and posts, we hope to implement these features as soon as possible while making it more user friendly and efficient. Also we hope to use In-app messaging using firebase to engage users.