Skip to content

0.2.0

Compare
Choose a tag to compare
@alialbaali alialbaali released this 04 Mar 10:11
· 426 commits to main since this release

Changelog

Fetcher

  • Add T.isSupported variable to better customize fetchers with the same data type.
  • Remove fetchResource function as it's no longer needed.
  • Make fetch function returns a ByteReadChannel instead of Result<ByteReadChannel>.

Decoder

  • Add ResourceConfig parameter to decode function.
  • Remove decodeResource function as it's no longer needed.
  • Make decode function returns a T instead of Result<T>.

LazyImageResource

  • Remove generic type T from lazyImageResource composable function and use Any instead.
  • Use data and resourceConfig parameters as keys in LaunchedEffect call.
  • Remove loadImage function as it's not longer needed.
  • Remove generic type T from loadImageResource function and use Any instead.
  • Rename config parameter in loadImageResource function to resourceConfig.
  • Remove experimental annotation on loadImageResource function.

ResourceConfig

  • Add Density variable to ResourceConfig and ResourceConfigBuilder (By default it uses LocalDensity for its value)

KamelConfig

  • Mark KamelConfig builder funciton as inline.
  • Make build function visibility as public.

KamelConfigBuilder

  • Add resourcesFetcher function to enable loading images from application resources.
  • Add resourcesIdMapper function to map Android resource ids to Url

Desktop

  • Support loading images from desktop application resources.

Android

  • Support loading images from android application resources.

General

  • Update Compose version to 0.3.2
  • Update Kotlin version to 1.4.31
  • Update AGP version to 7.0.0-alpha08
  • Update Gradle version to 6.8.3