From ccefae5936d83983768566faf61ceeb68e0aa3a2 Mon Sep 17 00:00:00 2001 From: violet-dev Date: Wed, 15 May 2024 15:30:38 +0900 Subject: [PATCH 1/2] Logging ScriptManager::init --- lib/script/script_manager.dart | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/lib/script/script_manager.dart b/lib/script/script_manager.dart index 772bca68a..8fd262b33 100644 --- a/lib/script/script_manager.dart +++ b/lib/script/script_manager.dart @@ -32,25 +32,33 @@ class ScriptManager { _scriptCache = json.decode(parse(scriptHtml) .querySelector("script[data-target='react-app.embeddedData']")! .text)['payload']['blob']['rawBlob']; - } catch (e) { + } catch (e, st) { + await Logger.warning('[ScriptManager-init] W: $e\n' + '$st'); debugPrint(e.toString()); } if (_scriptCache == null) { try { _scriptCache = (await http.get(_scriptUrl)).body; - } catch (e) { + } catch (e, st) { + await Logger.warning('[ScriptManager-init] W: $e\n' + '$st'); debugPrint(e.toString()); } } try { _v4Cache = (await http.get(_scriptV4)).body; - } catch (e) { + } catch (e, st) { + await Logger.warning('[ScriptManager-init] W: $e\n' + '$st'); debugPrint(e.toString()); } _latestUpdate = DateTime.now(); try { _initRuntime(); - } catch (e) { + } catch (e, st) { + await Logger.error('[ScriptManager-init] E: $e\n' + '$st'); debugPrint(e.toString()); } } From 1cbf6bb00c04508087f0c3fc9c617ba642760c8a Mon Sep 17 00:00:00 2001 From: violet-dev Date: Wed, 15 May 2024 16:15:11 +0900 Subject: [PATCH 2/2] Bump down to 3.19.6 --- .github/workflows/build.yml | 4 ++-- pubspec.lock | 2 +- pubspec.yaml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 860a125ee..b356daea8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,7 +21,7 @@ jobs: - uses: subosito/flutter-action@v1 with: channel: 'stable' - flutter-version: 3.22.0 + flutter-version: 3.19.6 - uses: dtolnay/rust-toolchain@stable @@ -48,7 +48,7 @@ jobs: - uses: subosito/flutter-action@v2 with: channel: 'stable' - flutter-version: 3.22.0 + flutter-version: 3.19.6 - uses: actions/setup-python@v2 with: diff --git a/pubspec.lock b/pubspec.lock index cb99658cc..e6b040e61 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -1969,4 +1969,4 @@ packages: version: "3.1.2" sdks: dart: ">=3.3.0 <4.0.0" - flutter: ">=3.22.0" + flutter: ">=3.19.6" diff --git a/pubspec.yaml b/pubspec.yaml index 523f7bbb2..87594a7a0 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -17,7 +17,7 @@ publish_to: none environment: sdk: ^3.0.0 - flutter: "3.22.0" + flutter: "3.19.6" dependencies: flutter: