Skip to content

3.5.0

Choose a tag to compare

@codenameakshay codenameakshay released this 16 Oct 20:14
· 25 commits to main since this release
9a07bfd

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 with invalid-input, because Uri.isAbsolute is 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 downloadWallpaper logs why a download failed under the AsyncWallpaper logcat 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 as https://@example.com/a.jpg. Some Android entry points previously returned invalid-url. Behavior change: on iOS 17+, downloadWallpaper accepted some of them, because URL(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 failed with shader-compilation-failed or shader-link-failed and the driver log in errorDetails, and the active wallpaper does not change. Before, the preview opened, the wallpaper rendered black, and the result was previewOpened. 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 onSurfaceDestroyed returns, as SurfaceHolder.Callback requires.
  • OpenGL live wallpapers: textures are now upright. texture2D(u_texture0, v_uv) showed them upside down. Remove any 1.0 - v_uv.y flip that compensated; see doc/migration.md.