Coder Social home page Coder Social logo

2024-dev2-012 / berlinclock Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 525 KB

An Android app showcases the Berlin Clock, a time-telling device that uses a series of illuminated colored blocks

Kotlin 100.00%
clean-architecture coroutines-flow dagger-hilt espresso-framework jetpack-compose junit kotlin material3-android mockk-android mvvm

berlinclock's Introduction

Berlin clock

This Android app showcases the Berlin Clock, a time-telling device that utilizes a series of illuminated colored blocks. The app is built using Clean Architecture + MVVM + TDD

This characteristic clock reads from top to bottom.

  • The top big lamp - (yellow) - blinks to indicate seconds and remains illuminated only during even seconds.
  • The first line - 4 lamps (red) - each lamp representing five hours.
  • The second line - 4 lamps (red) - each lamp represents one hour.
  • The third line - 11 lamps (yellow, every 3rd is red) - each lamp represents five minutes.
  • The fourth line - 4 lamps (yellow) - each lamp represents one minute.

How to run

  1. In Android Studio, create a new project by selecting the "Project from Version Control" option, then clone the project using the following repository link.
   https://github.com/2024-DEV2-012/BerlinClock.git
  1. Once the Gradle sync is successful, proceed to run the app on either an emulator or a connected device. The minimum API level required is 29, and it has been tested against a device running Android 13.
  2. You can also use the CLI to build and install the app using the following command.
 ./gradlew installDebug

Tech Stack

  • Kotlin
  • Jetpack Compose
  • Coroutines + Flow for asynchronous
  • MVVM + Clean architecture + TDD
  • Material Design 3 components
  • StateFlow and ViewModel
  • Dagger Hilt - Dependency Injection
  • Unit tests - JUnit, MockK, Truth
  • Instrumentation tests - Espresso

Screenshots

Automatic clock Manual clock Manual clock

berlinclock's People

Contributors

2024-dev2-012 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.