Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

Improve template android #25

Merged
merged 22 commits into from
Sep 12, 2017
Merged

Improve template android #25

merged 22 commits into from
Sep 12, 2017

Conversation

bmarty
Copy link
Contributor

@bmarty bmarty commented Jun 26, 2017

This is the template I currently use on my application. It fixes some mistake on Java formatting code.
It also remove the @Ignore-d fields due to Enum feature.
For Enum an option to hide the getter and setter of the base method has been added, but is still not working (-p hide_members_with_enum:true), so the branch is not ready yet to be merged.

Please note that the fixture has not been updated (I can do it if the PR is validated, before the merge)

This PR has been created to discuss about it.

@StevenWatremez StevenWatremez self-requested a review September 11, 2017 13:46
bin/gyro Outdated
@@ -16,6 +16,8 @@

abort 'error: gyro requires Ruby 2 or higher.' if RUBY_VERSION < '2.0.0'

$LOAD_PATH.unshift File.expand_path('../lib', File.dirname(__FILE__)) if $PROGRAM_NAME == __FILE__
Copy link
Contributor

Choose a reason for hiding this comment

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

This line is no longer be useful. If you want to test gyro locally, please use the following lines :

gem build gyro.gemspec
gem install gyro-1.0.0.gem

Copy link
Contributor

@StevenWatremez StevenWatremez Sep 12, 2017

Choose a reason for hiding this comment

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

or you can use an other command when you develop gyro. Go to gyro repo and launch :

ruby -Ilib bin/gyro -m <model> -t android -o <output>

Copy link
Contributor

@StevenWatremez StevenWatremez left a comment

Choose a reason for hiding this comment

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

You need to remove the line $LOAD_PATH inside bin/gyro file.

@StevenWatremez StevenWatremez merged commit 4548d33 into liquid Sep 12, 2017
@StevenWatremez StevenWatremez deleted the improve_template_android branch September 12, 2017 16:27
StevenWatremez pushed a commit that referenced this pull request Sep 13, 2017
* Allow direct local execution

* Improve templates

* Avoid useless enum member

* Hide setter and getter for fields with enum values

* Better template for enums

* Fix issue

* Fix issue with hide_members_with_enum not working

* Class with private constructor have to be final

* Improve template

* Fix Java fixtures

* fix issue with annotations

* Fix regression with annotations

* Fix all java fixture

* Fix issue with extra empty lines

* Fix issue on comment. Note: comment on relationship does not work

* Fix rubocop offenses

* Fix rubocop offense

* Fix sonar issue about order of elements

* Fix sonar issue about order of elements - update unitary tests

* fix injected params check

* fix primitive anotations

* remove $LOAD_PATH
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants