Skip to content

BlackyHawky/Clock

Repository files navigation

Clock

Clock is a privacy-conscious open-source clock, based on AOSP Clock.

Get it on GitHub Get it on F-Droid

Table of Contents

Features :

  • Flip and shake action to dismiss/postpone alarm;
  • Turn off/postpone the alarm with the power button or volume buttons;
  • For Snapdragon phones only, the alarm is triggered when the phone is switched off;
  • Swipe to delete an alarm;
  • Duplicate alarms;
  • Customizable alarm title;
  • Customizable ringtone;
  • Light, dark or system theme;
  • AMOLED mode for dark theme;
  • Digital or analog clock style;
  • Display home time when traveling;
  • Display the time in many cities around the world;
  • Timer, stopwatch and bedtime (experimental) included;
  • Possibility of sharing your stopwatch with your contacts;
  • Customizable screensaver;
  • Modern widgets;
  • Material design;
  • Dynamic colors for Android 12+;

Common Issues

  • Problem encountered when displaying times in bedtime mode notifications;
  • Maybe other things, but nothing about the alarm's functionality.

As I'm not an expert developer, some problems may unfortunately not be solved without help.

Contributing ❤

Reporting Issues

Whether you encountered a bug, or want to see a new feature in Clock, you can contribute to the project by opening a new issue here. Your help is always welcome!

Before opening a new issue, be sure to check the following:

  • Does the issue already exist? Make sure a similar issue has not been reported by browsing existing issues. Please search open and closed issues.
  • Is the issue still relevant? Make sure your issue is not already fixed in the latest version of Clock.
  • Did you use the issue template? It is important to make life of our kind contributors easier by avoiding issues that miss key information to their resolution. Note that issues that that ignore part of the issue template will likely get treated with very low priority, as often they are needlessly hard to read or understand (e.g. huge screenshots, or addressing multiple topics).

Code Contribution

Getting Started

Clock project is based on Gradle and Android Gradle Plugin. To get started, you can install Android Studio, and import project 'from Version Control / Git / Github' by providing this git repository URL (or git SSH URL). Of course you can also use any other compatible IDE, or work with text editor and command line.

Once everything is up correctly, you're ready to go!

Guidelines

Clock is a complex application, when contributing, you must take a step back and make sure your contribution:

  • Is actually wanted. Best check related open issues before you start working on a PR. Issues with "PR" and "contributor needed" labels are accepted, but still it would be good if you announced that you are working on it. If there is no issue related to your intended contribution, it's a good idea to open a new one to avoid disappointment of the contribution not being accepted. For small changes or fixing obvious bugs this step is not necessary.
  • Is only about a single thing. Mixing unrelated contributions into a single PR is hard to review and can get messy.
  • Has a proper description. What your contribution does is usually less obvious to reviewers than for yourself. A good description helps a lot for understanding what is going on, and for separating wanted from unintended changes in behavior.
  • Uses already in-place mechanism and take advantage of them. In other terms, does not reinvent the wheel or uses shortcuts that could alter the consistency of the existing code.
  • Has a low footprint. Some parts of the code are executed very frequently, and the keyboard should stay responsive even on older devices.
  • Does not bring any non-free code or proprietary binary blobs. This also applies to code/binaries with unknown licenses. Make sure you do not introduce any closed-source library from Google. If your contribution contains code that is not your own, provide a link to the source.
  • Complies with the user privacy principle Clock follows.

License

Clock is licensed under GNU General Public License v3.0.

Permissions of this strong copyleft license are conditioned on making available complete source code of licensed works and modifications, which include larger works using a licensed work, under the same license. Copyright and license notices must be preserved. Contributors provide an express grant of patent rights.

See repo's LICENSE file.

Since the app is based on Apache 2.0 licensed AOSP Clock, an Apache 2.0 license file is provided too.

Screenshots

Click here to see screenshots
Screenshot 1 Screenshot 2 Screenshot 3 Screenshot 4 Screenshot 5 Screenshot 6 Screenshot 7 Screenshot 8

Credits