-
Notifications
You must be signed in to change notification settings - Fork 353
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Simulator Settings Row to DIY version for pump and CGM simulators #525
Conversation
…-down-fix [LOOP-4678] Swipe Down Fix
Happy to work with you on this. How about something like this instead? (This is from @bjorkert - he and I often work together.) |
[reposting with correct account] Thanks! There are a few requirements for this, if you're up for it: We can add easy access to simulator configuration for DIY, but it needs to be behind a feature flag. Could be something like APP_DEMO_MODE, and when you're in demo mode, the simulator configuration is hard to get to (i.e., how it is in dev now). |
…ck pump/cgm" This reverts commit 1ceb6fb.
In order to get a new Feature Flag into LoopKit, we think we would have to modify the protocol for all pump and cgm managers. It looks like the existing DEBUG_FEATURES_ENABLED / allowDebugFeatures variables can be used because that is already in the pump and cgm managers. We reviewed the places where it is applied and it looks reasonable to configure the DIY code to have this enabled. If this is incorrect, then guidance is requested for what change should be made. This updated version builds to the normal, long-press required version of the Simulators unless the DEBUG_FEATURES_ENABLED is uncommented from the LoopConfigOverride.xcconfig file. |
I searched for places where having DEBUG_FEATURES_ENABLED enabled for DIY would change the app. (Note the user would need to know how to enable this easter egg): This is only one I found. (Other items are handled by longPress regardless of this flag).
This is the view on my test phone: I tried all the buttons and they appear to work as expected.
|
Thanks! |
The simulators for pump and CGM do not have an obvious way to delete them so an actual pump and CGM can be added and the time required for the long press is very long.
Based on conversations from my initial attempt, that commit was reverted with a new approach used.
See later comments for continued conversation.