anujji1999 / tracktor

A GitHub user tracking app, inspired from a GIF. πŸ•΅οΈ Can be considered as a demo project to showcase MVVM with latest android development tools

Home Page:https://github.com/theapache64/tracktor/blob/master/extras/dog_stalks_cat.gif

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tracktor πŸ•΅οΈ

GitHub issues GitHub forks GitHub stars GitHub license Twitter

A GitHub user tracking app, inspired from below GIF 🀷

Can be considered as a demo project to showcase MVVM with latest android development tools

Dark Mode Available πŸŒ™

dark_screenshots

Usage πŸ“±

There's this person. You admire him a lot because he's a very passionate programmer. You press the follow button but you're not satisfied with GitHub's feed, since it shows only minimal information about the person you follow. Then this app is for you πŸ˜‰

How to use? πŸ€”

  • Install the latest APK from releases πŸ“₯
  • Add him/her to the list by entering the GitHub username
  • Done πŸ‘

Now you can see whatever he does 😜

Built With πŸ› 

Core 😍

  • Kotlin - First class and official programming language for Android development.
  • Coroutines - For asynchronous and more..
  • Flow - A cold asynchronous data stream that sequentially emits values and completes normally or with an exception.
  • Android Architecture Components - Collection of libraries that help you design robust, testable, and maintainable apps.
    • LiveData - Data objects that notify views when the underlying database changes.
    • ViewModel - Stores UI-related data that isn't destroyed on UI changes.
    • ViewBinding - Generates a binding class for each XML layout file present in that module and allows you to more easily write code that interacts with views.
    • Room - SQLite object mapping library.
  • Dagger 2 - Dependency Injection Framework
  • Retrofit - A type-safe HTTP client for Android and Java.
  • Moshi - A modern JSON library for Kotlin and Java.
  • Moshi Converter - A Converter which uses Moshi for serialization to and from JSON.
  • Glide - An image loading library for Android backed by Kotlin Coroutines.
  • Material Components for Android - Modular and customizable Material Design UI components for Android.
  • TwinKill - A simple library, a collection of utility classes wrapped around JetPack components
  • MaterialColors - Android material color palettes
  • Material Dialogs - A beautiful, fluid, and extensible dialogs API for Kotlin & Android.

Testing πŸ₯Ό

Instrumentation Testing πŸ›‘οΈ

  • Espresso - To write concise, beautiful, and reliable Android UI tests.
  • Barista - To make espresso tests faster, easier and more predictable

Architecture πŸ—Ό

This project follows the famous MVVM architecture and best practices from Google's GithubBrowserSample

Project Structure πŸ“‚

.
β”œβ”€β”€ androidTest
β”‚   └── java
β”‚       └── com
β”‚           └── theapache64
β”‚               └── tracktor
β”‚                   β”œβ”€β”€ ui
β”‚                   β”‚   └── activities
β”‚                   β”‚       β”œβ”€β”€ splash
β”‚                   β”‚       β”‚   └── SplashActivityTest.kt
β”‚                   β”‚       β”œβ”€β”€ userdetail
β”‚                   β”‚       β”‚   └── UserDetailActivityTest.kt
β”‚                   β”‚       └── users
β”‚                   β”‚           └── UsersActivityTest.kt
β”‚                   └── utils
β”‚                       └── DaggerMockRules.kt
β”œβ”€β”€ main
β”‚   β”œβ”€β”€ AndroidManifest.xml
β”‚   β”œβ”€β”€ ic_launcher-playstore.png
β”‚   β”œβ”€β”€ java
β”‚   β”‚   └── com
β”‚   β”‚       └── theapache64
β”‚   β”‚           └── tracktor
β”‚   β”‚               β”œβ”€β”€ App.kt
β”‚   β”‚               β”œβ”€β”€ core
β”‚   β”‚               β”‚   └── events
β”‚   β”‚               β”‚       β”œβ”€β”€ BaseEventSupport.kt
β”‚   β”‚               β”‚       β”œβ”€β”€ EventManager.kt
β”‚   β”‚               β”‚       β”œβ”€β”€ issuecomment
β”‚   β”‚               β”‚       β”‚   β”œβ”€β”€ IssueCommentEventPayload.kt
β”‚   β”‚               β”‚       β”‚   └── IssueCommentEventSupport.kt
β”‚   β”‚               β”‚       β”œβ”€β”€ issues
β”‚   β”‚               β”‚       β”‚   β”œβ”€β”€ IssuesEventPayload.kt
β”‚   β”‚               β”‚       β”‚   └── IssuesEventSupport.kt
β”‚   β”‚               β”‚       β”œβ”€β”€ push
β”‚   β”‚               β”‚       β”‚   β”œβ”€β”€ PushEventPayload.kt
β”‚   β”‚               β”‚       β”‚   └── PushEventSupport.kt
β”‚   β”‚               β”‚       └── watch
β”‚   β”‚               β”‚           └── WatchEventSupport.kt
β”‚   β”‚               β”œβ”€β”€ data
β”‚   β”‚               β”‚   β”œβ”€β”€ local
β”‚   β”‚               β”‚   β”‚   β”œβ”€β”€ AppDatabase.kt
β”‚   β”‚               β”‚   β”‚   β”œβ”€β”€ daos
β”‚   β”‚               β”‚   β”‚   β”‚   └── UserDao.kt
β”‚   β”‚               β”‚   β”‚   └── entities
β”‚   β”‚               β”‚   β”‚       └── UserEntity.kt
β”‚   β”‚               β”‚   β”œβ”€β”€ remote
β”‚   β”‚               β”‚   β”‚   β”œβ”€β”€ ApiInterface.kt
β”‚   β”‚               β”‚   β”‚   β”œβ”€β”€ events
β”‚   β”‚               β”‚   β”‚   β”‚   └── Event.kt
β”‚   β”‚               β”‚   β”‚   └── user
β”‚   β”‚               β”‚   β”‚       └── User.kt
β”‚   β”‚               β”‚   └── repositories
β”‚   β”‚               β”‚       β”œβ”€β”€ EventsRepo.kt
β”‚   β”‚               β”‚       β”œβ”€β”€ PrefRepo.kt
β”‚   β”‚               β”‚       └── UserRepo.kt
β”‚   β”‚               β”œβ”€β”€ di
β”‚   β”‚               β”‚   β”œβ”€β”€ components
β”‚   β”‚               β”‚   β”‚   └── AppComponent.kt
β”‚   β”‚               β”‚   └── modules
β”‚   β”‚               β”‚       β”œβ”€β”€ ActivitiesBuilderModule.kt
β”‚   β”‚               β”‚       β”œβ”€β”€ AppModule.kt
β”‚   β”‚               β”‚       β”œβ”€β”€ DatabaseModule.kt
β”‚   β”‚               β”‚       β”œβ”€β”€ NetworkModule.kt
β”‚   β”‚               β”‚       β”œβ”€β”€ RepoModule.kt
β”‚   β”‚               β”‚       └── ViewModelModule.kt
β”‚   β”‚               β”œβ”€β”€ models
β”‚   β”‚               β”‚   └── UserEvent.kt
β”‚   β”‚               β”œβ”€β”€ ui
β”‚   β”‚               β”‚   β”œβ”€β”€ activities
β”‚   β”‚               β”‚   β”‚   β”œβ”€β”€ splash
β”‚   β”‚               β”‚   β”‚   β”‚   β”œβ”€β”€ SplashActivity.kt
β”‚   β”‚               β”‚   β”‚   β”‚   └── SplashViewModel.kt
β”‚   β”‚               β”‚   β”‚   β”œβ”€β”€ userdetail
β”‚   β”‚               β”‚   β”‚   β”‚   β”œβ”€β”€ UserDetailActivity.kt
β”‚   β”‚               β”‚   β”‚   β”‚   └── UserDetailViewModel.kt
β”‚   β”‚               β”‚   β”‚   └── users
β”‚   β”‚               β”‚   β”‚       β”œβ”€β”€ UsersActivity.kt
β”‚   β”‚               β”‚   β”‚       └── UsersViewModel.kt
β”‚   β”‚               β”‚   └── adapters
β”‚   β”‚               β”‚       β”œβ”€β”€ EventDetailsAdapter.kt
β”‚   β”‚               β”‚       β”œβ”€β”€ UserEventsAdapter.kt
β”‚   β”‚               β”‚       └── UsersAdapter.kt
β”‚   β”‚               └── utils
β”‚   β”‚                   β”œβ”€β”€ DateTimeUtils.kt
β”‚   β”‚                   β”œβ”€β”€ EventRepoUtils.kt
β”‚   β”‚                   β”œβ”€β”€ NightModeUtils.kt
β”‚   β”‚                   β”œβ”€β”€ StringUtils.kt
β”‚   β”‚                   └── test
β”‚   β”‚                       └── OpenForTesting.kt
β”‚   └── res
β”‚       β”œβ”€β”€ drawable
β”‚       β”‚   β”œβ”€β”€ ic_baseline_add_24.xml
β”‚       β”‚   β”œβ”€β”€ ic_baseline_close_24.xml
β”‚       β”‚   β”œβ”€β”€ ic_baseline_delete_outline_24.xml
β”‚       β”‚   β”œβ”€β”€ ic_hacker_100.xml
β”‚       β”‚   β”œβ”€β”€ ic_launcher_foreground.xml
β”‚       β”‚   └── ic_night_mode_24.xml
β”‚       β”œβ”€β”€ drawable-night
β”‚       β”‚   └── ic_night_mode_24.xml
β”‚       β”œβ”€β”€ layout
β”‚       β”‚   β”œβ”€β”€ activity_splash.xml
β”‚       β”‚   β”œβ”€β”€ activity_user_detail.xml
β”‚       β”‚   β”œβ”€β”€ activity_users.xml
β”‚       β”‚   β”œβ”€β”€ item_event_detail.xml
β”‚       β”‚   β”œβ”€β”€ item_user_event.xml
β”‚       β”‚   └── item_user.xml
β”‚       β”œβ”€β”€ mipmap-anydpi-v26
β”‚       β”‚   β”œβ”€β”€ ic_launcher_round.xml
β”‚       β”‚   └── ic_launcher.xml
β”‚       β”œβ”€β”€ mipmap-hdpi
β”‚       β”‚   β”œβ”€β”€ ic_launcher.png
β”‚       β”‚   └── ic_launcher_round.png
β”‚       β”œβ”€β”€ mipmap-mdpi
β”‚       β”‚   β”œβ”€β”€ ic_launcher.png
β”‚       β”‚   └── ic_launcher_round.png
β”‚       β”œβ”€β”€ mipmap-xhdpi
β”‚       β”‚   β”œβ”€β”€ ic_launcher.png
β”‚       β”‚   └── ic_launcher_round.png
β”‚       β”œβ”€β”€ mipmap-xxhdpi
β”‚       β”‚   β”œβ”€β”€ ic_launcher.png
β”‚       β”‚   └── ic_launcher_round.png
β”‚       β”œβ”€β”€ mipmap-xxxhdpi
β”‚       β”‚   β”œβ”€β”€ ic_launcher.png
β”‚       β”‚   └── ic_launcher_round.png
β”‚       β”œβ”€β”€ values
β”‚       β”‚   β”œβ”€β”€ colors.xml
β”‚       β”‚   β”œβ”€β”€ dimens.xml
β”‚       β”‚   β”œβ”€β”€ ic_launcher_background.xml
β”‚       β”‚   β”œβ”€β”€ strings.xml
β”‚       β”‚   └── styles.xml
β”‚       └── values-night
β”‚           β”œβ”€β”€ colors.xml
β”‚           └── styles.xml
β”œβ”€β”€ sharedTest
β”‚   └── java
β”‚       └── com
β”‚           └── theapache64
β”‚               └── tracktor
β”‚                   └── utils
β”‚                       └── test
β”‚                           └── observeForTesting.kt
└── test
    β”œβ”€β”€ java
    β”‚   └── com
    β”‚       └── theapache64
    β”‚           └── tracktor
    β”‚               β”œβ”€β”€ data
    β”‚               β”‚   β”œβ”€β”€ local
    β”‚               β”‚   β”‚   └── daos
    β”‚               β”‚   β”‚       └── UserDaoTest.kt
    β”‚               β”‚   └── repositories
    β”‚               β”‚       └── EventsRepoTest.kt
    β”‚               β”œβ”€β”€ ui
    β”‚               β”‚   └── activities
    β”‚               β”‚       β”œβ”€β”€ splash
    β”‚               β”‚       β”‚   └── SplashViewModelTest.kt
    β”‚               β”‚       β”œβ”€β”€ userdetail
    β”‚               β”‚       β”‚   └── UserDetailViewModelTest.kt
    β”‚               β”‚       └── users
    β”‚               β”‚           └── UsersViewModelTest.kt
    β”‚               └── utils
    β”‚                   β”œβ”€β”€ DateTimeUtilsTest.kt
    β”‚                   └── StringUtilsKtTest.kt
    └── resources
        └── robolectric.properties

77 directories, 88 files

Credits πŸ€—

TODO πŸ—’οΈ

  • Support more GitHub events
  • Add more test cases

Author ✍️

  • theapache64

About

A GitHub user tracking app, inspired from a GIF. πŸ•΅οΈ Can be considered as a demo project to showcase MVVM with latest android development tools

https://github.com/theapache64/tracktor/blob/master/extras/dog_stalks_cat.gif


Languages

Language:Kotlin 100.0%