Commit Graph

12 Commits

Author SHA1 Message Date
Johan Degraeve 5c54bfc479 improvements treatments (not finished)
- TreatmentNSResponse : changed type of createdAt from String to Date
- TreatmentEntryAccessor : functions that use howOld as parameter, changed type from Int to TimeInterval
- created constant for maximum days to upload for treatments, default 7 days
- increased maximum amount of treatments to show in TreatmentsViewController to 100 days
- removed TODO : check that hTTPURLResponse.statusCode is 200
- removed checkIfDisReConnectAfterTimeStampFunction in comments of initializer NightScoutUploadManager (seems not used anymore)
- in DexcomShareUploadManager and NightScoutUploadManager : renamed upload to uploadLatestBgReadings to make clear distinction with other upload functions
- deleted xdrip/Texts/TextsNFCLibre.swift because it's not used (not related to treatments)
- renamed xdrip/Texts/TextsNightScoutTestResult.swift to xdrip/Texts/TextsNightScout.swift
- fix in getLatestTreatments, howOld
- removed getRequireUploadTreatments from TreatmentEntryAccessor, filter on treatments to upload is done in NightScoutUploader
- using a new value in UserDefaults to trigger a NightScout sync. Setting the value to true from anywhere will launch a new sync.
- quite some changes in NightScoutUploadManager
- TreatmentsViewController does not control the sync, it will just trigger it whenever necessary by setting UserDefaults.standard.nightScoutSyncTreatmentsRequired to true
- NightScoutSync is triggered from several places : create a new Treatment, update a Treatment, delete a Treatment, click the sync button
- Removed UIAlertController with result from NightScoutSync. It should always succeed. It's like uploading BgReading's.
- removed file TextsNightScoutTestResult.swift, seems not used
- in TreatmentNSResponse: matchesTreatmentEntry changed : check on date didn't work, not it compares date in milliseconds, that works.
- removed/changed some var's , coreDataManager for example which is now Implicitly Unwrapped Optionals, in stead of optional. This is something which could be improved throughout the project
- after download form NS : check if existing treatments are updated, and if so update locally
- delete treatments at NS : treatments deleted on the app are not permenanetly deleted from coredata, but there's a new attribute "treatmentDeleted" which is set to true. Which means will not be shown in table. It's needed to keep track of deletions at NS
2022-03-02 00:12:01 +01:00
Johan Degraeve df9a07a2c5 add commit.txt to .gitignore 2022-01-17 18:29:29 +01:00
Johan Degraeve 55140637ae removed Version.xcconfig 2021-09-26 21:54:52 +02:00
Johan Degraeve 3777c37fdc add xdrip/VersionOverride.xcconfig in .gitignore 2021-09-24 17:52:34 +02:00
Johan Degraeve 52a674fad0 update gitignore, add Version.xcconfig and xDrip.xcconfig 2021-09-22 18:01:18 +02:00
Johan Degraeve 20c3f97dd9 Removed config files from repository
To build the project :

download files and copy to your project folder :
https://raw.githubusercontent.com/JohanDegraeve/xdripswift/0d485d1978bf90fb51b3a6cef8389f8daddb595d/xDripConfigOverride.xcconfig
https://raw.githubusercontent.com/JohanDegraeve/xdripswift/0d485d1978bf90fb51b3a6cef8389f8daddb595d/xdrip/Version.xcconfig
https://raw.githubusercontent.com/JohanDegraeve/xdripswift/0d485d1978bf90fb51b3a6cef8389f8daddb595d/xdrip/xDrip.xcconfig

edit the file xDripConfigOverride.xcconfig and fill in your own development team XDRIP_DEVELOPMENT_TEAM

example
XDRIP_DEVELOPMENT_TEAM = ABCDEFGH

You can also edit Version.xcconfig to update the version and build number, but this is only required if you also want to submit to upload to the appstore (or TestFlight)
2021-09-22 10:38:01 +02:00
Shahbaz Javeed cde5e90d0f fix order of options on sensor action sheet
The Status and "Stop Sensor" options kept flip-flopping for me which could
result in accidentally stopping a sensor when you don't intend to.  This ensures
the "Status" option shows up as the first option as originally intended.
2021-04-17 18:20:58 -04:00
Johan Degraeve f8ed0c5847 cosmetic changes 2019-07-12 22:43:24 +02:00
Johan Degraeve 7c51f7d203 gitignore 2019-01-22 21:22:52 +01:00
Johan Degraeve f60c7b1e4b progress 2018-12-31 10:32:40 +01:00
Johan Degraeve aed4077516 cosmetic changes 2018-12-22 22:54:14 +01:00
Johan Degraeve 130b3e788e adding gitignore 2018-12-02 14:15:14 +01:00