Commit Graph

93 Commits

Author SHA1 Message Date
2a78d2e556 Add button to export sets as CSV - 2.6 🚀
Closes #203
2023-11-21 10:26:34 +13:00
2f24104d13 Set finished notification sound to null - 2.4 🚀
Closes #195
2023-11-20 12:24:43 +13:00
cc6b37e16a Fix timer not always ending - 2.3 🚀
This bug is because I mis-named the event for the alarm finishing.
It would only be possible to create this bug if you do the following:
1. Create a timer
2. Swap to another app for it's duration and keep your phone screen
   active
3. On timer completion, without tapping the notification, focus the app
4. See the timer has not been set to zero
2023-11-15 22:44:02 +13:00
b6afbfcc17 Fix automatic backups - 1.181 🚀
- The broadcast intent wasn't receiving the target directory
- Add separate button for storing the backup location
2023-11-13 15:19:35 +13:00
d0c0a52ab4 Simplify logic of AlarmService.playSound
This probably won't fix the disabling sound bug.
2023-11-13 14:12:25 +13:00
79e462efc2 Fix app crashing when you change system theme
More specifically, this happens when you restore an
activity (not sure exactly when this happens).
2023-11-13 14:07:45 +13:00
706d4d1bbd Add duration setting to alarm vibrations - 1.176 🚀
Closes #179
2023-11-12 12:25:09 +13:00
744ed928f0 Fix timer page flashing 00:00 on first navigate 2023-11-04 13:53:19 +13:00
9dc188e6ec Remove duplicated permission in AndroidManifest
Also add something to remove the "advertising ID"
or whatever the hell that means. (Thanks google?)
2023-07-17 18:43:15 +12:00
514efc6467 Upgrade react-native to 0.72.1
This unfortunately has broken the unit tests.
Will have to worry about fixing them later.
Everything seems to be working other
than that.
2023-07-07 13:17:19 +12:00
76e5aeacfd Choose directory when backing up automatically - 1.135
Related to #146.
2023-03-27 14:34:17 +13:00
0e7920bde9 Show a toast when EACCESS from backing up - 1.133
I don't like having a bunch of backups saying
massive (x).db. Also this masks the issue of permissions,
which is easily fixed by deleting/moving the old massive.db.
2023-03-24 17:51:16 +13:00
d2a1c432bb Handle EACCESS in BackupModule 2023-03-24 17:43:28 +13:00
79a48b1e47 Run automatic backups after database imports - 1.131 2023-03-09 18:48:32 +13:00
13b340f5be Add setting to automatically backup - 1.130
Every day at 6am (also immediately when toggled)
we will copy the massive.db file to the Download
directory.
2023-03-09 17:16:08 +13:00
4db820f10a Remove DownloadModule
This was no longer in use
2023-03-07 18:23:38 +13:00
00d4edcfc3 Request FOREGROUND_SERVICE permission - 1.127
Related to #142
2023-02-24 19:30:48 +13:00
cffc458338 Start alarms as a foreground service
Related to #142.
Can't be sure this fixed anything because I can't replicate the error
on my emulators running android 13. I need to install android 13
on a real device and try replicate + see if this fixes it.
2023-01-03 17:04:51 +13:00
a2721e9f12 Use sqlite in Android code for alarm settings
Closes #129
2023-01-02 18:54:35 +13:00
9c184c5924 Add log when alarm finishes 2022-12-08 15:56:09 +13:00
6071957a40 Suppress unused parameter in TimerDone.kt 2022-12-02 16:31:20 +13:00
c2994da041 Make getManager private on AlarmModule
It was never used publicly.
2022-12-02 14:47:54 +13:00
6676efe69f Simplify AlarmModule 2022-11-30 14:23:24 +13:00
2d1bed0671 Remove unused import in SettingsModule 2022-11-30 14:23:15 +13:00
be4098962e Add settings module for android 2022-11-21 18:15:43 +13:00
60fe324e06 Send 00:00 at end of alarm event 2022-11-10 15:15:14 +13:00
bc4bc44b7d Fix download notifications
I accidentally deleted DownloadModule which
sent a notification of the successful export
of sets/plans
2022-11-08 16:32:57 +13:00
3c17a12f6e Fix settings for adding 1 min to rest timer
Previously when adding one minute to the rest timer from
the notification, settings weren't being used (sound,
vibration).

Closes #113
2022-11-07 15:56:07 +13:00
97442bc292 Fix adding one minute to a complete alarm 2022-11-05 17:22:51 +13:00
806480532f Add 1 minute to timer from notification 2022-11-05 14:46:42 +13:00
7c9b4bf5f4 Remove unused android code 2022-11-05 12:53:48 +13:00
0e5de0e519 Add noSound to AlarmModule 2022-11-03 21:59:12 +13:00
fcce1ad9ef Add native events to communicate the running timer
Closes #99
2022-11-03 20:04:15 +13:00
5441aa164b Move registerReceiver to no avail 2022-10-28 17:31:10 +13:00
1c58dc2db1 Local broadcast receiver is not running on stop intent 2022-10-28 17:22:26 +13:00
8504f8b811 Merge branch 'master' into alarm-module 2022-10-28 16:49:39 +13:00
46dcfb96bf Add broadcast receiver to AlarmModule 2022-10-28 16:48:29 +13:00
859fa2a89f Add setting to disable sound on rest timers
Closes #50
2022-10-27 17:28:27 +13:00
21d9149498 Quit trying to move timer logic into AlarmModule
I just can't figure out how to make the stop button
and delete intents work.
2022-10-24 14:45:21 +13:00
3cb6e8757b Make timer alarm have a stop button 2022-10-19 19:59:22 +13:00
d21e7986e3 Add full screen android intent for alarm 2022-10-18 21:38:06 +13:00
0b041f9643 Stop timer if notification is dismissed
Closes #86
2022-10-16 13:08:37 +13:00
e6228b3990 Remove non null assertions in TimerService
This might help fix the error we were seeing on the
play store.
2022-10-13 16:12:49 +13:00
9dd929b177 Handle missing intent extras in TimerService
This might fix an error I was seeing on production in the Play store.
2022-10-13 13:33:01 +13:00
e0b84af9e7 Move sessions page functionality onto Plan page
The sessions page mostly copied the exact same features as Plans,
which would confuse the user.
2022-10-12 14:07:48 +13:00
e501276463 Keep alarm notification on screen
If the user picks up their phone late while the alarm
is going, they might not realise the controls are in
the notification not the app.

Closes #75
2022-10-05 21:11:44 +13:00
19fa8aa13a Stop alarm when calling stop native module 2022-09-26 16:10:26 +13:00
a20a0a1832 Add timer page
Closes #54
2022-09-26 14:38:25 +13:00
facceae2a8 Disable sound on complete notification for timers
Closes #55
2022-09-25 23:53:15 +13:00
118b87bef1 Always cancel old timer when new one starts
Previously we didn't cancel the alarm or notification.
Closes #45
2022-09-24 16:55:55 +12:00