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
Fixed the Gradle artifacts #56
Conversation
ivanisidrowu
commented
Oct 19, 2020
- Add the Gradle artifacts.
- Avoid compiler errors of the generated code for the Kotlin 1.3 users because of the trailing commas and the mixed index function parameters.
propertyToParseData.forEach { generateConstructor(it, funSpec) } | ||
var index = 0 | ||
propertyToParseData.forEach { | ||
generateConstructor(it, funSpec, index == propertyToParseData.size - 1) |
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.
用 propertyToParseData.lastIndex 取代 size - 1 如何?
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.
done !
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.
Good!