darkmoon_uk
09/04/2022, 1:14 PMRuntimeEffect
doesn't resolve.Kirill Grouchnikov
09/04/2022, 5:14 PMdarkmoon_uk
09/04/2022, 9:43 PMKirill Grouchnikov
09/04/2022, 9:47 PMjim
09/06/2022, 5:37 PMI presume Skia underlying Jetpack Compose has most of the capabilities to share SKSL even pre-Android 13 (for Flutter) but there's an abstraction gap when it comes to exposing that to Kotlin.@darkmoon_uk Flutter bundles their own copy of Skia which allows them to use the latest Skia version (instead of the one bundled with the platform) and to access the Skia APIs directly (instead of needing a platform version which exposes the API). The downside of this approach is larger bundle size and worse interoperability (eg. embedding Android Views). We investigated doing the same, but decided using the Skia bundled in Android gave us a better mix of benefits. However, if you aren't using the interoperability APIs, and prefer to have the easy experience/API matching iOS/Desktop, bundling may be a reasonable option for you. Anyway, it would be some amount of work and is undocumented, so you'd need to figure out a bunch of things yourself (including doing a build of skiko/compose), not sure if it's worth it, but there is nothing preventing you from bundling Skia with your app to get SKSL on Android 11.