miyeongkim
eaa32355cd
Merge branch 'nightscout:dev' into dev
2023-03-13 11:25:58 +09:00
miyeongkim
804ee6e898
fix "ArithmeticException: divide by zero"
2023-03-13 11:24:06 +09:00
Carlos Rafael Giani
bec7a4aa97
combov2: Replace unsafe casts
2023-03-12 22:40:54 +01:00
Carlos Rafael Giani
cc4cd2dc04
comboctl-parser: Don't try to interpret text in error screens
...
That text shows contents that are different to that of warning screens.
Instead of extending the interpretation logic to cover such contents as
well, just use a generic ERROR_TEXT AlertScreenState. That text won't
be interpreted by any program logic anyway, since error screens are
never dismissed automatically.
Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2023-03-12 22:40:54 +01:00
Carlos Rafael Giani
377188353a
combov2: Show UI notifications and toaster messages when BT is not enabled
2023-03-12 22:40:54 +01:00
Carlos Rafael Giani
6d998c8081
combov2: Catch exceptions thrown when the adapter is disabled / unavailable
2023-03-11 19:00:25 +01:00
Carlos Rafael Giani
c1058ad113
comboctl-android: Check that the adapter is available and enabled
...
Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2023-03-11 19:00:25 +01:00
Carlos Rafael Giani
13666fd549
combov2: Document and extend runWithPermissionCheck utility function
2023-03-11 19:00:25 +01:00
Carlos Rafael Giani
72819cbc53
comboctl-base: Add exceptions for disabled and missing Bluetooth adapters
...
Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2023-03-11 19:00:25 +01:00
Carlos Rafael Giani
fe1235dbe1
combov2: Wait for coroutines to finish in onStop()
2023-03-11 19:00:25 +01:00
Carlos Rafael Giani
2cdc4c45ea
comboctl-parser: Add Lithuanian support
...
Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2023-03-11 19:00:25 +01:00
Carlos Rafael Giani
3f3884e513
comboctl-parser: Handle percent symbol in some TBR percentage screens
...
Some TBR percentage screens like the Lithuanian one show a % symbol
right after the text. Add an optional symbol parser to handle it.
Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2023-03-11 19:00:25 +01:00
Carlos Rafael Giani
dbe72e72da
comboctl-parser: Add Slovenian support
...
Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2023-03-11 19:00:25 +01:00
Carlos Rafael Giani
d2c0aba2b5
comboctl-main: Improve alert screen handling
...
* Check if the alert screen is the confirm or snooze screen, and press
the CHECK button once or twice accordingly. This avoids fringe cases
where the amount of button presses is incorrect.
* In rare cases, more alert screens may show up after dismissing the
current one. Add code to keep observing remaining alerts and redo
the dismissing logic after a while if necessary.
Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2023-03-11 19:00:25 +01:00
Carlos Rafael Giani
76dec4aad6
comboctl-parser: Also parse text in alert screens
...
This helps with distinguishing the "snooze" and "confirm" screens.
Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2023-03-11 19:00:25 +01:00
Carlos Rafael Giani
c81578f7ff
combov2: Also enable the Refresh button in the Error state
2023-03-11 19:00:25 +01:00
Carlos Rafael Giani
b4cb00ab0b
combov2: Remove notes from auto-inserted reservoir and battery changes
...
Unfortunately, even though the notes are informative, they do not fit
well in the treatments fragment. The only solution thus far is to remove
them from the therapy entries.
Fixes https://github.com/nightscout/AndroidAPS/issues/2382
2023-03-11 19:00:20 +01:00
Carlos Rafael Giani
a6aa05b110
Add log() overloads to UserEntryLogger that accept a timestamp
...
That way, if the user is already passing the timestamp as part of the
log() call's payload (in listValues), mismatches can be avoided by passing
the same timestamp as the timestamp arguments in the new overloads.
2023-03-11 11:46:09 +01:00
Milos Kozak
9145f3a96a
make beta and rc non-dev
2023-03-10 12:07:20 +01:00
Milos Kozak
36ca9cd58f
3.2.0-dev-i
2023-03-10 12:04:34 +01:00
Milos Kozak
ab0a16d785
New Crowdin updates ( #2445 )
...
* New translations strings.xml (Italian)
* New translations strings.xml (Spanish)
* New translations strings.xml (Russian)
* New translations strings.xml (Polish)
* New translations strings.xml (Polish)
* New translations strings.xml (Polish)
* New translations strings.xml (Polish)
* New translations strings.xml (Hebrew)
* New translations strings.xml (Hebrew)
* New translations strings.xml (Hebrew)
* New translations strings.xml (Bulgarian)
2023-03-10 12:02:20 +01:00
Milos Kozak
e3dc5eaa5c
Merge pull request #2453 from nightscout/dependabot/gradle/dev/com.uber.rxdogtag2-rxdogtag-2.0.2
...
chore(deps): bump com.uber.rxdogtag2:rxdogtag from 2.0.1 to 2.0.2
2023-03-10 12:01:56 +01:00
dependabot[bot]
a0c7739ade
chore(deps): bump com.uber.rxdogtag2:rxdogtag from 2.0.1 to 2.0.2
...
Bumps [com.uber.rxdogtag2:rxdogtag](https://github.com/uber/RxDogTag ) from 2.0.1 to 2.0.2.
- [Release notes](https://github.com/uber/RxDogTag/releases )
- [Changelog](https://github.com/uber/RxDogTag/blob/main/CHANGELOG.md )
- [Commits](https://github.com/uber/RxDogTag/compare/2.0.1...2.0.2 )
---
updated-dependencies:
- dependency-name: com.uber.rxdogtag2:rxdogtag
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-03-10 08:57:45 +00:00
Milos Kozak
616b4650ba
Merge pull request #2450 from nightscout/dependabot/gradle/dev/org.jlleitschuh.gradle.ktlint-11.3.1
...
chore(deps): bump org.jlleitschuh.gradle.ktlint from 11.2.0 to 11.3.1
2023-03-06 14:11:11 +01:00
dependabot[bot]
e67ebd66f3
chore(deps): bump org.jlleitschuh.gradle.ktlint from 11.2.0 to 11.3.1
...
Bumps org.jlleitschuh.gradle.ktlint from 11.2.0 to 11.3.1.
---
updated-dependencies:
- dependency-name: org.jlleitschuh.gradle.ktlint
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-03-06 08:57:58 +00:00
Milos Kozak
d8235bab29
NSCv3: process removed entries
2023-03-04 17:41:39 +01:00
Milos Kozak
f651f721e0
DanaRS: do not send another packet if previous failed
2023-03-03 22:20:02 +01:00
Milos Kozak
b4e5b01ea3
3.2.0-beta1
2023-03-03 10:49:56 +01:00
Milos Kozak
8499cc55a7
Merge pull request #2443 from nightscout/dependabot/gradle/dev/com.google.firebase-firebase-bom-31.2.3
...
chore(deps): bump com.google.firebase:firebase-bom from 31.2.2 to 31.2.3
2023-03-03 10:44:37 +01:00
dependabot[bot]
3d29edcf2c
chore(deps): bump com.google.firebase:firebase-bom from 31.2.2 to 31.2.3
...
Bumps com.google.firebase:firebase-bom from 31.2.2 to 31.2.3.
---
updated-dependencies:
- dependency-name: com.google.firebase:firebase-bom
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-03-03 08:57:45 +00:00
Milos Kozak
7f29a0ce7a
New Crowdin updates ( #2439 )
...
* New translations strings.xml (Bulgarian)
* New translations strings.xml (Bulgarian)
* New translations oh_strings.xml (Bulgarian)
* New translations strings.xml (French)
* New translations strings.xml (Spanish)
* New translations strings.xml (Bulgarian)
* New translations strings.xml (Czech)
* New translations strings.xml (German)
* New translations strings.xml (Hebrew)
* New translations strings.xml (Italian)
* New translations strings.xml (Lithuanian)
* New translations strings.xml (Dutch)
* New translations strings.xml (Norwegian)
* New translations strings.xml (Polish)
* New translations strings.xml (Russian)
* New translations strings.xml (Slovak)
* New translations strings.xml (Turkish)
* New translations strings.xml (Portuguese, Brazilian)
* Update source file strings.xml
* New translations strings.xml (French)
* New translations strings.xml (Slovak)
* New translations strings.xml (Turkish)
* New translations strings.xml (Norwegian)
* New translations strings.xml (Hebrew)
* New translations strings.xml (Hebrew)
* New translations strings.xml (Lithuanian)
* New translations strings.xml (Czech)
* New translations strings.xml (French)
* New translations strings.xml (Spanish)
* New translations strings.xml (Bulgarian)
* New translations strings.xml (Czech)
* New translations strings.xml (Danish)
* New translations strings.xml (German)
* New translations strings.xml (Hebrew)
* New translations strings.xml (Italian)
* New translations strings.xml (Lithuanian)
* New translations strings.xml (Dutch)
* New translations strings.xml (Norwegian)
* New translations strings.xml (Polish)
* New translations strings.xml (Russian)
* New translations strings.xml (Slovak)
* New translations strings.xml (Turkish)
* New translations strings.xml (Chinese Simplified)
* New translations strings.xml (Portuguese, Brazilian)
* Update source file strings.xml
* New translations strings.xml (Bulgarian)
2023-03-03 09:13:11 +01:00
Milos Kozak
3a950bcd7f
Automation: remove not working menu item
2023-03-02 11:10:52 +01:00
Milos Kozak
a4c1e724bf
NSCv3: improve error logging
2023-03-02 10:55:31 +01:00
Milos Kozak
dbc4bd0dd6
NSCv3: do upload in NSCLIENT mode
2023-03-02 09:46:27 +01:00
Milos Kozak
d77c87a56d
update string
2023-03-01 10:04:22 +01:00
Milos Kozak
3503fea761
Merge pull request #2440 from nightscout/dependabot/gradle/dev/com.android.tools.build-gradle-7.4.2
...
chore(deps): bump com.android.tools.build:gradle from 7.4.1 to 7.4.2
2023-02-28 16:38:53 +01:00
dependabot[bot]
8629bd3e61
chore(deps): bump com.android.tools.build:gradle from 7.4.1 to 7.4.2
...
Bumps com.android.tools.build:gradle from 7.4.1 to 7.4.2.
---
updated-dependencies:
- dependency-name: com.android.tools.build:gradle
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-02-28 08:57:49 +00:00
Milos Kozak
f2f8429e1e
Merge pull request #2438 from nightscout/dependabot/gradle/dev/kotlinx_serialization_version-1.5.0
...
chore(deps): bump kotlinx_serialization_version from 1.4.1 to 1.5.0
2023-02-27 18:03:26 +01:00
dependabot[bot]
002e5e3cae
chore(deps): bump kotlinx_serialization_version from 1.4.1 to 1.5.0
...
Bumps `kotlinx_serialization_version` from 1.4.1 to 1.5.0.
Updates `org.jetbrains.kotlinx:kotlinx-serialization-json` from 1.4.1 to 1.5.0
- [Release notes](https://github.com/Kotlin/kotlinx.serialization/releases )
- [Changelog](https://github.com/Kotlin/kotlinx.serialization/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Kotlin/kotlinx.serialization/compare/v1.4.1...v1.5.0 )
Updates `org.jetbrains.kotlinx:kotlinx-serialization-core` from 1.4.1 to 1.5.0
- [Release notes](https://github.com/Kotlin/kotlinx.serialization/releases )
- [Changelog](https://github.com/Kotlin/kotlinx.serialization/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Kotlin/kotlinx.serialization/compare/v1.4.1...v1.5.0 )
---
updated-dependencies:
- dependency-name: org.jetbrains.kotlinx:kotlinx-serialization-json
dependency-type: direct:production
update-type: version-update:semver-minor
- dependency-name: org.jetbrains.kotlinx:kotlinx-serialization-core
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-02-27 14:59:11 +00:00
Milos Kozak
c2fd6e5990
unify kotlinx_serialization
2023-02-27 15:57:27 +01:00
Milos Kozak
f9179632f2
Merge branch 'dev' of https://github.com/nightscout/AndroidAPS into dev
2023-02-27 15:33:16 +01:00
Milos Kozak
773d8055b8
Simplify call
2023-02-27 15:33:10 +01:00
Milos Kozak
5a6d2e02a8
New Crowdin updates ( #2435 )
...
* New translations strings.xml (Italian)
* New translations strings.xml (Italian)
* New translations strings.xml (Italian)
* New translations strings.xml (Italian)
* New translations objectives.xml (Italian)
* New translations strings.xml (Italian)
* New translations strings.xml (Italian)
* New translations strings.xml (Italian)
* New translations strings.xml (Italian)
* New translations objectives.xml (Italian)
* New translations strings.xml (Italian)
* New translations strings.xml (Italian)
* New translations strings.xml (Italian)
* New translations objectives.xml (Italian)
* New translations strings.xml (Italian)
* New translations strings.xml (Italian)
* New translations strings.xml (Italian)
* New translations strings.xml (Italian)
2023-02-27 15:21:40 +01:00
Milos Kozak
94b18cbbda
Merge pull request #2437 from nightscout/dependabot/gradle/dev/org.jetbrains.kotlinx-kotlinx-serialization-json-1.5.0
...
chore(deps): bump org.jetbrains.kotlinx:kotlinx-serialization-json from 1.4.1 to 1.5.0
2023-02-27 15:16:22 +01:00
dependabot[bot]
a0fc505e05
chore(deps): bump org.jetbrains.kotlinx:kotlinx-serialization-json
...
Bumps [org.jetbrains.kotlinx:kotlinx-serialization-json](https://github.com/Kotlin/kotlinx.serialization ) from 1.4.1 to 1.5.0.
- [Release notes](https://github.com/Kotlin/kotlinx.serialization/releases )
- [Changelog](https://github.com/Kotlin/kotlinx.serialization/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Kotlin/kotlinx.serialization/compare/v1.4.1...v1.5.0 )
---
updated-dependencies:
- dependency-name: org.jetbrains.kotlinx:kotlinx-serialization-json
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-02-27 08:58:56 +00:00
Milos Kozak
1fa2cb9370
DanaRS/I: improve recovering from disconnection
2023-02-26 19:09:49 +01:00
Philoul
3b6a3605a2
Merge remote-tracking branch 'Nightscout/dev' into Autotune/TuneWeekDaysClean
2023-02-26 17:35:57 +01:00
Milos Kozak
02a11ae902
Merge pull request #2434 from nightscout/dependabot/gradle/dev/com.google.crypto.tink-tink-android-1.8.0
...
chore(deps): bump com.google.crypto.tink:tink-android from 1.7.0 to 1.8.0
2023-02-26 10:44:27 +01:00
Milos Kozak
2863d5c06c
New Crowdin updates ( #2431 )
...
* New translations strings.xml (Portuguese, Brazilian)
* New translations objectives.xml (Portuguese, Brazilian)
* New translations strings.xml (Portuguese, Brazilian)
* New translations strings.xml (Italian)
* New translations protection.xml (Italian)
* New translations strings.xml (Italian)
* New translations strings.xml (Italian)
* New translations strings.xml (Italian)
* New translations exam.xml (Italian)
* New translations objectives.xml (Italian)
* New translations strings.xml (Italian)
* New translations strings.xml (Italian)
* New translations strings.xml (Italian)
* New translations strings.xml (Italian)
* New translations strings.xml (Italian)
* New translations strings.xml (Italian)
* New translations strings.xml (Italian)
* New translations strings.xml (Italian)
* New translations exam.xml (Italian)
* New translations objectives.xml (Italian)
* New translations strings.xml (Italian)
* New translations strings.xml (Italian)
* New translations strings.xml (Italian)
* New translations strings.xml (Italian)
* New translations strings.xml (Italian)
* New translations oh_strings.xml (Italian)
* New translations strings.xml (Bulgarian)
* New translations strings.xml (Bulgarian)
* New translations strings.xml (Bulgarian)
* New translations strings.xml (Bulgarian)
* New translations strings.xml (Bulgarian)
* New translations strings.xml (Bulgarian)
* New translations strings.xml (Bulgarian)
* New translations strings.xml (Bulgarian)
* New translations strings.xml (Bulgarian)
* New translations strings.xml (Bulgarian)
* New translations strings.xml (Bulgarian)
* New translations strings.xml (Bulgarian)
* New translations strings.xml (Bulgarian)
* New translations strings.xml (Bulgarian)
* New translations strings.xml (Norwegian)
* New translations protection.xml (Norwegian)
* New translations strings.xml (Norwegian)
* New translations strings.xml (Norwegian)
* New translations validator.xml (Norwegian)
* New translations strings.xml (Norwegian)
* New translations strings.xml (Norwegian)
* New translations strings.xml (Norwegian)
* New translations strings.xml (Norwegian)
* New translations strings.xml (Norwegian)
* New translations strings.xml (Norwegian)
* New translations strings.xml (Norwegian)
* New translations strings.xml (Norwegian)
* New translations strings.xml (Norwegian)
* New translations strings.xml (Norwegian)
* New translations strings.xml (Norwegian)
* New translations strings.xml (Norwegian)
* New translations strings.xml (Norwegian)
* New translations strings.xml (Norwegian)
* New translations strings.xml (Norwegian)
* New translations strings.xml (Norwegian)
* New translations exam.xml (Russian)
* New translations strings.xml (Italian)
* New translations strings.xml (Italian)
* New translations exam.xml (Italian)
* New translations objectives.xml (Italian)
* New translations strings.xml (Italian)
* New translations strings.xml (Italian)
* New translations strings.xml (Italian)
* New translations strings.xml (Italian)
* New translations exam.xml (Italian)
* New translations objectives.xml (Italian)
* New translations strings.xml (Italian)
* New translations strings.xml (Italian)
* New translations strings.xml (Italian)
* New translations strings.xml (Italian)
* New translations strings.xml (Italian)
* New translations strings.xml (Italian)
* New translations exam.xml (Italian)
* New translations objectives.xml (Italian)
* New translations strings.xml (Italian)
* New translations strings.xml (Italian)
* New translations strings.xml (Italian)
* New translations objectives.xml (Italian)
* New translations strings.xml (Italian)
2023-02-26 10:44:12 +01:00
Milos Kozak
909e909525
DanaI 0x0A support
2023-02-24 20:00:07 +01:00