Commit Graph

61 Commits

Author SHA1 Message Date
Brandon Presley fcce1ad9ef Add native events to communicate the running timer
Closes #99
2022-11-03 20:04:15 +13:00
Brandon Presley 5441aa164b Move registerReceiver to no avail 2022-10-28 17:31:10 +13:00
Brandon Presley 1c58dc2db1 Local broadcast receiver is not running on stop intent 2022-10-28 17:22:26 +13:00
Brandon Presley 8504f8b811 Merge branch 'master' into alarm-module 2022-10-28 16:49:39 +13:00
Brandon Presley 46dcfb96bf Add broadcast receiver to AlarmModule 2022-10-28 16:48:29 +13:00
Brandon Presley 859fa2a89f Add setting to disable sound on rest timers
Closes #50
2022-10-27 17:28:27 +13:00
Brandon Presley 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
Brandon Presley 3cb6e8757b Make timer alarm have a stop button 2022-10-19 19:59:22 +13:00
Brandon Presley d21e7986e3 Add full screen android intent for alarm 2022-10-18 21:38:06 +13:00
Brandon Presley 0b041f9643 Stop timer if notification is dismissed
Closes #86
2022-10-16 13:08:37 +13:00
Brandon Presley 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
Brandon Presley 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
Brandon Presley 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
Brandon Presley 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
Brandon Presley 19fa8aa13a Stop alarm when calling stop native module 2022-09-26 16:10:26 +13:00
Brandon Presley a20a0a1832 Add timer page
Closes #54
2022-09-26 14:38:25 +13:00
Brandon Presley facceae2a8 Disable sound on complete notification for timers
Closes #55
2022-09-25 23:53:15 +13:00
Brandon Presley 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
Brandon Presley 0f571ac3ea Rename notification channels
Closes #44
2022-09-24 15:40:37 +12:00
Brandon Presley 6ddecf60f0 Handle VIBRATOR_SERVICE deprecation for alarms
Closes #28.
2022-09-19 13:23:00 +12:00
Brandon Presley fdb0355aaa Upgrade all packages
Closes #23.
2022-09-19 13:20:58 +12:00
Brandon Presley 98279dcbea Revert "Upgrade react-native"
This reverts commit b46f6c8d64.

Upgrading react-native produces a crash similar to https://github.com/facebook/react-native/issues/34658
2022-09-17 12:33:45 +12:00
Brandon Presley b46f6c8d64 Upgrade react-native 2022-09-17 00:46:17 +12:00
Brandon Presley 3abc4da861 Make countdownTimer nullable in TimerService 2022-09-08 22:32:48 +12:00
Brandon Presley c44c57e1c4 Fix settings for timer after adding one minute
Both vibration and sound settings weren't applying
after adding one minute to the timer. It would instead
play the default alarm and always vibrate.
2022-09-08 22:11:48 +12:00
Brandon Presley a1cd4e8080 Improve requesting app runs in background 2022-08-30 23:06:39 +12:00
Brandon Presley 81fd21be48 Stop alarm when notification is dismissed 2022-08-30 21:42:38 +12:00
Brandon Presley cb6fc58876 Remove ACCESS_NETWORK_STATE from apk when building
One of my libraries must be adding this, but we don't need it.
2022-08-28 20:16:29 +12:00
Brandon Presley 949aa80d52 Prevent crashes when changing system theme 2022-08-27 14:00:18 +12:00
Brandon Presley 84e3bd1a16 Remove unnecessary permissions and meta-data from AndroidManifest 2022-08-26 17:20:33 +12:00
Brandon Presley 48d4d59ac8 Add ability to choose alarm sound
Closes #5
2022-08-25 20:41:15 +12:00
Brandon Presley 537a1b960d Show notification on file downloads
Closes #4
2022-08-25 20:00:10 +12:00
Brandon Presley 44a94d029a Show notification on screen when timer is complete 2022-08-22 18:31:47 +12:00
Brandon Presley 396970a50b Remove pointless API checking after we already required M+ 2022-08-22 15:51:03 +12:00
Brandon Presley 773de4d966 Fix adding 1 minute after timer has ended 2022-08-22 15:48:53 +12:00
Brandon Presley b264fc815d Stop media player when destroying AlarmService 2022-08-22 15:48:30 +12:00
Brandon Presley 4c185f0346 Add vibration setting for timers 2022-08-20 16:37:59 +12:00
Brandon Presley ba496e8c2d Fix adding 1 minute to timer 2022-07-26 11:37:57 +12:00
Brandon Presley d513b147bc Add ability to add 1 minute to timer 2022-07-19 17:03:43 +12:00
Brandon Presley 839d872c1c Shorten method names in AlarmModule 2022-07-19 16:38:58 +12:00
Brandon Presley 65f6eaff57 Remove TimerBroadcast
This was added briefly because the timer was
pausing when the app was in the background (sometimes).
I read somewhere using a BroadcastReceiver prevents the timer
from being slept by Android, which turned out to be false (on a Pixel
    4).
The actual solution was disabling battery optimizations, so this
broadcast receiver is now redundant.
2022-07-19 16:34:49 +12:00
Brandon Presley 0159956ee8 Merge branch 'no-broadcast' 2022-07-19 16:27:24 +12:00
Brandon Presley 0cb8d7b962 Stop alarm when pressing stop on notification 2022-07-19 14:26:11 +12:00
Brandon Presley c387ee7e61 Run timer in TimerService instead of Broadcast 2022-07-16 16:12:28 +12:00
Brandon Presley f4264b2589 Keep stop action when timer ends 2022-07-10 19:03:14 +12:00
Brandon Presley 19470f6ac0 Delete ExportActivity and ImportActivity 2022-07-09 19:41:19 +12:00
Brandon Presley 052e3e971f Remove ImportModule 2022-07-09 19:39:55 +12:00
Brandon Presley 7b0929bef4 Use react-native libraries for Export and Import 2022-07-09 19:39:11 +12:00
Brandon Presley 07fa6f7ab2 Switch some modals to dialogs and fix light mode 2022-07-06 21:03:56 +12:00
Brandon Presley e4ed53c358 Move logic of TimerService into TimerBroadcast
This was supposed to solve the timer stopping sometimes
when the application was in the background.
It was actually stopping because of battery optimizations.
2022-07-06 16:27:36 +12:00