Jetpack Compose clone of Facebook UI.
Facebook Jetpack Compose Clone is an Facebook clone app built entirely with Jetpack Compose. Version of Jetpack Compose that was used in this project is 1.0.0-beta01
.
This sample showcases:
- Splash and Home screen
- Status update
- Show stories and their animations when loading
- Show posts with images
- Like posts
- Comment posts
Tools that are used in this project are as follows:
Jetpack Navigation Compose
for navigation between composables.Coroutines
for async programming.Hilt
for Depenency Injection.Retrofit
for network requests.Glide
for image loading and cacheing.
- Download the latest canary version of Android Studio Preview.
- Clone repo and run app.
In this project, custom MVVM architecture based on ViewStates was used: link.
Design that was used in this project: link
- All data was mocked and it's located here.
- To customize stories, just modify
getStories()
method. - To customize posts, just modify
getPosts()
method. - To change current active user, which is needed for status update and comments, go inside
UserManager
and provide your own data.
Facebook Jetpack Compose Clone is still under development and some screens are not implemented yet.
Copyright 2020 Josip Šalković
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.