A sample e-commerce app built with Jetpack Compose and Android Architecture Components.
Just portrait mode is supported for now. This app is still under development and more screens will be added soon.
SCREEN SIGNUP | SCREEN SIGNIN | SCREEN RESETPW | SCREEN HOME | SCREEN DETAIL | SCREEN FAV | SCREEN CART | SCREEN PAYMENT | SCREEN PROFILE |
---|---|---|---|---|---|---|---|---|
- Minimum SDK level 24
- 100% Kotlin based + Coroutines and Flow & State & LiveData
- Android Architecture Components -
Collection of libraries that help you design robust, testable, and maintainable apps.
- A single-activity architecture, using the Navigation Component to manage composable navigation.
- Lifecycle - perform an action when lifecycle state changes
- ViewModel - Stores UI-related data that isn't destroyed on UI changes.
- UseCases - Located domain layer that sits between the UI layer and the data layer.
- Repository - Located in data layer that contains application data and business logic.
- Android Hilt - Dependency Injection Library
- Retrofit A type-safe HTTP client for Android and Java
- OkHttp An HTTP client that efficiently make network requests
- Moshi Moshi is a modern JSON library for Android, Java and Kotlin. It makes it easy to parse JSON into Java and Kotlin classes.
- Room The Room persistence library provides an abstraction layer over SQLite to allow for more robust database access while harnessing the full power of SQLite.
- WorkManager WorkManager is an API that makes it easy to schedule deferrable, asynchronous tasks that are expected to run even if the app exits or device restarts.
- Local Notifications A notification is a message that Android displays outside your app's UI to provide the user with reminders, communication from other people, or other timely information from your app.
- kJWT Functional Kotlin & Arrow based library for generating and verifying JWTs and JWSs.
- Firebase - Used for authentication, crashlytics, analytics,
firestore and messaging.
- Firebase Authentication Firebase Authentication provides backend services, easy-to-use SDKs, and ready-made UI libraries to authenticate users to your app.
- Firebase Crashlytics Firebase Crashlytics is a lightweight, realtime crash reporter that helps you track, prioritize, and fix stability issues that erode your app quality.
- Firebase Analytics Firebase Analytics is a free app measurement solution that provides insight on app usage and user engagement.
- Firebase Firestore Cloud Firestore is a flexible, scalable database for mobile, web, and server development from Firebase and Google Cloud.
- Firebase Messaging(FCM) Firebase Cloud Messaging (FCM) is a cross-platform messaging solution that lets you reliably send messages at no cost.
- SharedPreferences Store private primitive data in key-value pairs.
- Testing
- Mockito A mocking framework that tastes really good. It lets you write beautiful tests with a clean & simple API
- MockWebServer A scriptable web server for testing HTTP clients
- Truth A library for performing assertions in tests
- Turbine A small testing library for kotlinx.coroutines Flow
This app uses MVVM (Model View View-Model) + Clean Architecture architecture
E-commerce App uses the DummyJson for constructing RESTful API.
And also uses Firebase for authentication, crashlytics, analytics,
firestore and messaging.
-
Login as a firebase user: Create your own user from the "Create Account" screen.
-
If the application is not in the foreground or background and the notification settings are enabled, a local notification is sent every 15 minutes
-
Firebase push notification sample
-
JWT token expiration sample: Our application automatically refreshes the JWT token every 3 minutes. If the token has expired and the application is sent to the background, upon returning to the foreground, you will be directed to the login screen. This ensures the security of your session and requires you to log in again only if necessary.