Sqldelight: ExplicitApi support for generated classes

Created on 26 Aug 2020  路  3Comments  路  Source: cashapp/sqldelight

Hello,

I'm trying out the new explicitApi mode in Kotlin 1.4 for my library with Sqldelight 1.5.0-SNAPSHOT.
https://kotlinlang.org/docs/reference/whatsnew14.html#explicit-api-mode-for-library-authors

None of the generated classes define visibility explicitly so compiling with strict mode doesn't work.
image

bug compiler

Most helpful comment

The request to control visibility support is tracked by #1333. I will repurpose this issue for a KotlinPoet upgrade which supports emitting explicit visibility.

All 3 comments

The request to control visibility support is tracked by #1333. I will repurpose this issue for a KotlinPoet upgrade which supports emitting explicit visibility.

@JakeWharton Is there any target version for this? 馃檱馃徎

Nope. KotlinPoet has been updated, though, so feel free to send a PR with the upgrade so it'll be included in the next one!

Was this page helpful?
0 / 5 - 0 ratings