8000 Generate api helper classes at compile time by mathieuboniface · Pull Request #410 · androidannotations/androidannotations · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

Conversation

@mathieuboniface
Copy link
Contributor

See #129

Copy link
Contributor

Choose a reason for hiding this comment

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

How is that related to your changes? Moving Scope means breaking package retro compatibility.. of course we already broke it by changing to org.androidannotations, but I'd like a clear explanation on this change.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've made this change to enhance consistency.

We have already an enum named Scope to deal with @SharedPreference declared as an inner class of this annotation. This Scope class related to @ebean was declared into the api package (org.androidannotations.api.Scope) like the helper classes and the @ebean annotation in the annotation package (org.androidannotations.annotations).

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok. Then we should update the release notes of 3.0 to write this as one of the non backward compatible changes.

@pyricau
Copy link
Contributor
pyricau commented Nov 25, 2012

Very nice on the overall, that's an in depth change that's well handled.

A few more notes:

  • Please write some tests to assert that when you include an annotation, the corresponding API class is generated, and if you don't, it isn't. This should be quite easy, see the other tests in androidannotations/src/test/java.
  • Since AndroidAnnotations currently only runs on the first round, the API generator will work. However, when we move to multiple rounds generation, we may have to delay the API generation to the last round (which means that in the meantime the generated code may have compile error).

Copy link
Contributor

Choose a reason for hiding this comment

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

@mathieuboniface
Copy link
Contributor Author

This PR is ready to be reviewed.

pyricau added a commit that referenced this pull request Nov 29, 2012
Generate api helper classes at compile time. Fixes #129
@pyricau pyricau merged commit ce9fb5e into develop Nov 29, 2012
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.

3 participants

0