Skip to content

Commit

Permalink
Add wasm support
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeDoctorDE committed Aug 14, 2024
1 parent 4925539 commit 30e8f6d
Show file tree
Hide file tree
Showing 8 changed files with 75 additions and 70 deletions.
4 changes: 2 additions & 2 deletions app/android/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ GEM
artifactory (3.0.17)
atomos (0.1.3)
aws-eventstream (1.3.0)
aws-partitions (1.962.0)
aws-partitions (1.963.0)
aws-sdk-core (3.201.4)
aws-eventstream (~> 1, >= 1.3.0)
aws-partitions (~> 1, >= 1.651.0)
Expand Down Expand Up @@ -171,7 +171,7 @@ GEM
trailblazer-option (>= 0.1.1, < 0.2.0)
uber (< 0.2.0)
retriable (3.1.2)
rexml (3.3.4)
rexml (3.3.5)
strscan
rouge (2.0.7)
ruby2_keywords (0.0.5)
Expand Down
5 changes: 2 additions & 3 deletions app/lib/setup_web.dart
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
// ignore: avoid_web_libraries_in_flutter
import 'dart:html';
import 'package:flutter/services.dart';

import 'bloc/settings.dart';
import 'setup.dart' as general_setup;

Future<void> setup(SettingsCubit settingsCubit) async {
window.document.onContextMenu.listen((evt) => evt.preventDefault());
await BrowserContextMenu.disableContextMenu();
await general_setup.setup(settingsCubit);
}
44 changes: 22 additions & 22 deletions app/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ packages:
dependency: transitive
description:
name: ansicolor
sha256: "8bf17a8ff6ea17499e40a2d2542c2f481cd7615760c6d34065cb22bfd22e6880"
sha256: "50e982d500bc863e1d703448afdbf9e5a72eb48840a4f766fa361ffd6877055f"
url: "https://pub.dev"
source: hosted
version: "2.0.2"
version: "2.0.3"
archive:
dependency: "direct main"
description:
Expand Down Expand Up @@ -202,10 +202,10 @@ packages:
dependency: transitive
description:
name: crypto
sha256: ff625774173754681d66daaf4a448684fb04b78f902da9cb3d308c19cc5e8bab
sha256: "1dceb0cf05cb63a7852c11560060e53ec2f182079a16ced6f4395c5b0875baf8"
url: "https://pub.dev"
source: hosted
version: "3.0.3"
version: "3.0.4"
dart_leap:
dependency: transitive
description:
Expand Down Expand Up @@ -275,10 +275,10 @@ packages:
dependency: transitive
description:
name: ffi
sha256: "493f37e7df1804778ff3a53bd691d8692ddf69702cf4c1c1096a2e41b4779e21"
sha256: "16ed7b077ef01ad6170a3d0c57caa4a112a38d7a2ed5602e0aca9ca6f3d98da6"
url: "https://pub.dev"
source: hosted
version: "2.1.2"
version: "2.1.3"
file:
dependency: transitive
description:
Expand All @@ -299,10 +299,10 @@ packages:
dependency: transitive
description:
name: file_selector_android
sha256: d1e8655c1a4850a900a0cfaed55fdd273881d53a4bb78e4736dc170a0b17db78
sha256: "77f23eb5916fd0875946720d1f286f809a28a867d4882db6ac2cf053e2d5f7c6"
url: "https://pub.dev"
source: hosted
version: "0.5.1+5"
version: "0.5.1+6"
file_selector_ios:
dependency: transitive
description:
Expand Down Expand Up @@ -656,8 +656,8 @@ packages:
dependency: "direct main"
description:
path: "packages/lw_file_system"
ref: e8ac49cdfb84557edfd759534ffa96d9df31cb2b
resolved-ref: e8ac49cdfb84557edfd759534ffa96d9df31cb2b
ref: "21808e89bb6239f0b39367d0c00b0b14f5273992"
resolved-ref: "21808e89bb6239f0b39367d0c00b0b14f5273992"
url: "https://github.com/LinwoodDev/dart_pkgs.git"
source: git
version: "1.0.0"
Expand All @@ -674,8 +674,8 @@ packages:
dependency: "direct main"
description:
path: "packages/lw_sysapi"
ref: "8bef88569885efb6901177e9074b88b693ed9fce"
resolved-ref: "8bef88569885efb6901177e9074b88b693ed9fce"
ref: "21808e89bb6239f0b39367d0c00b0b14f5273992"
resolved-ref: "21808e89bb6239f0b39367d0c00b0b14f5273992"
url: "https://github.com/LinwoodDev/dart_pkgs.git"
source: git
version: "0.0.1"
Expand Down Expand Up @@ -707,8 +707,8 @@ packages:
dependency: "direct main"
description:
path: "packages/material_leap"
ref: a3af605c342654ff3bf8cb2e33f1d99d7a2d56f9
resolved-ref: a3af605c342654ff3bf8cb2e33f1d99d7a2d56f9
ref: a29a889a9cb9be8cf753a52482406bdcecfa924d
resolved-ref: a29a889a9cb9be8cf753a52482406bdcecfa924d
url: "https://github.com/LinwoodDev/dart_pkgs.git"
source: git
version: "0.0.1"
Expand Down Expand Up @@ -814,10 +814,10 @@ packages:
dependency: transitive
description:
name: path_provider_android
sha256: "490539678396d4c3c0b06efdaab75ae60675c3e0c66f72bc04c2e2c1e0e2abeb"
sha256: "6f01f8e37ec30b07bc424b4deabac37cacb1bc7e2e515ad74486039918a37eb7"
url: "https://pub.dev"
source: hosted
version: "2.2.9"
version: "2.2.10"
path_provider_foundation:
dependency: transitive
description:
Expand Down Expand Up @@ -990,10 +990,10 @@ packages:
dependency: transitive
description:
name: shared_preferences_foundation
sha256: "776786cff96324851b656777648f36ac772d88bc4c669acff97b7fce5de3c849"
sha256: c4b35f6cb8f63c147312c054ce7c2254c8066745125264f0c88739c417fc9d9f
url: "https://pub.dev"
source: hosted
version: "2.5.1"
version: "2.5.2"
shared_preferences_linux:
dependency: transitive
description:
Expand Down Expand Up @@ -1179,10 +1179,10 @@ packages:
dependency: transitive
description:
name: url_launcher_android
sha256: "94d8ad05f44c6d4e2ffe5567ab4d741b82d62e3c8e288cc1fcea45965edf47c9"
sha256: f0c73347dfcfa5b3db8bc06e1502668265d39c08f310c29bff4e28eea9699f79
url: "https://pub.dev"
source: hosted
version: "6.3.8"
version: "6.3.9"
url_launcher_ios:
dependency: transitive
description:
Expand Down Expand Up @@ -1323,10 +1323,10 @@ packages:
dependency: transitive
description:
name: win32
sha256: "015002c060f1ae9f41a818f2d5640389cc05283e368be19dc8d77cecb43c40c9"
sha256: "68d1e89a91ed61ad9c370f9f8b6effed9ae5e0ede22a270bdfa6daf79fc2290a"
url: "https://pub.dev"
source: hosted
version: "5.5.3"
version: "5.5.4"
win32_registry:
dependency: transitive
description:
Expand Down
6 changes: 3 additions & 3 deletions app/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ dependencies:
material_leap:
git:
url: https://github.com/LinwoodDev/dart_pkgs.git
ref: a3af605c342654ff3bf8cb2e33f1d99d7a2d56f9
ref: a29a889a9cb9be8cf753a52482406bdcecfa924d
path: packages/material_leap
flex_color_scheme:
git:
Expand Down Expand Up @@ -74,12 +74,12 @@ dependencies:
lw_file_system:
git:
url: https://github.com/LinwoodDev/dart_pkgs.git
ref: e8ac49cdfb84557edfd759534ffa96d9df31cb2b
ref: 21808e89bb6239f0b39367d0c00b0b14f5273992
path: packages/lw_file_system
lw_sysapi:
git:
url: https://github.com/LinwoodDev/dart_pkgs.git
ref: 8bef88569885efb6901177e9074b88b693ed9fce
ref: 21808e89bb6239f0b39367d0c00b0b14f5273992
path: packages/lw_sysapi
# Serialization
json_annotation: ^4.9.0
Expand Down
2 changes: 1 addition & 1 deletion app/scripts/build.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FLUTTER_VERSION=$(cat ../FLUTTER_VERSION)
QUOKKA_FLAVOR=$([[ "$QUOKKA_NIGHTLY" == "true" ]] && echo "nightly" || echo "stable")
if [ "$QUOKKA_NIGHTLY" = "true" ]; then cp -r web_nightly/** web; fi && if cd flutter; then git pull && cd ..; else git clone https://github.com/flutter/flutter.git -b $FLUTTER_VERSION; fi && flutter/bin/flutter config --enable-web && cd ../tools && ../app/flutter/bin/dart pub get && cd .. && app/flutter/bin/dart run tools/generate.dart && cd app && flutter/bin/flutter pub get && flutter/bin/dart run build_runner build --delete-conflicting-outputs && flutter/bin/flutter build web --release --dart-define=FLUTTER_WEB_CANVASKIT_URL=/canvaskit/ --dart-define=flavor=$QUOKKA_FLAVOR
if [ "$QUOKKA_NIGHTLY" = "true" ]; then cp -r web_nightly/** web; fi && if cd flutter; then git pull && cd ..; else git clone https://github.com/flutter/flutter.git -b $FLUTTER_VERSION; fi && flutter/bin/flutter config --enable-web && cd ../tools && ../app/flutter/bin/dart pub get && cd .. && app/flutter/bin/dart run tools/generate.dart && cd app && flutter/bin/flutter pub get && flutter/bin/dart run build_runner build --delete-conflicting-outputs && flutter/bin/flutter build web --wasm --release --dart-define=FLUTTER_WEB_CANVASKIT_URL=/canvaskit/ --dart-define=flavor=$QUOKKA_FLAVOR
6 changes: 3 additions & 3 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
},
"dependencies": {
"@astrojs/check": "^0.9.2",
"@astrojs/starlight": "^0.25.4",
"astro": "^4.13.3",
"@astrojs/starlight": "^0.25.5",
"astro": "^4.13.4",
"sharp": "^0.33.4",
"typescript": "^5.5.4"
},
"packageManager": "[email protected].0"
"packageManager": "[email protected].1"
}
Loading

0 comments on commit 30e8f6d

Please sign in to comment.