From 6e64831515b4d1118650ad461af49b5ef5b309c9 Mon Sep 17 00:00:00 2001 From: Stefan Haslinger Date: Tue, 15 Mar 2022 11:55:09 +0100 Subject: [PATCH] reset non parseable on parsing start --- .flutter-plugins-dependencies | 2 +- android/app/src/main/AndroidManifest.xml | 3 +++ lib/models/activity.dart | 3 ++- lib/models/strava_fit_download.dart | 1 + 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.flutter-plugins-dependencies b/.flutter-plugins-dependencies index 66a49a3..e963f3d 100644 --- a/.flutter-plugins-dependencies +++ b/.flutter-plugins-dependencies @@ -1 +1 @@ -{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"flutter_secure_storage","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_secure_storage-5.0.2/","dependencies":[]},{"name":"package_info","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/package_info-2.0.2/","dependencies":[]},{"name":"path_provider_ios","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_ios-2.0.8/","dependencies":[]},{"name":"shared_preferences_ios","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_ios-2.1.0/","dependencies":[]},{"name":"sqflite","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-2.0.2/","dependencies":[]},{"name":"sqflite_sqlcipher","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite_sqlcipher-2.1.0/","dependencies":[]},{"name":"uni_links","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/uni_links-0.5.1/","dependencies":[]},{"name":"url_launcher_ios","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_ios-6.0.15/","dependencies":[]}],"android":[{"name":"flutter_secure_storage","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_secure_storage-5.0.2/","dependencies":[]},{"name":"package_info","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/package_info-2.0.2/","dependencies":[]},{"name":"path_provider_android","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_android-2.0.12/","dependencies":[]},{"name":"shared_preferences_android","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_android-2.0.11/","dependencies":[]},{"name":"sqflite","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-2.0.2/","dependencies":[]},{"name":"sqflite_sqlcipher","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite_sqlcipher-2.1.0/","dependencies":[]},{"name":"uni_links","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/uni_links-0.5.1/","dependencies":[]},{"name":"url_launcher_android","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_android-6.0.15/","dependencies":[]}],"macos":[{"name":"flutter_secure_storage_macos","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_secure_storage_macos-1.1.0/","dependencies":[]},{"name":"package_info","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/package_info-2.0.2/","dependencies":[]},{"name":"path_provider_macos","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-2.0.5/","dependencies":[]},{"name":"shared_preferences_macos","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_macos-2.0.3/","dependencies":[]},{"name":"sqflite","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-2.0.2/","dependencies":[]},{"name":"sqflite_sqlcipher","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite_sqlcipher-2.1.0/","dependencies":[]},{"name":"url_launcher_macos","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-3.0.0/","dependencies":[]}],"linux":[{"name":"flutter_secure_storage_linux","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_secure_storage_linux-1.1.0/","dependencies":[]},{"name":"path_provider_linux","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-2.1.5/","dependencies":[]},{"name":"shared_preferences_linux","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_linux-2.1.0/","dependencies":["path_provider_linux"]},{"name":"url_launcher_linux","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_linux-3.0.0/","dependencies":[]}],"windows":[{"name":"flutter_secure_storage_windows","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_secure_storage_windows-1.1.2/","dependencies":[]},{"name":"path_provider_windows","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-2.0.5/","dependencies":[]},{"name":"shared_preferences_windows","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_windows-2.1.0/","dependencies":["path_provider_windows"]},{"name":"url_launcher_windows","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_windows-3.0.0/","dependencies":[]}],"web":[{"name":"flutter_secure_storage_web","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_secure_storage_web-1.0.2/","dependencies":[]},{"name":"shared_preferences_web","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_web-2.0.3/","dependencies":[]},{"name":"uni_links_web","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/uni_links_web-0.1.0/","dependencies":[]},{"name":"url_launcher_web","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-2.0.9/","dependencies":[]}]},"dependencyGraph":[{"name":"flutter_secure_storage","dependencies":["flutter_secure_storage_linux","flutter_secure_storage_macos","flutter_secure_storage_web","flutter_secure_storage_windows"]},{"name":"flutter_secure_storage_linux","dependencies":[]},{"name":"flutter_secure_storage_macos","dependencies":[]},{"name":"flutter_secure_storage_web","dependencies":[]},{"name":"flutter_secure_storage_windows","dependencies":[]},{"name":"package_info","dependencies":[]},{"name":"path_provider","dependencies":["path_provider_android","path_provider_ios","path_provider_linux","path_provider_macos","path_provider_windows"]},{"name":"path_provider_android","dependencies":[]},{"name":"path_provider_ios","dependencies":[]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_macos","dependencies":[]},{"name":"path_provider_windows","dependencies":[]},{"name":"shared_preferences","dependencies":["shared_preferences_android","shared_preferences_ios","shared_preferences_linux","shared_preferences_macos","shared_preferences_web","shared_preferences_windows"]},{"name":"shared_preferences_android","dependencies":[]},{"name":"shared_preferences_ios","dependencies":[]},{"name":"shared_preferences_linux","dependencies":["path_provider_linux"]},{"name":"shared_preferences_macos","dependencies":[]},{"name":"shared_preferences_web","dependencies":[]},{"name":"shared_preferences_windows","dependencies":["path_provider_windows"]},{"name":"sqflite","dependencies":[]},{"name":"sqflite_sqlcipher","dependencies":[]},{"name":"uni_links","dependencies":["uni_links_web"]},{"name":"uni_links_web","dependencies":[]},{"name":"url_launcher","dependencies":["url_launcher_android","url_launcher_ios","url_launcher_linux","url_launcher_macos","url_launcher_web","url_launcher_windows"]},{"name":"url_launcher_android","dependencies":[]},{"name":"url_launcher_ios","dependencies":[]},{"name":"url_launcher_linux","dependencies":[]},{"name":"url_launcher_macos","dependencies":[]},{"name":"url_launcher_web","dependencies":[]},{"name":"url_launcher_windows","dependencies":[]}],"date_created":"2022-03-15 10:10:12.719784","version":"2.10.3"} \ No newline at end of file +{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"flutter_secure_storage","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_secure_storage-5.0.2/","dependencies":[]},{"name":"package_info","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/package_info-2.0.2/","dependencies":[]},{"name":"path_provider_ios","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_ios-2.0.8/","dependencies":[]},{"name":"shared_preferences_ios","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_ios-2.1.0/","dependencies":[]},{"name":"sqflite","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-2.0.2/","dependencies":[]},{"name":"sqflite_sqlcipher","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite_sqlcipher-2.1.0/","dependencies":[]},{"name":"uni_links","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/uni_links-0.5.1/","dependencies":[]},{"name":"url_launcher_ios","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_ios-6.0.15/","dependencies":[]}],"android":[{"name":"flutter_secure_storage","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_secure_storage-5.0.2/","dependencies":[]},{"name":"package_info","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/package_info-2.0.2/","dependencies":[]},{"name":"path_provider_android","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_android-2.0.12/","dependencies":[]},{"name":"shared_preferences_android","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_android-2.0.11/","dependencies":[]},{"name":"sqflite","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-2.0.2/","dependencies":[]},{"name":"sqflite_sqlcipher","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite_sqlcipher-2.1.0/","dependencies":[]},{"name":"uni_links","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/uni_links-0.5.1/","dependencies":[]},{"name":"url_launcher_android","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_android-6.0.15/","dependencies":[]}],"macos":[{"name":"flutter_secure_storage_macos","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_secure_storage_macos-1.1.0/","dependencies":[]},{"name":"package_info","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/package_info-2.0.2/","dependencies":[]},{"name":"path_provider_macos","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-2.0.5/","dependencies":[]},{"name":"shared_preferences_macos","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_macos-2.0.3/","dependencies":[]},{"name":"sqflite","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-2.0.2/","dependencies":[]},{"name":"sqflite_sqlcipher","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite_sqlcipher-2.1.0/","dependencies":[]},{"name":"url_launcher_macos","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-3.0.0/","dependencies":[]}],"linux":[{"name":"flutter_secure_storage_linux","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_secure_storage_linux-1.1.0/","dependencies":[]},{"name":"path_provider_linux","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-2.1.5/","dependencies":[]},{"name":"shared_preferences_linux","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_linux-2.1.0/","dependencies":["path_provider_linux"]},{"name":"url_launcher_linux","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_linux-3.0.0/","dependencies":[]}],"windows":[{"name":"flutter_secure_storage_windows","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_secure_storage_windows-1.1.2/","dependencies":[]},{"name":"path_provider_windows","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-2.0.5/","dependencies":[]},{"name":"shared_preferences_windows","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_windows-2.1.0/","dependencies":["path_provider_windows"]},{"name":"url_launcher_windows","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_windows-3.0.0/","dependencies":[]}],"web":[{"name":"flutter_secure_storage_web","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_secure_storage_web-1.0.2/","dependencies":[]},{"name":"shared_preferences_web","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_web-2.0.3/","dependencies":[]},{"name":"uni_links_web","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/uni_links_web-0.1.0/","dependencies":[]},{"name":"url_launcher_web","path":"/home/stefan/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-2.0.9/","dependencies":[]}]},"dependencyGraph":[{"name":"flutter_secure_storage","dependencies":["flutter_secure_storage_linux","flutter_secure_storage_macos","flutter_secure_storage_web","flutter_secure_storage_windows"]},{"name":"flutter_secure_storage_linux","dependencies":[]},{"name":"flutter_secure_storage_macos","dependencies":[]},{"name":"flutter_secure_storage_web","dependencies":[]},{"name":"flutter_secure_storage_windows","dependencies":[]},{"name":"package_info","dependencies":[]},{"name":"path_provider","dependencies":["path_provider_android","path_provider_ios","path_provider_linux","path_provider_macos","path_provider_windows"]},{"name":"path_provider_android","dependencies":[]},{"name":"path_provider_ios","dependencies":[]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_macos","dependencies":[]},{"name":"path_provider_windows","dependencies":[]},{"name":"shared_preferences","dependencies":["shared_preferences_android","shared_preferences_ios","shared_preferences_linux","shared_preferences_macos","shared_preferences_web","shared_preferences_windows"]},{"name":"shared_preferences_android","dependencies":[]},{"name":"shared_preferences_ios","dependencies":[]},{"name":"shared_preferences_linux","dependencies":["path_provider_linux"]},{"name":"shared_preferences_macos","dependencies":[]},{"name":"shared_preferences_web","dependencies":[]},{"name":"shared_preferences_windows","dependencies":["path_provider_windows"]},{"name":"sqflite","dependencies":[]},{"name":"sqflite_sqlcipher","dependencies":[]},{"name":"uni_links","dependencies":["uni_links_web"]},{"name":"uni_links_web","dependencies":[]},{"name":"url_launcher","dependencies":["url_launcher_android","url_launcher_ios","url_launcher_linux","url_launcher_macos","url_launcher_web","url_launcher_windows"]},{"name":"url_launcher_android","dependencies":[]},{"name":"url_launcher_ios","dependencies":[]},{"name":"url_launcher_linux","dependencies":[]},{"name":"url_launcher_macos","dependencies":[]},{"name":"url_launcher_web","dependencies":[]},{"name":"url_launcher_windows","dependencies":[]}],"date_created":"2022-03-15 11:45:57.217533","version":"2.10.3"} \ No newline at end of file diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 3539bb9..ccab080 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -20,6 +20,9 @@ android:name="io.flutter.embedding.android.NormalTheme" android:resource="@style/NormalTheme" /> + diff --git a/lib/models/activity.dart b/lib/models/activity.dart index 891b032..92005c1 100644 --- a/lib/models/activity.dart +++ b/lib/models/activity.dart @@ -443,7 +443,8 @@ class Activity { ..sdevFormPower = null ..avgStrydCadence = null ..sdevStrydCadence = null - ..sdevVerticalOscillation = null; + ..sdevVerticalOscillation = null + ..nonParsable = false; await save(); final int numberOfMessages = fitFile.dataMessages.length; diff --git a/lib/models/strava_fit_download.dart b/lib/models/strava_fit_download.dart index 5f56e1c..c2b0833 100644 --- a/lib/models/strava_fit_download.dart +++ b/lib/models/strava_fit_download.dart @@ -75,6 +75,7 @@ abstract class StravaFitDownload { ); final Document document = parse(homePageResponse.data); + final String? csrfParam = document.querySelector('meta[name="csrf-param"]')!.attributes['content']; final String? csrfToken =