Git Product home page Git Product logo

clock's Introduction

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 Get it on IzzyOnDroid

Screenshots

Features

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

  • On Android 13+, grant notification permission for alarm, timer, and stopwatch alerts.
  • On Android 12, If SCHEDULE_EXACT_ALARM isn't allowed, a dialog appears. Click "Ok" to be guided to the app settings where you can manually grant the permission.

Architecture

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

  • A single-activity architecture, using the compose navigation to navigate between composables that are connected with the bottom navigation component
  • Pattern Model-View-ViewModel(MVVM) which facilitates a separation of development of the graphical user interface.
  • Android architecture components which help to keep the application robust, testable, and maintainable.

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:

  • Report bugs and feature requests by creating an issue on our GitHub repository.
  • Contribute code changes by forking the repository and creating a new branch.
  • Ensure your code follows our coding conventions.
  • Improve our documentation by submitting changes as a pull request.

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.

clock's People

Contributors

sakaijunsoccer avatar yassineabou avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

clock's Issues

Alarm not sounding

I'm just trying this out. I don't see any clock option. I'm trying to test the alarm but I set the day to today, Saturday, and a couple of minutes ahead of the current time and the alarm does not sound.

Get error with targetSdk 34

This app is amazing! Now, when I set this code to buid.gradle.kts with target sdk 34, I get the following error: In Android 14, it seems that I have to specify FOREGROUND_SERVICE and tags in AndroidManifest.xml, but I don't know which service name to specify. Is it possible for you to let me know if you don't mind?

android.app.InvalidForegroundServiceTypeException: Starting FGS with type none callerApp=ProcessRecord{af3b637 6882:io.alamoa.clock/u0a42} targetSDK=34 has been prohibited

APK download

First thanks for making your app available open source! Would you mind providing the APK here for those without access to PlayStore? I thought of adding it to the IzzyOnDroid repo, but that would need the APK. Thanks in advance!

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.