Commit graph

9348 commits

Author SHA1 Message Date
bartsopers dcb9e7bf91
Merge pull request #151 from smuething/daggerization-fixes
Daggerization fixes
2020-08-19 14:34:53 +02:00
Steffen Müthing eb909ab924 Turn RileyLinkMedtronicService into a singleton 2020-08-19 13:11:29 +02:00
Steffen Müthing a42c5e701e Add @Inject to RileyLinkMedtronicService constructor
`@Inject`ed types should always have the annotation on their constructor,
otherwise dependency resolution might break.
2020-08-19 13:10:27 +02:00
Steffen Müthing f3bb80c25b Use dagger to inject MedtronicCommunicationManager into RileyLinkMedtronicService 2020-08-19 13:10:02 +02:00
Steffen Müthing 303faf825a Clean up imports 2020-08-19 13:09:27 +02:00
Steffen Müthing 3191b54208 Turn OmnipodCommunicationManager into a singleton 2020-08-19 13:09:01 +02:00
Steffen Müthing ba69b2ffd3 Turn MedtronicCommunicationManager into a singleton 2020-08-19 13:08:34 +02:00
Steffen Müthing 680f3f94d6 Inject AndroidInjector into RileyLinkCommunicationManager using dagger 2020-08-19 13:06:21 +02:00
Milos Kozak 9ca20f425f BG input in wizard improvement 2020-08-19 10:58:45 +02:00
Bart Sopers 5d83e2a26b Omnipod: if Cancel bolus has been pressed before the bolus command has been executed, await bolus command execution before cancelling 2020-08-19 02:36:33 +02:00
Bart Sopers e39c222203 Small Dagger improvements 2020-08-18 23:52:45 +02:00
Andy Rozman 963f0ca851 Merge branch 'omnipod_eros_dev_omnipod_module' of github.com:AAPS-Omnipod/AndroidAPS into omnipod_eros_dev_omnipod_module 2020-08-18 22:33:46 +01:00
Andy Rozman f58874d666 - added injection into RileyLinkCommunicationManager... It must have been removed... 2020-08-18 22:33:02 +01:00
Bart Sopers c753ed6859 Remove some more unused Omnipod code 2020-08-18 22:39:52 +02:00
bartsopers 6c3e7a8f43
Merge pull request #143 from smuething/move-protection-to-core
Move protection to core
2020-08-18 20:00:57 +02:00
Steffen Müthing d0cbaeeb32 Move protection infrastructure to core
The protection infrastructure is useful for other modules like pump drivers,
so it should be in core.
2020-08-18 19:33:50 +02:00
Bart Sopers 56efc3e230 Add missing icons in Omnipod 2020-08-18 19:15:50 +02:00
Bart Sopers 4a0e8aa518 Refresh buttons in Pod Management fragment on EventRileyLinkDeviceStatusChange and indicate when we're still waiting for a RL connection 2020-08-18 19:15:35 +02:00
bartsopers 4a10e0b06b
Merge pull request #144 from smuething/move-singleclickbutton-to-core
Move SingleClickButton to core
2020-08-18 17:15:23 +02:00
Steffen Müthing 75cbc87b4a Move SingleClickButton to core
SingleClickButton is a utility used in a number of modules and such should be
in core. While the app seems to built with the button in app, this wrong
structure should be fixed.

As the button is a UI element, the patch also moves the class to the package
info.nightscout.androidaps.utils.ui.
2020-08-18 15:09:14 +02:00
bartsopers 228441f54c
Merge pull request #139 from smuething/more-daggerization
More daggerization
2020-08-18 12:44:21 +02:00
Steffen Müthing 80f1ed52b3 Move CryptoUtil to core
CryptoUtil is a dependency of ProtectionCheck, so it needs to move to core.
2020-08-18 12:36:25 +02:00
Bart Sopers 48ad85ae6a Move Omnipod tab closer to Overview tab 2020-08-18 12:33:26 +02:00
Bart Sopers ffb0611682 Remove redundant string resources 2020-08-18 12:33:01 +02:00
Bluefox 441030663e
Fix too long number in "adj. req. rate: 1.2000000000000000002" 8b25b5b 2020-08-18 12:22:20 +02:00
Bluefox 8b25b5b351
Fix too long number in "adj. req. rate: 1.2000000000000000002" 2020-08-18 12:20:47 +02:00
Steffen Müthing 3ad41d07c5 Remove unused injector argument in RileyLinkBLE 2020-08-18 01:02:49 +02:00
Steffen Müthing 8f7ba93c47 Daggerize AapsOmnipodManager 2020-08-18 00:29:08 +02:00
Steffen Müthing 0fef4128ef Don't try to access injected omnipodPumpStatus in constructor 2020-08-18 00:25:17 +02:00
Steffen Müthing e432346fc5 Turn RFSpy and RileyLinkBLE into Dagger singletons 2020-08-18 00:25:17 +02:00
Steffen Müthing 3646ef083e Simplify provisioning of PodStateManager
PodStateManager can be provided by AapsPodStateManager, that's much easier than
getting the constructor signature right in the dependency injection module.
2020-08-18 00:25:14 +02:00
Steffen Müthing 7d52228e15 Move RileyLink components to a separate dependency injection module
Having them in the Medtronic module will only create confusion later on.
2020-08-18 00:22:24 +02:00
Bart Sopers 69da89b19b Improve display of Firmware version in Omnipod fragment 2020-08-18 00:12:42 +02:00
Bart Sopers 8c5683faaa Improve readable durations in Omnipod fragment 2020-08-17 23:57:24 +02:00
Bart Sopers 02e818c92d Restore Omnipod firebase event 2020-08-17 23:46:55 +02:00
Bart Sopers 2b10524217 Restore Omnipod wizard dependency in app/build.gradle 2020-08-17 22:56:01 +02:00
Bart Sopers 6442271320 Make OmnipodConst inner classes static 2020-08-17 22:40:17 +02:00
Bart Sopers 8452840cfd Fix missing string resources in Omnipod module 2020-08-17 22:39:44 +02:00
Bart Sopers fb95f267e8 Use updated constructor in RileyLinkOmnipodService 2020-08-17 22:22:15 +02:00
Bart Sopers 7b9cbe7497 Restore RL history for Omnipod 2020-08-17 22:00:56 +02:00
Bart Sopers 18a515e5f7 Removed redundant method on OmnipodPumpPlugin 2020-08-17 19:55:19 +02:00
Bart Sopers 5c4b9846e6 WIP on moving Omnipod into a separate module 2020-08-17 19:53:43 +02:00
Bart Sopers 2a55c6413c Remove redundant DeviceCommandExecutor interface 2020-08-17 00:07:56 +02:00
Bart Sopers b5c46e3bcf WIP on moving Omnipod to a separate module 2020-08-16 23:54:41 +02:00
Bart Sopers 17a2afb4b1 Update version in order to be able to distinguish in Firebase 2020-08-16 22:19:55 +02:00
bartsopers 562c8f04a7
Merge pull request #136 from smuething/enable-ci
Enable minimal CI builds
2020-08-16 21:25:46 +02:00
Steffen Müthing 3c68ca2db2 Remove pinned gradle version, not required anymore 2020-08-16 21:20:52 +02:00
Steffen Müthing 281f8513f2 Enable minimal CI builds
This just builds the fullDebug configuration for now, it does not run unit tests.
But it's a start! :)
2020-08-16 21:20:22 +02:00
bartsopers a30ca700f7
Merge pull request #137 from smuething/protect-pod-management
Add protection to Pod management activity
2020-08-16 21:10:14 +02:00
Bart Sopers 100f8fe235 Some Omnipod cleanup after merge 2020-08-16 17:05:32 +02:00