Skip to content

Commit

Permalink
feat: 网页启用 wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
he0119 committed Jul 6, 2024
1 parent a6aac40 commit 464ef7c
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ jobs:
cache: true
- name: Build web version
run: |
flutter build web --web-renderer=html --source-maps -t ./lib/main_$ENVIRONMENT.dart
flutter build web --wasm --source-maps -t ./lib/main_$ENVIRONMENT.dart
env:
ENVIRONMENT: ${{ needs.test.outputs.environment }}
SENTRY_RELEASE: ${{ needs.test.outputs.release }}
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/lang/zh-CN/
### Added

- 物品管理位置二维码支持完整的网址
- 网页启用 wasm

### Changed

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ flutter run -t ./lib/main_dev.dart

## Web

使用 `flutter build web --web-renderer=html --source-maps -t ./lib/main_prod.dart` 编译网页版。
使用 `flutter build web --wasm --source-maps -t ./lib/main_prod.dart` 编译网页版。

## Windows

Expand Down
21 changes: 11 additions & 10 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -455,13 +455,14 @@ packages:
source: hosted
version: "2.0.0"
flutter_keyboard_visibility_web:
dependency: transitive
dependency: "direct overridden"
description:
name: flutter_keyboard_visibility_web
sha256: d3771a2e752880c79203f8d80658401d0c998e4183edca05a149f5098ce6e3d1
url: "https://pub.dev"
source: hosted
version: "2.0.0"
path: flutter_keyboard_visibility_web
ref: master
resolved-ref: "6c4afba1fcce4488b1f4f36d2ed1ec77f461ad54"
url: "https://github.com/raldhafiri/flutter_keyboard_visibility.git"
source: git
version: "2.0.1"
flutter_keyboard_visibility_windows:
dependency: transitive
description:
Expand Down Expand Up @@ -1129,10 +1130,10 @@ packages:
dependency: transitive
description:
name: sentry
sha256: "7342ef4c18932881730ac941a07a6e4cf76fe99cd1ea3bef06e53a6a1402dec0"
sha256: be1568413dc71b86276d0b1599b208c4fc0ea95a06ef8c68f971d43260a72a9b
url: "https://pub.dev"
source: hosted
version: "8.3.0"
version: "8.4.0-beta.1"
sentry_dart_plugin:
dependency: "direct dev"
description:
Expand All @@ -1145,10 +1146,10 @@ packages:
dependency: "direct main"
description:
name: sentry_flutter
sha256: "475cf49682e4d1eb48caa2577502721bcfdcbb63f215de57b3b246d52f4f7914"
sha256: e46f0efb9d002ae0d8bcadd2737ddf425cb76667c242d148224bb814b3d28350
url: "https://pub.dev"
source: hosted
version: "8.3.0"
version: "8.4.0-beta.1"
share_plus:
dependency: "direct main"
description:
Expand Down
10 changes: 9 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ dependencies:
flutter_keyboard_visibility: ^6.0.0
photo_view: ^0.15.0
image_picker: ^1.1.2
sentry_flutter: ^8.3.0
sentry_flutter: ^8.4.0-beta.1
flutter_treeview: ^1.0.7+1
dynamic_color: ^1.7.0
qr_flutter: ^4.1.0
Expand All @@ -60,6 +60,14 @@ dependencies:
flutter_sticky_header: ^0.6.5
extended_sliver: ^2.1.3

# https://github.com/MisterJimson/flutter_keyboard_visibility/pull/155#issuecomment-2112047514
dependency_overrides:
flutter_keyboard_visibility_web:
git:
url: https://github.com/raldhafiri/flutter_keyboard_visibility.git
ref: master
path: flutter_keyboard_visibility_web

dev_dependencies:
flutter_test:
sdk: flutter
Expand Down

0 comments on commit 464ef7c

Please sign in to comment.