SimonMarquis / SleepTimer

💤 Simplest Sleep Timer
https://play.google.com/store/apps/details?id=fr.smarquis.sleeptimer
Apache License 2.0
109 stars 12 forks source link

A way to set default start time #31

Closed MichelJonkman closed 1 year ago

MichelJonkman commented 1 year ago

It would be awesome if we could set the default time and maybe even the increment time. This could simply be done through a config file somewhere on the filesystem so no UI has to be made for it.

SimonMarquis commented 1 year ago

Hi @MichelJonkman, unfortunately this would mean adding permissions to read the file system, handle reading files, exposing new APIs, documentation, etc. and this is not the goal of this project. Furthermore, users that would create such configuration file and copy it to the appropriate location probably can simply re-compile this project with the values they want 😄

https://github.com/SimonMarquis/SleepTimer/blob/e88f7463cb6b4622ec44baa6dcb27f2bb9aa9ad4/app/src/main/java/fr/smarquis/sleeptimer/SleepNotification.kt#L26-L28

MichelJonkman commented 1 year ago

@SimonMarquis I'd love to recompile it myself but I have no knowledge of compiling Android apps, is this easy to do?

SimonMarquis commented 1 year ago

You should be able to simply download and setup Android Studio. Then import the project (import VCS). Modify the values you want. Click the green arrow to compile and install the app on your device.

MichelJonkman commented 1 year ago

Thank you for the explanation, I will do this when I hopefully don't forget about it 😛