Commit graph

14573 commits

Author SHA1 Message Date
Milos Kozak 594d48bc02 remove unused code 2022-11-21 10:13:29 +01:00
Carlos Rafael Giani 61519e43f2 combov2: Disable internal Pump.connect() connection attempt limiter
QueueThread already has a timeout; the limiter is redundant.

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2022-11-20 23:05:24 +01:00
Carlos Rafael Giani 90480ab1d9 comboctl-main: Add more argument checks to Pump.connect()
Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2022-11-20 23:04:30 +01:00
Carlos Rafael Giani 605fe04d74 comboctl-main: Check for unchanging screen type in navigateToRTScreen()
Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2022-11-20 21:58:50 +01:00
Carlos Rafael Giani 5aeb401cc0 combov2: Autodetect reservoir and battery changes and insert them as events
Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2022-11-20 21:04:53 +01:00
Carlos Rafael Giani 8bef914eac combov2: Store battery and reservoir levels as plain properties
This fixes https://github.com/dv1/AndroidAPS/issues/2

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2022-11-20 19:55:04 +01:00
Carlos Rafael Giani 2bde0f154d comboctl-main: Add and fix unit tests
Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2022-11-20 18:59:21 +01:00
Carlos Rafael Giani 96c8145dc3 comboctl-main: During corrective short button presses check screens
After a long button press, short button presses may be necessary to
fix "overshoots". An alert screen may appear during those short button
presses, so look at the screens to make sure alerts are not missed.

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2022-11-20 18:59:17 +01:00
Carlos Rafael Giani 8b2666ff74 comboctl-main: Only receive frames if long RT button press was skipped
The code in adjustQuantityOnScreen() needs an current quantity. This is
determined during the long button press. If no such long button press
happens, get the quantity by explicitly receiving parsed frames. But
don't read those parsed frames if a long button press happened; this
is redundant and just slows down the function.

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2022-11-20 18:59:12 +01:00
Carlos Rafael Giani 03a32f09cf comboctl-main: Catch getParsedDisplayFrame() exceptions and rethrow later
Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2022-11-20 18:59:08 +01:00
Carlos Rafael Giani 8d6171db49 comboctl-parser: Support main screens with ext/multiwave and TBR symbols
Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2022-11-20 18:58:51 +01:00
Carlos Rafael Giani e9294c59a0 comboctl-parser: Parse remaining duration in TBR percentage screen
Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2022-11-20 18:58:47 +01:00
Carlos Rafael Giani cc26eb8ed8 combov2: Also limit TBR percentage when AAPS sets absolute TBR
Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2022-11-19 23:47:49 +01:00
Carlos Rafael Giani d50feec302 comboctl-main: Correctly handle alerts after bolus was delivered
In particular, if a bolus brings the reservoir level below the low
threshold, a W1 warning shows up on the pump itself during bolus delivery.
Once delivery is done, the W1 shows up in the RT mode as well. Bolus
delivery is special in that the deliverBolus() function has to manually
switch back to RT mode to get the reservoir level post-bolus to update
the reservoirLevel value. When that is done, the aforementioned alert
screen can show up. Add code to handle alert screen handling to that
special post-bolus check.

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2022-11-19 13:56:01 +01:00
Carlos Rafael Giani 20d4a0c692 comboctl-main: Fix computeShortRTButtonPress() cyclic quantity bug
Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2022-11-19 11:22:10 +01:00
Milos Kozak 72505b6093 remove dependencies from setup wizard 2022-11-18 23:22:00 +01:00
Milos Kozak dd9518b73b Merge branch 'dev' of https://github.com/nightscout/AndroidAPS into dev 2022-11-18 19:51:42 +01:00
Milos Kozak 562870723e move Loop to plugins 2022-11-18 19:51:39 +01:00
Milos Kozak 1ea173b83d
Merge pull request #2209 from nightscout/dependabot/gradle/dev/com.google.firebase-firebase-bom-31.1.0
chore(deps): bump firebase-bom from 31.0.3 to 31.1.0
2022-11-18 19:45:39 +01:00
Milos Kozak 232b44b153 move Intents 2022-11-18 19:03:26 +01:00
dependabot[bot] 72d423b471
chore(deps): bump firebase-bom from 31.0.3 to 31.1.0
Bumps firebase-bom from 31.0.3 to 31.1.0.

---
updated-dependencies:
- dependency-name: com.google.firebase:firebase-bom
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-18 16:36:04 +00:00
Milos Kozak cfe9875b68 fix tests 2022-11-18 17:28:13 +01:00
Milos Kozak bd860f4a52 optimize dependencies 2022-11-17 20:37:51 +01:00
Milos Kozak 222a22b45e SHouw only date in About dialog 2022-11-17 18:06:03 +01:00
Milos Kozak c86f25824a rename classes 2022-11-16 10:47:53 +01:00
Milos Kozak 152fd063cb Aaps -> WearApp 2022-11-16 10:36:42 +01:00
Milos Kozak 1b08e78809 make ktlint global, remove detekt 2022-11-16 10:29:20 +01:00
Milos Kozak 4be8c1a554 Gradle test 2022-11-16 09:42:44 +01:00
Milos Kozak 99c232a2e5 fix actions fragment 2022-11-15 23:02:25 +01:00
Milos Kozak c0f9184f7b fix tests 2022-11-15 22:49:58 +01:00
Milos Kozak d8880b36bf fix tests 2022-11-15 21:48:43 +01:00
Milos Kozak 2bfe8c272d
New Crowdin updates (#2203)
* New translations validator.xml (Catalan)

* New translations strings.xml (Catalan)

* New translations strings.xml (Catalan)

* New translations strings.xml (Catalan)

* New translations exam.xml (Czech)

* New translations validator.xml (Afrikaans)

* New translations objectives.xml (Afrikaans)

* New translations objectives.xml (Romanian)

* New translations protection.xml (Romanian)

* New translations validator.xml (Romanian)

* New translations strings.xml (Romanian)

* New translations strings.xml (Romanian)

* New translations strings.xml (Romanian)

* New translations exam.xml (French)

* New translations objectives.xml (French)

* New translations protection.xml (French)

* New translations validator.xml (French)

* New translations strings.xml (French)

* New translations exam.xml (Afrikaans)

* New translations strings.xml (French)

* New translations strings.xml (French)

* New translations exam.xml (Spanish)

* New translations objectives.xml (Spanish)

* New translations protection.xml (Spanish)

* New translations validator.xml (Spanish)

* New translations strings.xml (Spanish)

* New translations strings.xml (Spanish)

* New translations strings.xml (Spanish)

* New translations objectives.xml (Czech)

* New translations protection.xml (Czech)

* New translations strings.xml (Czech)

* New translations strings.xml (Czech)

* New translations strings.xml (Czech)

* New translations validator.xml (Czech)

* New translations exam.xml (Hebrew)

* New translations objectives.xml (Irish)

* New translations strings.xml (Irish)

* New translations strings.xml (Irish)

* New translations strings.xml (Irish)

* New translations validator.xml (Hebrew)

* New translations objectives.xml (Hebrew)

* New translations protection.xml (Hebrew)

* New translations strings.xml (Greek)

* New translations strings.xml (Hebrew)

* New translations strings.xml (Hebrew)

* New translations strings.xml (Hebrew)

* New translations strings.xml (Greek)

* New translations validator.xml (Greek)

* New translations strings.xml (Greek)

* New translations exam.xml (German)

* New translations exam.xml (Danish)

* New translations objectives.xml (Danish)

* New translations validator.xml (Danish)

* New translations strings.xml (Danish)

* New translations strings.xml (Danish)

* New translations strings.xml (Danish)

* New translations objectives.xml (German)

* New translations protection.xml (German)

* New translations validator.xml (German)

* New translations strings.xml (German)

* New translations strings.xml (German)

* New translations strings.xml (German)

* New translations exam.xml (Greek)

* New translations objectives.xml (Greek)

* New translations protection.xml (Greek)

* New translations objectives.xml (Norwegian)

* New translations exam.xml (Dutch)

* New translations objectives.xml (Dutch)

* New translations protection.xml (Dutch)

* New translations validator.xml (Dutch)

* New translations strings.xml (Dutch)

* New translations strings.xml (Dutch)

* New translations strings.xml (Dutch)

* New translations exam.xml (Norwegian)

* New translations strings.xml (Lithuanian)

* New translations validator.xml (Norwegian)

* New translations strings.xml (Norwegian)

* New translations strings.xml (Norwegian)

* New translations strings.xml (Norwegian)

* New translations exam.xml (Polish)

* New translations objectives.xml (Polish)

* New translations protection.xml (Polish)

* New translations validator.xml (Polish)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Hungarian)

* New translations exam.xml (Korean)

* New translations strings.xml (Hungarian)

* New translations exam.xml (Italian)

* New translations objectives.xml (Italian)

* New translations protection.xml (Italian)

* New translations validator.xml (Italian)

* New translations strings.xml (Italian)

* New translations strings.xml (Italian)

* New translations strings.xml (Italian)

* New translations objectives.xml (Korean)

* New translations protection.xml (Korean)

* New translations validator.xml (Korean)

* New translations strings.xml (Korean)

* New translations strings.xml (Korean)

* New translations strings.xml (Korean)

* New translations exam.xml (Lithuanian)

* New translations objectives.xml (Lithuanian)

* New translations protection.xml (Lithuanian)

* New translations validator.xml (Lithuanian)

* New translations strings.xml (Polish)

* New translations strings.xml (Polish)

* New translations strings.xml (Polish)

* New translations strings.xml (Portuguese)

* New translations strings.xml (Portuguese)

* New translations strings.xml (Portuguese)

* New translations validator.xml (Portuguese)

* New translations protection.xml (Portuguese)

* New translations objectives.xml (Portuguese)

* New translations exam.xml (Portuguese)

* New translations strings.xml (Turkish)

* New translations strings.xml (Swedish)

* New translations strings.xml (Swedish)

* New translations exam.xml (Turkish)

* New translations objectives.xml (Turkish)

* New translations protection.xml (Turkish)

* New translations validator.xml (Turkish)

* New translations protection.xml (Chinese Simplified)

* New translations strings.xml (Turkish)

* New translations strings.xml (Turkish)

* New translations exam.xml (Chinese Simplified)

* New translations objectives.xml (Chinese Simplified)

* New translations validator.xml (Chinese Simplified)

* New translations strings.xml (Chinese Simplified)

* New translations strings.xml (Chinese Simplified)

* New translations strings.xml (Swedish)

* New translations strings.xml (Slovak)

* New translations validator.xml (Swedish)

* New translations strings.xml (Russian)

* New translations exam.xml (Russian)

* New translations objectives.xml (Russian)

* New translations protection.xml (Russian)

* New translations validator.xml (Russian)

* New translations strings.xml (Russian)

* New translations strings.xml (Russian)

* New translations exam.xml (Slovak)

* New translations protection.xml (Swedish)

* New translations objectives.xml (Slovak)

* New translations protection.xml (Slovak)

* New translations validator.xml (Slovak)

* New translations strings.xml (Slovak)

* New translations strings.xml (Slovak)

* New translations exam.xml (Swedish)

* New translations objectives.xml (Swedish)

* New translations strings.xml (Chinese Simplified)

* New translations exam.xml (Portuguese, Brazilian)

* New translations strings.xml (Croatian)

* New translations strings.xml (Croatian)

* New translations objectives.xml (Portuguese, Brazilian)

* New translations objectives.xml (Croatian)

* New translations exam.xml (Croatian)

* New translations strings.xml (Portuguese, Brazilian)

* New translations strings.xml (Portuguese, Brazilian)

* New translations strings.xml (Portuguese, Brazilian)

* New translations validator.xml (Portuguese, Brazilian)

* New translations protection.xml (Portuguese, Brazilian)

* New translations strings.xml (Romanian)

* New translations strings.xml (Hebrew)

* New translations strings.xml (French)

* New translations strings.xml (Spanish)

* New translations strings.xml (Afrikaans)

* New translations strings.xml (Bulgarian)

* New translations strings.xml (Catalan)

* New translations strings.xml (Czech)

* New translations strings.xml (Danish)

* New translations strings.xml (German)

* New translations strings.xml (Greek)

* New translations strings.xml (Hungarian)

* New translations strings.xml (Czech)

* New translations strings.xml (Italian)

* New translations strings.xml (Korean)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Dutch)

* New translations strings.xml (Norwegian)

* New translations strings.xml (Polish)

* New translations strings.xml (Portuguese)

* New translations strings.xml (Russian)

* New translations strings.xml (Slovak)

* New translations strings.xml (Swedish)

* New translations strings.xml (Romanian)

* New translations strings.xml (Serbian (Latin))

* New translations strings.xml (French)

* New translations strings.xml (Hungarian)

* New translations strings.xml (Spanish)

* New translations strings.xml (Afrikaans)

* New translations strings.xml (Bulgarian)

* New translations strings.xml (Catalan)

* New translations strings.xml (Czech)

* New translations strings.xml (Danish)

* New translations strings.xml (German)

* New translations strings.xml (Greek)

* New translations strings.xml (Irish)

* New translations strings.xml (Hebrew)

* New translations strings.xml (Korean)

* New translations strings.xml (Croatian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Dutch)

* New translations strings.xml (Polish)

* New translations strings.xml (Portuguese)

* New translations strings.xml (Russian)

* New translations strings.xml (Slovak)

* New translations strings.xml (Swedish)

* New translations strings.xml (Turkish)

* New translations strings.xml (Chinese Simplified)

* New translations strings.xml (Portuguese, Brazilian)

* New translations strings.xml (Turkish)

* New translations strings.xml (Chinese Simplified)

* New translations strings.xml (Chinese Simplified)

* New translations strings.xml (Portuguese, Brazilian)

* New translations strings.xml (Czech)

* New translations strings.xml (Czech)

* New translations strings.xml (Russian)

* New translations strings.xml (Swedish)

* New translations exam.xml (Czech)

* New translations strings.xml (Czech)

* New translations strings.xml (Czech)

* New translations strings.xml (Norwegian)

* New translations strings.xml (Turkish)

* New translations strings.xml (Slovak)

* New translations strings.xml (Portuguese, Brazilian)

* New translations strings.xml (German)

* New translations strings.xml (Romanian)

* New translations strings.xml (French)

* New translations strings.xml (Spanish)

* New translations strings.xml (Afrikaans)

* New translations strings.xml (Bulgarian)

* New translations strings.xml (Catalan)

* New translations strings.xml (Czech)

* New translations strings.xml (Danish)

* New translations strings.xml (Greek)

* New translations strings.xml (Russian)

* New translations strings.xml (Hebrew)

* New translations strings.xml (Italian)

* New translations strings.xml (Korean)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Dutch)

* New translations strings.xml (Norwegian)

* New translations strings.xml (Polish)

* New translations strings.xml (Portuguese)

* New translations strings.xml (Spanish)

* New translations strings.xml (Norwegian)

* New translations strings.xml (Spanish)

* New translations strings.xml (Norwegian)

* New translations strings.xml (Spanish)

* New translations strings.xml (Spanish)
2022-11-15 19:29:03 +01:00
Milos Kozak ae5dec334d Merge branch 'dev' of https://github.com/nightscout/AndroidAPS into dev 2022-11-15 19:28:31 +01:00
Milos Kozak ae3650793f optimize SetupWizard 2022-11-15 19:28:21 +01:00
Milos Kozak 3116d5292d
Merge pull request #2197 from nightscout/dependabot/gradle/dev/androidx.activity-activity-ktx-1.6.1
chore(deps): bump activity-ktx from 1.4.0 to 1.6.1
2022-11-15 13:23:37 +01:00
Milos Kozak a5c06513e4 CommandQueue: prevent ANR 2022-11-15 12:27:17 +01:00
Milos Kozak c2cfbd1a2b Merge branch 'dev' of https://github.com/nightscout/AndroidAPS into dev 2022-11-15 12:21:45 +01:00
Milos Kozak 7ef2941d0c fix activity start 2022-11-15 12:20:53 +01:00
Milos Kozak 8b66931462
Merge pull request #2204 from nightscout/dependabot/gradle/dev/dagger_version-2.44.2
chore(deps): bump dagger_version from 2.44.1 to 2.44.2
2022-11-15 09:49:29 +01:00
dependabot[bot] f138c76995
chore(deps): bump dagger_version from 2.44.1 to 2.44.2
Bumps `dagger_version` from 2.44.1 to 2.44.2.

Updates `dagger-android-processor` from 2.44.1 to 2.44.2
- [Release notes](https://github.com/google/dagger/releases)
- [Changelog](https://github.com/google/dagger/blob/master/CHANGELOG.md)
- [Commits](https://github.com/google/dagger/compare/dagger-2.44.1...dagger-2.44.2)

Updates `dagger-compiler` from 2.44.1 to 2.44.2
- [Release notes](https://github.com/google/dagger/releases)
- [Changelog](https://github.com/google/dagger/blob/master/CHANGELOG.md)
- [Commits](https://github.com/google/dagger/compare/dagger-2.44.1...dagger-2.44.2)

Updates `dagger` from 2.44.1 to 2.44.2
- [Release notes](https://github.com/google/dagger/releases)
- [Changelog](https://github.com/google/dagger/blob/master/CHANGELOG.md)
- [Commits](https://github.com/google/dagger/compare/dagger-2.44.1...dagger-2.44.2)

Updates `dagger-android` from 2.44.1 to 2.44.2
- [Release notes](https://github.com/google/dagger/releases)
- [Changelog](https://github.com/google/dagger/blob/master/CHANGELOG.md)
- [Commits](https://github.com/google/dagger/compare/dagger-2.44.1...dagger-2.44.2)

Updates `dagger-android-support` from 2.44.1 to 2.44.2
- [Release notes](https://github.com/google/dagger/releases)
- [Changelog](https://github.com/google/dagger/blob/master/CHANGELOG.md)
- [Commits](https://github.com/google/dagger/compare/dagger-2.44.1...dagger-2.44.2)

---
updated-dependencies:
- dependency-name: com.google.dagger:dagger-android-processor
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: com.google.dagger:dagger-compiler
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: com.google.dagger:dagger
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: com.google.dagger:dagger-android
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: com.google.dagger:dagger-android-support
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-15 08:01:31 +00:00
Milos Kozak 16fda48d12 update crowdin.xml 2022-11-15 08:51:52 +01:00
Milos Kozak ea6dc785cc Update Crowdin configuration file 2022-11-14 23:49:30 +01:00
dependabot[bot] 497979b67d
chore(deps): bump java-otp from 0.3.1 to 0.4.0
Bumps [java-otp](https://github.com/jchambers/java-otp) from 0.3.1 to 0.4.0.
- [Release notes](https://github.com/jchambers/java-otp/releases)
- [Commits](https://github.com/jchambers/java-otp/compare/java-otp-0.3.1...java-otp-0.4.0)

---
updated-dependencies:
- dependency-name: com.eatthepath:java-otp
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-14 22:22:02 +00:00
Milos Kozak b419de0a5c
Merge pull request #2201 from nightscout/dependabot/gradle/dev/dagger_version-2.44.1
chore(deps): bump dagger_version from 2.44 to 2.44.1
2022-11-14 23:21:34 +01:00
Milos Kozak 9a9020d88b
Merge pull request #2202 from nightscout/dependabot/gradle/dev/com.google.firebase-firebase-bom-31.0.3
chore(deps): bump firebase-bom from 31.0.2 to 31.0.3
2022-11-14 23:21:24 +01:00
Milos Kozak aa1151f6af consolidate plugin modules 2022-11-14 23:21:03 +01:00
Milos Kozak 6ec4f5c4b4 aps module 2022-11-14 23:14:37 +01:00
Milos Kozak a5dd52a44b rename module 2022-11-14 19:04:09 +01:00
Milos Kozak 616e24a422 move EventBucketedDataCreated 2022-11-14 14:45:19 +01:00
Milos Kozak 07f1168270 move UserEntryMapper 2022-11-14 14:22:41 +01:00