Files
mantra-kmp/composeApp
Kgothatso Ngako 73b2c8ae9a feat(ios): give Room a way to construct the database without reflection
`MantraDatabaseConstructor` has been in commonMain all along -- `expect`,
`@Suppress`ed for having no actual, and referenced by nothing. Room's KSP
only generates the actual when `@ConstructedBy` names the object, so on a
target with no reflection there was no way into the database at all.

This is the one annotation in the ios work that changes every other
target too: the generator now emits an `actual object` for android and
jvm as well, each returning `MantraDatabase_Impl()`, where before it
emitted none. jvmTest is unmoved at 1174, and MantraDatabaseJvmTest's
comment about the no-Context builder overload being available "because
MantraDatabaseConstructor gives Room a way to instantiate without
reflection" is now true rather than aspirational.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-10-02 23:48:43 +02:00
..