-
Notifications
You must be signed in to change notification settings - Fork 57
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
Import statements update (w/tests) #245
Conversation
…renced Fragment includes an import directive
…les in definitions + do not assing to the definitions directives anymore
…les in definitions + do not assing to the definitions directives anymore
…les in definitions + do not assing to the definitions directives anymore
…les in definitions + do not assing to the definitions directives anymore
…les in definitions + do not assing to the definitions directives anymore
…les in definitions + do not assing to the definitions directives anymore
✅ Deploy Preview for eclectic-pie-88a2ba canceled.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Had a couple minor comments.
) -> TemplateString? { | ||
guard let moduleImports else { return nil } | ||
moduleImports: OrderedSet<String> | ||
) -> TemplateString { | ||
return """ | ||
\(moduleImports.map { "import \($0)" }.joined(separator: "\n")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we have a comment above these to identify these as custom configured imports?
// given | ||
let config = buildConfig( | ||
moduleType: | ||
.embeddedInTarget( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks as though the custom imports should be rendered regardless of the moduleType
configuration - it might be worth having additional tests for the other module types to ensure that remains true.
0ca66206 Import statements update (w/tests) (#245) git-subtree-dir: apollo-ios-codegen git-subtree-split: 0ca66206e6e9720f59141bf1fce422277507013b
git-subtree-dir: apollo-ios-codegen git-subtree-mainline: 5da6e8d git-subtree-split: 0ca66206e6e9720f59141bf1fce422277507013b
@AnthonyMDev Do you have an eta for the next release by any chance with this change included? |
Hi @hemel - I think we can probably put together a release tomorrow; |
This is an update to #236 that includes unit tests. The next step will be adding documentation to this before we release it.
Thanks @hemel for your helping getting this completed!