Skip to content

Commit

Permalink
docs(flutter): update replace snapshot step about version 3.19.0
Browse files Browse the repository at this point in the history
  • Loading branch information
YoloMao committed Mar 14, 2024
1 parent 0913ba8 commit 26c0689
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions docs/framework/flutter/Flutter Aspect.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ title: Flutter Aspect 集成
然后再根据你开发使用的 Flutter 版本,切换到相应的 tag 分支上。

:::info
目前支持 Flutter SDK 版本为 [v3.10.5](https://github.com/growingio/growingio-dart-frontend/tree/3.10.5)[v3.10.6](https://github.com/growingio/growingio-dart-frontend/tree/3.10.6)[v3.13.2](https://github.com/growingio/growingio-dart-frontend/tree/3.13.2)[v3.13.9](https://github.com/growingio/growingio-dart-frontend/tree/3.13.9)[v3.16.0](https://github.com/growingio/growingio-dart-frontend/tree/3.16.0)[v3.16.8](https://github.com/growingio/growingio-dart-frontend/tree/3.16.8)[v3.16.9](https://github.com/growingio/growingio-dart-frontend/tree/3.16.9).
目前支持 Flutter SDK 版本为 [v3.10.5](https://github.com/growingio/growingio-dart-frontend/tree/3.10.5)[v3.10.6](https://github.com/growingio/growingio-dart-frontend/tree/3.10.6)[v3.13.2](https://github.com/growingio/growingio-dart-frontend/tree/3.13.2)[v3.13.9](https://github.com/growingio/growingio-dart-frontend/tree/3.13.9)[v3.16.0](https://github.com/growingio/growingio-dart-frontend/tree/3.16.0)[v3.16.8](https://github.com/growingio/growingio-dart-frontend/tree/3.16.8)[v3.16.9](https://github.com/growingio/growingio-dart-frontend/tree/3.16.9)[v3.19.0](https://github.com/growingio/growingio-dart-frontend/tree/3.19.0).

后续将随着Flutter SDK 的更新会持续推出新的版本,若需要支持特定的 Flutter 版本,请在 [Github Issues](https://github.com/growingio/growingio-dart-frontend/issues) 中提交请求或者向客户成功经理咨询方案。
:::
Expand All @@ -35,20 +35,25 @@ import TabItem from '@theme/TabItem';
<TabItem value="manual">

### 访问源码
请访问我们的 [Growingio-Dart-Frontend](https://github.com/growingio/growingio-dart-frontend),该项目的不同分支代表不同的 Flutter 版本,请根据自己项目的flutter版本下载对应tag的 `frontend_server.dart.snapshot`.
请访问我们的 [Growingio-Dart-Frontend](https://github.com/growingio/growingio-dart-frontend),该项目的不同分支代表不同的 Flutter 版本,请根据自己项目的 flutter 版本下载对应 tag 的 `frontend_server.dart.snapshot`.
比如说 flutter 3.16.9 版本,需要下载 tag 3.16.9 下的 `frontend_server.dart.snapshot` 文件。

> 具体位置为 `/lib/flutter_frontend_server/frontend_server.dart.snapshot`
另外,flutter 3.19.0 版本及以上还需要下载对应您当前平台架构的 `frontend_server_aot.dart.snapshot` 文件。

> 具体位置为 `/lib/flutter_frontend_server/<您当前的平台架构,如darwin_arm64>/frontend_server_aot.dart.snapshot`
### 覆盖源文件
需要在 flutter sdk下进行替换,位置分别为:
1. `<flutter sdk dir>/bin/cache/artifacts/engine/darwin-x64/frontend_server.dart.snapshot (macos)`
`<flutter sdk dir>/bin/cache/artifacts/engine/windows-x64/frontend_server.dart.snapshot (windows)`
`<flutter sdk dir>/bin/cache/artifacts/engine/linux-x64/frontend_server.dart.snapshot (linux)`
2. `<flutter sdk dir>/bin/cache/dart-sdk/bin/snapshots/frontend_server.dart.snapshot`
3. `<flutter sdk dir>/bin/cache/dart-sdk/bin/snapshots/frontend_server_aot.dart.snapshot`

### 清除缓存
覆盖 `frontend_server.dart.snapshot` 后需要清理缓存
覆盖 `frontend_server.dart.snapshot` `frontend_server_aot.dart.snapshot` 后需要清理缓存
```cmd
flutter clean
```
Expand Down

0 comments on commit 26c0689

Please sign in to comment.