yassineAbou / Clock

A Jetpack Compose clock app with timer, stopwatch and one-time/recurring alarms.
Apache License 2.0
19 stars 4 forks source link
accompanist alarm android android-architecture-components baseline-profiles clock compose-navigation flow hilt jetpack-compose kotlin kotlin-coroutines livedata mterial-design mvvm room stopwatch timer viewmodel workmanager
Weather

Clock

Kotlin version 1.8.21 Gradle version 8.0.2 Android Studio Flamingo Android min version 7

Presenting a clock app which was totally made in Jetpack Compose! You can use this app's timer and stopwatch functions, which are linked to workManager. The animation is added to the app to increase engagement. Also, you can create one time and recurring alarms and edit, enable, and disable them.

Get it on Google Play

Screenshots

Features

For full clock app functionality, permissions vary by Android version:

Architecture

The architecture of this application relies and complies with the following points below:

Package Structure

com.yassineabou.clock        # Root Package
├── data                 # For data operations
│   ├── local            # Handling local data
|   ├── manager          # Managing data operations
│   ├── model            # Data models
│   ├── receiver         # For receiving broadcasts
│   ├── repository       # Single source for data
│   └── workManager      # Handles background tasks
│       ├── factory      # For creating worker instances
│       └── worker       # Background task definitions
|  
├── di                   # Dependency Injection: Manages dependencies
│  
├── ui                   # UI Layer: Activity, Screens, ViewModels
│   ├── alarm            # Manages alarm functionalities
|   ├── stopwatch        # Manages stopwatch functionalities
|   ├── theme            # Handles app theme preferences
|   ├── timer            # Manages timer functionalities
|   ├── MainActivity     # Main activity hosting all fragments
│   └── Screen           # Manages different screens
|  
├── utils                # Utility Classes / Kotlin extensions for reusability
│   ├── components       # Reusable UI components
│   ├── helper           # Provides helper methods
|   ├── Extensions       # Kotlin extension functions
│   └── GlobalProperties # Global properties used across the app
└── ClockApplication     # Application class for global settings

Built With 🧰

Contribution

We welcome contributions to our project! Please follow these guidelines when submitting changes:

Thank you for your interest in contributing to our project!

License


Copyright 2023 Yassine Abou 

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  

    http://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.