Skip to content

v0.2.0

Choose a tag to compare

@rmenezes rmenezes released this 03 Apr 12:10
· 41 commits to main since this release

What's Changed

On-demand codegen workflow

Bridge generation is now an explicit, on-demand step rather than running at build time. Generated Kotlin files are committed to source control and compiled as normal sources — no codegen runs during assembleDebug.

./gradlew generateSwiftAndroidBridges

This follows the same pattern as jOOQ and similar tools: you regenerate when your Swift API changes, review the diff, and commit.

Stored instance pattern

Each bridge now creates its SwiftArena.ofAuto() and Swift instance once at construction time as stored properties, reusing them across all method calls. This avoids per-call allocation overhead while keeping memory safe — the auto arena ties Swift object lifetimes to Java GC reachability.

Documentation

  • Updated setup guide to reflect the on-demand workflow
  • Documented SwiftArena.ofAuto() lifecycle semantics
  • Added explicit ./gradlew generateSwiftAndroidBridges step to setup instructions
  • Updated runtime dependency version reference

Housekeeping

  • Added .build/ and root Package.resolved to .gitignore

Full Changelog: v0.1.0...v0.2.0