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

Include the proto package name as a constant #824

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

davidmartos96
Copy link

Fixes #823

This PR adds a constant with the package name at the top of the main .pb.dart file if the proto has a non empty package field.

const $core.String kPackageName = 'myPackage';

I opted to optionally include the constant based on the proto having a package defined or not. Do you think it should be included regardless as an empty String/null?

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.

Include the package name as a constant
1 participant