Can I check SkSL bundle engine version with Flutter?

1.1k views Asked by At

I have recorded SkSl script to warmup shaders. I use this build option to apply it for my Flutter app's release builds:

flutter build appbundle --release --bundle-sksl-path flutter_01.sksl.json

It works great, but it stops work when new Flutter version released. In that case I have an error:

Expected Flutter b8752bbfff0419c8bf616b602bc59fd28f6a3d1b, but found 2c956a31c0a3d350827aee6c56bb63337c5b4e6e
The SkSL bundle was produced with a different engine version. It must be recreated for the current Flutter version.

I want to detect this error without building my release app (as a merge check on CI).

The question: is it possible?

0

There are 0 answers