Skip to content

Releases: kaneoriley/crate

0.5.0

03 May 09:24
Compare
Choose a tag to compare
  • Removed asynchronous loaders and caching (outside of scope)
  • Update dependencies
  • Drop minimum SDK version to 15 (ICS)

0.4.1

05 Apr 14:53
Compare
Choose a tag to compare
  • Feature: Add automatic Gzip wrapping and isGzipped() method for all assets
  • Improvement: Add Loader classes for better adapter usage
  • Feature: Add asUri() method to assets to get path as a Uri String
  • Improvement: Update cache handling and add max size settings to the builder
  • Feature: Added VideoAsset type for supported media formats
  • Feature: Add crate-mediainfo to read video attributes into asset for quick access
  • Fix for JitPack build

0.3

17 Mar 13:06
Compare
Choose a tag to compare
0.3

Major refactor - API breaking changes

  • Refactor to include runtime component to reduce amount of JavaPoet usage
  • Remove static mode (added note in README about how to setup for static access)
  • Remove convenience methods for getters. All assets and folder classes are now static to avoid memory leaks

Other changes

  • Improvement: Add clearTypefaceCache()/clear() methods for reclaiming cached memory
  • Feature: Add ImageAsset class for JPG/JPEG/PNG/GIF assets, with width and height fields
  • Feature: Implement convenience getter for ImageAsset bitmaps, and bitmap caching
  • Feature: Add SvgAsset class for SVG/SVGZ assets
  • Feature: Implement getSvgDrawable() and getSvgBitmap() helper methods in Crate (requires com.caverock:androidsvg:1.2.1 dependency)
  • Feature: Implement PictureDrawable caching to dramatically speedup SVG retrieval
  • Improvement: Use content type rather than file extension for categorising assets
  • Improvement: Add builder pattern and support for clearing specific asset caches

0.2

13 Mar 13:18
Compare
Choose a tag to compare
0.2
  • Improvement: Add debug logging for testing
  • Improvement: Use TreeMap to keep LIST fields sorted by field name
  • Feature: Add FULL_LIST field containing all assets for project
  • Improvement: Make list fields unmodifiable
  • Feature: Add Gradle DSL extension for toggling debug logging and setting output package/class name
  • Feature: Add option to disable static mode, to reduce ongoing memory requirements and simplify the API
  • Fix: Don't close AssetManager as it can cause issues
  • Feature: Add typeface retrieval method and caching for font assets

0.1.1

12 Mar 23:03
Compare
Choose a tag to compare
  • Feature: Add special handling for font assets
  • Fix: Validate Crate JAR hash and force mergeAssets task to run if changed
  • Fix: Better field name sanitising (shouldn't be able to choke on invalid filenames anymore)
  • Improvement: Migrate java class generation to JavaPoet

0.1

12 Mar 04:33
Compare
Choose a tag to compare
0.1
  • Initial release