Repository navigation
3.5.0
OpenGL and URL-handling release. The Dart API is unchanged, but OpenGL textures are now upright and some HTTPS URLs are now rejected. See doc/migration.md.
- Accept HTTPS URLs that have a
#fragment. Since 3.3.0 the Dart layer rejected them withinvalid-input, becauseUri.isAbsoluteis false for any URI with a fragment. Android and iOS accept them and do not send the fragment. Fragment characters that Android rejects stay rejected. - Android
downloadWallpaperlogs why a download failed under theAsyncWallpaperlogcat tag: an unsupported image type such as ICO, an image that does not decode, a MediaStore error, or a source error code. Dart still receives a generic failure, because the method returns a Boolean. The log names MIME types, error codes, or the exception class, and never the URL. Exception logs no longer print exception messages, which could include the URL. - Reject HTTPS URLs that Android cannot parse with
invalid-input:"<>^`{|}, U+0080–U+009F, or a Unicode space separator anywhere in the URL,[or]in the path, and any@in the authority, such ashttps://@example.com/a.jpg. Some Android entry points previously returnedinvalid-url. Behavior change: on iOS 17+,downloadWallpaperaccepted some of them, becauseURL(string:)percent-encodes them. Percent-encode prohibited characters in path, query, or fragment data. Remove user information from the authority instead of percent-encoding its@. - OpenGL live wallpapers: compile and link the fragment shader on the device's driver before activating it or opening the preview. A shader that the driver rejects now returns
failedwithshader-compilation-failedorshader-link-failedand the driver log inerrorDetails, and the active wallpaper does not change. Before, the preview opened, the wallpaper rendered black, and the result waspreviewOpened. The check is skipped and logged when it cannot run, for example without a pbuffer EGL config or without a result within 2 seconds. - OpenGL live wallpapers: wait, for up to 1 second, until the render thread stops using the wallpaper surface before
onSurfaceDestroyedreturns, asSurfaceHolder.Callbackrequires. - OpenGL live wallpapers: textures are now upright.
texture2D(u_texture0, v_uv)showed them upside down. Remove any1.0 - v_uv.yflip that compensated; see doc/migration.md.