feat(train): other apps' workouts read from Health Connect (ADR 0030, D31)
Read from other apps, off until turned on, asks for reading with the history; the apps that wrote sessions are listed, each off. One turned on brings its sessions, earlier ones at once and later ones through the changes token as the app opens and comes to the front: each a workout of Train's own store, sealed and synced, its origin in its payload, its heart rate, pauses and a row's power as series, named by its app in the list and on its page. A double of a workout Train has brings at most its heart rate; one deleted in Train stays out; a track comes only when asked for on the page, Health Connect asking for consent. What came from Health Connect is never written back. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
This commit is contained in:
parent
09f61c3b0a
commit
8fb2dbf35e
1 changed files with 1304 additions and 111 deletions
|
|
@ -862,11 +862,11 @@ abstract class AppLocalizations {
|
|||
/// **'Every workout on this phone, kept up to date as you edit or delete it'**
|
||||
String get healthWriteHint;
|
||||
|
||||
/// No description provided for @healthWriteRefused.
|
||||
/// No description provided for @healthTakenBack.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Health Connect took this back. Allow it there to turn it on again.'**
|
||||
String get healthWriteRefused;
|
||||
String get healthTakenBack;
|
||||
|
||||
/// No description provided for @healthRefused.
|
||||
///
|
||||
|
|
@ -909,6 +909,54 @@ abstract class AppLocalizations {
|
|||
/// In en, this message translates to:
|
||||
/// **'What Train reads there is shown to you and nobody else, and isn\'t used for anything else. Turning a switch off, or taking a permission back in Health Connect, stops it.'**
|
||||
String get healthRationaleNothingElse;
|
||||
|
||||
/// No description provided for @healthRead.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Read from other apps'**
|
||||
String get healthRead;
|
||||
|
||||
/// No description provided for @healthReadHint.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Their workouts come into Train, from the apps you choose below'**
|
||||
String get healthReadHint;
|
||||
|
||||
/// Over the apps that wrote workouts to Health Connect, each with its switch.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Apps'**
|
||||
String get healthApps;
|
||||
|
||||
/// No description provided for @healthAppsEmpty.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'No app has written workouts to Health Connect yet.'**
|
||||
String get healthAppsEmpty;
|
||||
|
||||
/// In the list, after when an imported workout was: the app it came from.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'from {app}'**
|
||||
String workoutFromList(String app);
|
||||
|
||||
/// On an imported workout's page.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'From {app}, through Health Connect'**
|
||||
String workoutFrom(String app);
|
||||
|
||||
/// On an imported workout's page: asks Health Connect for its route.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Bring in the track'**
|
||||
String get workoutBringTrack;
|
||||
|
||||
/// No description provided for @workoutNoTrack.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Health Connect gave no track for it.'**
|
||||
String get workoutNoTrack;
|
||||
}
|
||||
|
||||
class _AppLocalizationsDelegate
|
||||
|
|
|
|||
Loading…
Reference in a new issue