Skip to content

v0.10.2

Choose a tag to compare

@tsenger tsenger released this 16 Dec 22:03
· 173 commits to main since this release

Changes

This release fixes a critical issue with iOS resource loading when the library is consumed as a Maven dependency, and introduces a flexible API for custom resource configurations.

iOS Maven Dependency Fix

  • Embedded Resources: JSON configuration files are now embedded as Kotlin constants at compile-time
  • Reliable Publishing: Resources are included directly in the published .klib files, eliminating bundle dependency issues
  • Cross-Platform Consistency: Resources work identically across JVM, Android, and iOS platforms

Flexible Resource Loading API

Added public API for custom JSON configurations:

  • DataEncoder.loadCustomSealCodings(jsonString: String) - Override default seal codings with custom JSON
  • DataEncoder.loadCustomIdbMessageTypes(jsonString: String) - Override IDB message types
  • DataEncoder.loadCustomIdbDocumentTypes(jsonString: String) - Override IDB document types
  • DataEncoder.loadCustom*FromFile(fileName: String) - Convenience methods to load custom JSONs from files

Test Suite

  • Removed: Tests for unsupported seal types to reduce test failures
  • Added: ReadTextResourceIosTest to verify iOS resource loading functionality