-
Notifications
You must be signed in to change notification settings - Fork 6
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
Refactoring to ease the way we define generated code #22
base: develop
Are you sure you want to change the base?
Conversation
getCommonDescriptionString and getHeaderDescriptionString
Given a simple scheme, diff between generated files and expected files
Use second template for source.m
ADD to_dictionnary got JSONScheme
Assuring code functionality while refactoring
…mobile/metaJSON into feature/refactor Conflicts: templates/machine.m.mustache
…etaJSON into feature/refactor
…upper_camelcase}}
@SanggeonPark i think this pull request need some review from you or anybody else. |
@sinnerschrader-mobile/owners what should we do guys with this PR, merge? |
All tests have failed since 2015-01-01 because the timestamp at the copyright notice of the generated files differs from the timestamp of reference file's copyright notice which is of 2014. This is fixed by replacing all occurences of the current year in the generated files with "2014". Keep in mind that even new reference files need a timestamp of 2014 for the tests to work.
Fixing tests broken due to copyright timestamp
* Removed "target" option from command line. * Deleted JavaCodeGenerator because it is not needed anymore.
Android code generation using Mustache templates
Todo before merging:
@ben-efiz something else missing before merging to master? |
That should be enough. The rest we track issues/enhancments. @S2MBO you had some on your wishlist. |
Maybe we should give a thought about the differences between https://github.com/sinnerschrader-mobile/metaJSON/blob/907a400817bd526d71e3c0c5078f400764542e91/doc/MetaJSONProtocol.md and https://github.com/sinnerschrader-mobile/metaJSON/wiki/Protocol. For example, merging this right now would remove the ISO 8601 formatted date feature for ObjectiveC (was never implemented in Java). |
Yes you're right, I was not really keen on adding this ISO8601 support at least not that way. I mean then we will need the subType If I remember it was for one project only, in that case with the new version, you would create your own template and replace the code for normal dates with one for iso8601. Worst case I would add it as enhancement. |
FYI I added the repo to a code static analyser, here's the report for the branch: https://landscape.io/github/sinnerschrader-mobile/metaJSON/2 |
Improved test portability to fix #28
Let's make it easier to define generated code via template. The approach is to use mustache template.