Skip to content

Commit

Permalink
Merge pull request #417 from project-violet/js-ios-debug
Browse files Browse the repository at this point in the history
Debug js ios
  • Loading branch information
violet-dev authored May 15, 2024
2 parents cc40921 + 1cbf6bb commit 065b4cd
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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:
Expand Down
16 changes: 12 additions & 4 deletions lib/script/script_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}
Expand Down
2 changes: 1 addition & 1 deletion pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ publish_to: none

environment:
sdk: ^3.0.0
flutter: "3.22.0"
flutter: "3.19.6"

dependencies:
flutter:
Expand Down

0 comments on commit 065b4cd

Please sign in to comment.