Skip to content
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

Minor iAPS left-overs #136

Closed
marionbarker opened this issue Apr 29, 2024 · 7 comments
Closed

Minor iAPS left-overs #136

marionbarker opened this issue Apr 29, 2024 · 7 comments

Comments

@marionbarker
Copy link
Contributor

These are nits - just providing this list so they are available for update when and if desired.

I am testing only alpha branch (soon to be dev).
Configuration: commit 99effeb

This is a plist file so a little different:

  • Open-iAPS/FreeAPS/Resources/Info.plist
  • contains <string>com.artificial-pancreas-iaps</string>

The rest of these are in *.swift files and indicate the line numbers where hard-coded "iAPS" exists:

  • FreeAPS/Sources/Shortcuts/State/
    • ListStateIntent.swift, line 6, 12, (not sure about the StateiAPSResults, see next file)
    • StateIntentRequest.swift (I suspect this should be left alone - I do not know what it does)
    • ListStateView.swift (same comment)

Note: many of the rest of these should (later) be modified to use appName instead of hard coded string

  • I did not list all the places with hard-coded Open-iAPS but there are a lot
  • In the short term - simplest solution is to replace the hard-coded "iAPS" with hard-coded "Open-iAPS"
  • Next update, we can modify to using appName instead - that takes more time and effort

Hard-coded string from iAPS to Open-iAPS

  • Open-iAPS/FreeAPS/Sources/Application/FreeAPSApp.swift, line 58
  • Open-iAPS/FreeAPS/Sources/Modules/HealthKit/View/AppleHealthKitRootView.swift line 16
  • Open-iAPS/FreeAPS/Sources/Modules/NightscoutConfig/View/NightscoutConfigRootView.swift lines 106 and 132
  • Open-iAPS/FreeAPS/Sources/Modules/NotificationsConfig/View/NotificationsConfigRootView.swift line 95
  • Open-iAPS/FreeAPS/Sources/Modules/PreferencesEditor/PreferencesEditorStateModel.swift lines 44, 240, 381
  • Open-iAPS/FreeAPS/Sources/Modules/PreferencesEditor/View/PreferencesEditorRootView.swift line 25
  • Open-iAPS/FreeAPS/Sources/Services/WatchManager/GarminManager.swift line 160
  • Open-iAPS/FreeAPS/Sources/Services/Calendar/CalendarManager.swift line 96
  • Open-iAPS/FreeAPSWatch WatchKit Extension/ComplicationController.swift lines 11, 55

Hard-coded string from FAX to Open-iAPS

  • Open-iAPS/FreeAPS/Sources/Modules/PreferencesEditor/PreferencesEditorStateModel.swift line 150
  • Open-iAPS/FreeAPSWatch WatchKit Extension/ComplicationController.swift lines 62, 81
@bjornoleh
Copy link
Contributor

@marionbarker, have all these "leftovers" been fixed by #148?

@marionbarker
Copy link
Contributor Author

Here are some links for your review:

refers to widgetURL(URL(string: "freeaps-x://"))

refers to a loopandlearn dot org page that I don't think exists anymore

The same phrase is in all the strings files too.

Other than this, I believe the left-overs are taken care of.

@bjornoleh bjornoleh added this to Trio May 15, 2024
@bjornoleh
Copy link
Contributor

Here are some links for your review:

refers to widgetURL(URL(string: "freeaps-x://"))

Thanks.

The url string can be updated to the hardcoded "Trio-x://". But we should probably use $(APP_URL_SCHEME) instead. Will have to test before making a PR. If someone wants to pick that up before me, please go ahead.

APP_URL_SCHEME = Trio

<key>CFBundleURLSchemes</key>
<array>
<string>$(APP_URL_SCHEME)</string>

@bjornoleh
Copy link
Contributor

refers to a loopandlearn dot org page that I don't think exists anymore

The same phrase is in all the strings files too.

Other than this, I believe the left-overs are taken care of.

Perhaps this is something for @t1dude to look at, to get to grips with how we best make changes to strings that are translated, now that Crowdin is being set up.

@bjornoleh
Copy link
Contributor

bjornoleh commented May 15, 2024

@MikePlante1 , I am not sure what this does. I assumed it was to open the app when tapping the Live Activity, but that works also when URL(string: "freeaps-x://"

.widgetURL(URL(string: "freeaps-x://"))

I made the PR #197 anyways, for completeness. (replacing the old URL(string: "freeaps-x://")

@marionbarker
Copy link
Contributor Author

Closing this as completed now that PR #197 is merged.

@bjornoleh
Copy link
Contributor

refers to a loopandlearn dot org page that I don't think exists anymore

The same phrase is in all the strings files too.

Other than this, I believe the left-overs are taken care of.

Perhaps this is something for @t1dude to look at, to get to grips with how we best make changes to strings that are translated, now that Crowdin is being set up.

@marionbarker , the LnL link is not fixed yet, but probably will be when #216 is merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants