Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Kotlin's explicit API mode; add visibility paramater to protoc-gen-pbandk #191

Merged
merged 3 commits into from
Dec 3, 2021

Conversation

garyp
Copy link
Collaborator

@garyp garyp commented Dec 2, 2021

Added the ability to compile pbandk-generated code with Kotlin's "explicit API" mode turned on. This requires all types/functions/etc. to have their visibility (public/internal/private) explicitly specified and, if they're public, have their type explicitly specified. In addition, turned on "explicit API" mode for pbandk itself.

Also added a visibility option for protoc-gen-pbandk to allow changing the visibility of pbandk-generated code from the default public visibility to internal.

@garyp garyp force-pushed the garyp/explicit-api branch from 850d8f6 to 7c713bf Compare December 2, 2021 05:36
@garyp garyp force-pushed the garyp/kotlin-1.5 branch 2 times, most recently from 1ddf53c to 736f854 Compare December 2, 2021 07:08
garyp added 3 commits December 1, 2021 23:15
…r to protoc-gen-pbandk

Added the ability to compile pbandk-generated code with Kotlin's
"explicit API" mode turned on. This requires all types/functions/etc. to
have their visibility (`public`/`internal`/`private`) explicitly
specified and, if they're public, have their type explicitly specified.

Also added a `visibility` option for `protoc-gen-pbandk` to allow
changing the visibility of pbandk-generated code from the default
`public` visibility to `internal`.

Fixes #190.
@garyp garyp force-pushed the garyp/explicit-api branch from 7c713bf to b23834a Compare December 2, 2021 07:20
Copy link
Contributor

@seanadkinson seanadkinson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very cool 👍

Base automatically changed from garyp/kotlin-1.5 to master December 2, 2021 18:12
@garyp garyp merged commit b79f6ac into master Dec 3, 2021
@garyp garyp deleted the garyp/explicit-api branch December 3, 2021 01:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants