Skip to content

Commit

Permalink
Update links to new username (#451)
Browse files Browse the repository at this point in the history
* Update README.md links

* Update LICENSE

* Update CONTRIBUTING.md links

* Update settings_screen link

* Update database_manager.dart link

* Update error_reporting_screen.dart links

* Update files.md links
  • Loading branch information
derdilla authored Sep 25, 2024
1 parent 527f442 commit 3f27806
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 26 deletions.
12 changes: 6 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
This repository has become quite large, so contributions are greatly appreciated and can come in many forms.

<div align="center">
<img src="https://tokei.rs/b1/github/NobodyForNothing/blood-pressure-monitor-fl?style=flat-square">
<img src="https://tokei.rs/b1/github/NobodyForNothing/blood-pressure-monitor-fl?category=code&style=flat-square">
<img src="https://tokei.rs/b1/github/NobodyForNothing/blood-pressure-monitor-fl?category=comments&style=flat-square">
<img src="https://tokei.rs/b1/github/derdilla/blood-pressure-monitor-fl?style=flat-square">
<img src="https://tokei.rs/b1/github/derdilla/blood-pressure-monitor-fl?category=code&style=flat-square">
<img src="https://tokei.rs/b1/github/derdilla/blood-pressure-monitor-fl?category=comments&style=flat-square">
</div>

*Please note that when contributing you agree that your work is under the same license as the project.*
Expand All @@ -26,11 +26,11 @@ The easiest way to do this is [weblate](https://hosted.weblate.org/engage/blood-

Since this is *FOSS*, you can compile the app yourself and adjust it for you own needs and give back those changes so everyone can profit.

We try to keep the code as documented, simple and maintainable as possible, so you won't need to learn the entire codebase. Additional information about data formats and code style suggestions can be found in the [docs](https://github.com/NobodyForNothing/blood-pressure-monitor-fl/tree/main/docs) folder.
We try to keep the code as documented, simple and maintainable as possible, so you won't need to learn the entire codebase. Additional information about data formats and code style suggestions can be found in the [docs](https://github.com/derdilla/blood-pressure-monitor-fl/tree/main/docs) folder.

To build the app locally you have to:
1. [set up](https://docs.flutter.dev/get-started/install) flutter
2. `git clone https://github.com/NobodyForNothing/blood-pressure-monitor-fl.git`
2. `git clone https://github.com/derdilla/blood-pressure-monitor-fl.git`
3. run `dart run build_runner build` in the `health_data_store` directory

After this initial setup you can:
Expand All @@ -47,4 +47,4 @@ I'm looking for people who want to bring this app to many more users on IOS or d

## Donations

If you have too much money, I would advise you to donate to either [F-Droid](https://f-droid.org/en/donate/), [Weblate](https://weblate.org/en/donate/), or some other service that has unavoidable maintenance costs.
If you have too much money, I would advise you to donate to either [F-Droid](https://f-droid.org/en/donate/), [Weblate](https://weblate.org/en/donate/), or some other service that has unavoidable maintenance costs.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 NobodyForNothing
Copyright (c) 2024 derdilla

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<div align="center">
<img src="https://github.com/NobodyForNothing/blood-pressure-monitor-fl/blob/79b8a2d38703a5ff6d491019ba51b0374c39963a/android/app/src/main/res/drawable/icon.png" width="20%" height="20%"></img>
<img src="https://github.com/derdilla/blood-pressure-monitor-fl/blob/79b8a2d38703a5ff6d491019ba51b0374c39963a/android/app/src/main/res/drawable/icon.png" width="20%" height="20%"></img>
</div>


<h1 align="center"> blood pressure monitor </h1>
<div align="center">
<img alt="Play installs" src="https://img.shields.io/endpoint?color=green&logo=google-play&logoColor=green&url=https%3A%2F%2Fplay.cuzi.workers.dev%2Fplay%3Fi%3Dcom.derdilla.bloodPressureApp%26gl%3DUS%26hl%3Den%26l%3DInstalls%26m%3D%24totalinstalls">
<img alt="Play rating" src="https://img.shields.io/endpoint?color=green&logo=google-play&logoColor=green&url=https%3A%2F%2Fplay.cuzi.workers.dev%2Fplay%3Fi%3Dcom.derdilla.bloodPressureApp%26gl%3DDE%26hl%3Den%26l%3DRating%26m%3D%24rating%2520%25E2%2598%2585%2520">
<a href="https://github.com/NobodyForNothing/blood-pressure-monitor-fl/actions/workflows/.yml">
<img src="https://img.shields.io/github/actions/workflow/status/NobodyForNothing/blood-pressure-monitor-fl/.github%2Fworkflows%2Fapp-CI.yml?style=flat&logo=github&label=CI-app" alt="CI status"/><img src="https://img.shields.io/github/actions/workflow/status/NobodyForNothing/blood-pressure-monitor-fl/.github%2Fworkflows%2Fpkg-CI.yml?style=flat&logo=github&label=CI-pkgs" alt="CI pkg status"/></a>
<img alt="GitHub Repo stars" src="https://img.shields.io/github/stars/NobodyForNothing/blood-pressure-monitor-fl?style=flat&logo=github">
<img alt="GitHub watchers" src="https://img.shields.io/github/watchers/NobodyForNothing/blood-pressure-monitor-fl?style=flat&logo=github">
<a href="https://github.com/derdilla/blood-pressure-monitor-fl/actions/workflows/.yml">
<img src="https://img.shields.io/github/actions/workflow/status/derdilla/blood-pressure-monitor-fl/.github%2Fworkflows%2Fapp-CI.yml?style=flat&logo=github&label=CI-app" alt="CI status"/><img src="https://img.shields.io/github/actions/workflow/status/derdilla/blood-pressure-monitor-fl/.github%2Fworkflows%2Fpkg-CI.yml?style=flat&logo=github&label=CI-pkgs" alt="CI pkg status"/></a>
<img alt="GitHub Repo stars" src="https://img.shields.io/github/stars/derdilla/blood-pressure-monitor-fl?style=flat&logo=github">
<img alt="GitHub watchers" src="https://img.shields.io/github/watchers/derdilla/blood-pressure-monitor-fl?style=flat&logo=github">
<a href="https://hosted.weblate.org/engage/blood-pressure-monitor-fl/">
<img src="https://img.shields.io/weblate/progress/blood-pressure-monitor-fl?logo=weblate" alt="Translation status"/></a>
</div>
Expand All @@ -26,7 +26,7 @@ Store | Note
---------|-------
<a href='https://play.google.com/store/apps/details?id=com.derdilla.bloodPressureApp&pcampaignid=pcampaignidMKT-Other-global-all-co-prtnr-py-PartBadge-Mar2515-1'><img alt='Get it on Google Play' src='https://play.google.com/intl/en_us/badges/static/images/badges/en_badge_web_generic.png'/></a> | APK provided by Google but uses the same source code. Download sizes may be smaller. <p><img alt="Google Play Version" src="https://img.shields.io/endpoint?style=flat&logo=google-play&label=Version&url=https%3A%2F%2Fplay.cuzi.workers.dev%2Fplay%3Fi%3Dcom.derdilla.bloodPressureApp%26gl%3DUS%26hl%3Den%26l%3DAndroid%26m%3D%24version&color=152238"></p>
<a href="https://f-droid.org/packages/com.derdilla.bloodPressureApp"> <img src="https://fdroid.gitlab.io/artwork/badge/get-it-on.png" alt="Get it on F-Droid"></a> | F-Droid can take up to a week to provide updates after release to build updates. The F-Droid version is signed with the F-Droid key, so no switching installation sources, without first uninstalling and deleting all data, is possible. Of course, you can still load backups of your data. <p><img alt="F-Droid Store" src="https://img.shields.io/f-droid/v/com.derdilla.bloodPressureApp?style=flat&logo=fdroid&label=Version&color=152238"></p>
<a href="https://github.com/NobodyForNothing/blood-pressure-monitor-fl/releases/latest"><img alt="Get it on GitHub" src="https://github.com/NobodyForNothing/blood-pressure-monitor-fl/assets/82763757/829c5327-3cf6-4b41-ab10-05133cf11579">| The app won't notify you about new updates so you need to check for new versions manually or use [Obtainium](https://github.com/ImranR98/Obtainium) for that. <p><img alt="GitHub version" src="https://img.shields.io/github/v/release/NobodyForNothing/blood-pressure-monitor-fl?style=flat&logo=github&label=Version&color=152238"></p>
<a href="https://github.com/derdilla/blood-pressure-monitor-fl/releases/latest"><img alt="Get it on GitHub" src="https://github.com/derdilla/blood-pressure-monitor-fl/assets/82763757/829c5327-3cf6-4b41-ab10-05133cf11579">| The app won't notify you about new updates so you need to check for new versions manually or use [Obtainium](https://github.com/ImranR98/Obtainium) for that. <p><img alt="GitHub version" src="https://img.shields.io/github/v/release/derdilla/blood-pressure-monitor-fl?style=flat&logo=github&label=Version&color=152238"></p>

As there is no demand Windows, Linux and MacOS builds have been stopped. In case you are interested in them feel free to open an issue to indicate that.IOS builds are currently not available as the platform is more restrictive and hard (expensive) to develop for. So I won't take this step unless there is significant demand.

Expand All @@ -45,10 +45,10 @@ As there is no demand Windows, Linux and MacOS builds have been stopped. In case

<table style="width: 100%; border-collapse: collapse;">
<tr>
<td><img src="https://github.com/NobodyForNothing/blood-pressure-monitor-fl/blob/main/fastlane/metadata/android/en-US/images/phoneScreenshots/01-example_add.png?raw=true" height="100%" alt="Home"></td>
<td><img src="https://github.com/NobodyForNothing/blood-pressure-monitor-fl/blob/main/fastlane/metadata/android/en-US/images/phoneScreenshots/03-example_settings.png?raw=true" height="100%" alt="Settings"></td>
<td><img src="https://github.com/NobodyForNothing/blood-pressure-monitor-fl/blob/main/fastlane/metadata/android/en-US/images/phoneScreenshots/02-example_home.png?raw=true" height="100%" alt="Home"></td>
<td><img src="https://github.com/NobodyForNothing/blood-pressure-monitor-fl/blob/main/fastlane/metadata/android/en-US/images/phoneScreenshots/04-example_stats.png?raw=true" height="100%" alt="Statistics"></td>
<td><img src="https://github.com/derdilla/blood-pressure-monitor-fl/blob/main/fastlane/metadata/android/en-US/images/phoneScreenshots/01-example_add.png?raw=true" height="100%" alt="Home"></td>
<td><img src="https://github.com/derdilla/blood-pressure-monitor-fl/blob/main/fastlane/metadata/android/en-US/images/phoneScreenshots/03-example_settings.png?raw=true" height="100%" alt="Settings"></td>
<td><img src="https://github.com/derdilla/blood-pressure-monitor-fl/blob/main/fastlane/metadata/android/en-US/images/phoneScreenshots/02-example_home.png?raw=true" height="100%" alt="Home"></td>
<td><img src="https://github.com/derdilla/blood-pressure-monitor-fl/blob/main/fastlane/metadata/android/en-US/images/phoneScreenshots/04-example_stats.png?raw=true" height="100%" alt="Statistics"></td>
</tr>
</table>

Expand Down
4 changes: 2 additions & 2 deletions app/lib/screens/error_reporting_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ class ErrorScreen extends StatelessWidget {
TextButton(
onPressed: () async {
try {
final url = Uri.parse('https://github.com/NobodyForNothing/blood-pressure-monitor-fl/issues');
final url = Uri.parse('https://github.com/derdilla/blood-pressure-monitor-fl/issues');
if (await canLaunchUrl(url)) {
await launchUrl(url, mode: LaunchMode.externalApplication);
} else {
scaffoldMessenger.showSnackBar(const SnackBar(
content: Text('ERR: Please open this website: https://github.com/NobodyForNothing/blood-pressure-monitor-fl/issues'),),);
content: Text('ERR: Please open this website: https://github.com/derdilla/blood-pressure-monitor-fl/issues'),),);
}
} catch (e) {
scaffoldMessenger.showSnackBar(SnackBar(
Expand Down
2 changes: 1 addition & 1 deletion app/lib/screens/settings_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ class SettingsPage extends StatelessWidget {
trailing: const Icon(Icons.open_in_new),
onTap: () async {
final scaffoldMessenger = ScaffoldMessenger.of(context);
final url = Uri.parse('https://github.com/NobodyForNothing/blood-pressure-monitor-fl');
final url = Uri.parse('https://github.com/derdilla/blood-pressure-monitor-fl');
if (await canLaunchUrl(url)) {
await launchUrl(url, mode: LaunchMode.externalApplication);
} else {
Expand Down
8 changes: 4 additions & 4 deletions docs/files.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ When exporting the data as CSV, the file will use standard platform newlines (`\

## Legacy data

### Until [#189](https://github.com/NobodyForNothing/blood-pressure-monitor-fl/pull/189) and [#195](https://github.com/NobodyForNothing/blood-pressure-monitor-fl/pull/195) ([v1.5.5](https://github.com/NobodyForNothing/blood-pressure-monitor-fl/tree/v1.5.5))
### Until [#189](https://github.com/derdilla/blood-pressure-monitor-fl/pull/189) and [#195](https://github.com/derdilla/blood-pressure-monitor-fl/pull/195) ([v1.5.5](https://github.com/derdilla/blood-pressure-monitor-fl/tree/v1.5.5))

Settings were stored in androids shared preferences storage. It consisted of a lot of individual keys and update code can be found in the [update_legacy_settings.dart](https://github.com/NobodyForNothing/blood-pressure-monitor-fl/blob/main/app/lib/model/storage/update_legacy_settings.dart) file. Support will be dropped in october 2024 (a year after migration started).
Settings were stored in androids shared preferences storage. It consisted of a lot of individual keys and update code can be found in the [update_legacy_settings.dart](https://github.com/derdilla/blood-pressure-monitor-fl/blob/main/app/lib/model/storage/update_legacy_settings.dart) file. Support will be dropped in october 2024 (a year after migration started).

### Until [#332](https://github.com/NobodyForNothing/blood-pressure-monitor-fl/pull/332/)
### Until [#332](https://github.com/derdilla/blood-pressure-monitor-fl/pull/332/)

In a `dbPath`/`blood_pressure.db` SQLite3 database a `bloodPressureModel` table contains entries with the blood pressure records and notes including a json representation of the color in the ("needlePin") column.

The `await getDatabasesPath()`/`medicine.intakes` File consists of a plain text csv like representation of medicine intakes. The format of this file was rather experimental and gets replaced as part of [#257](https://github.com/NobodyForNothing/blood-pressure-monitor-fl/issues/257). For an exact description look at the `deserialize` factory method of the `IntakeHistory` class, but in general every line (including the first) contains a medicine intake with fields seperated by `\x00`. The first field is the medicine id, the second is the time the medicine was taken in milliseconds since epoch and the third is the dosis of the medicine.
The `await getDatabasesPath()`/`medicine.intakes` File consists of a plain text csv like representation of medicine intakes. The format of this file was rather experimental and gets replaced as part of [#257](https://github.com/derdilla/blood-pressure-monitor-fl/issues/257). For an exact description look at the `deserialize` factory method of the `IntakeHistory` class, but in general every line (including the first) contains a medicine intake with fields seperated by `\x00`. The first field is the medicine id, the second is the time the medicine was taken in milliseconds since epoch and the third is the dosis of the medicine.
3 changes: 1 addition & 2 deletions health_data_store/lib/src/database_manager.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import 'package:sqflite_common/sqlite_api.dart';

/// Manager for the database.
Expand All @@ -8,7 +7,7 @@ import 'package:sqflite_common/sqlite_api.dart';
///
/// ## DB scheme
///
/// ![Diagram](https://github.com/NobodyForNothing/blood-pressure-monitor-fl/blob/main/docs/resources/db-scheme.png?raw=true)
/// ![Diagram](https://github.com/derdilla/blood-pressure-monitor-fl/blob/main/docs/resources/db-scheme.png?raw=true)
///
/// ## Types
/// Data in the database tries to always use the most common SI-units.
Expand Down

0 comments on commit 3f27806

Please sign in to comment.