Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(flutter): update replace snapshot step about version 3.19.0 #289

Merged
merged 2 commits into from
Mar 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
4 changes: 2 additions & 2 deletions docs/framework/flutter/Flutter SDK.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import TabItem from '@theme/TabItem';

```c
dependencies:
growingio_autotracker_flutter_plugin: '2.0.0'
growingio_autotracker_flutter_plugin: '2.0.1'
```

</TabItem>
Expand All @@ -43,7 +43,7 @@ dependencies:

```c
dependencies:
growingio_tracker_flutter_plugin: '2.0.0'
growingio_tracker_flutter_plugin: '2.0.1'
```

</TabItem>
Expand Down
1 change: 1 addition & 0 deletions docs/framework/flutter/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Flutter SDK 提供了 [无埋点SDK](/docs/framework/flutter/index.md) 和 [埋
## 版本记录
| 版本 | 说明 | 日期 |
|:-------:| :---- | :-------: |
| v2.0.1 | 稳定性优化,见:[v2.0.1](https://github.com/growingio/growingio-sdk-flutter/releases/tag/v2.0.1) | 2024-03-19 |
| v2.0.0 | 新版本 与 GrowingIO SDK 4.0 同步,添加新的接口和参数<br/>- Flutter 的 Page 不再基于 Router,由 mixin 类实现,更加清晰的生命周期逻辑和代码结构;<br/>- 圈选的元素只有在定义为 Page 的页面下才能发送元素;<br/>- 无埋点点击事件现在异步发送。 | 2024-01-25 |

:::info
Expand Down
Loading