Skip to content
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

[boringyuri-api]: Generate UriMatcher for @UriFactory when there is @WithUriMatcher #15

Closed
anton-novikau opened this issue Dec 10, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@anton-novikau
Copy link
Owner

anton-novikau commented Dec 10, 2020

When @UriFactory has additional annotation @WithUriMatcher there should be generated <factory_name>UriMatcher that extends android.content.UriMatcher and defines mapping between uri paths from the @UriBuilder annotated methods and matcher codes @MatchesTo(INTEGER_CODE).

New annotations to be added in boringyuri-api: @WithUriMatcher for target ElementType.TYPE and @MatchesTo(Int) for target ElementType.METHOD
New generator step to be added to UriFactoryProcessor: UriMatcherGeneratorStep

@anton-novikau anton-novikau self-assigned this Dec 10, 2020
@anton-novikau anton-novikau added the enhancement New feature or request label Dec 10, 2020
@anton-novikau anton-novikau added this to the 1.1.3 milestone Dec 10, 2020
@anton-novikau anton-novikau changed the title [boringyuri-processor]: Generate UriMatcher for @UriFactory when there is @WithUriMatcher [boringyuri-api]: Generate UriMatcher for @UriFactory when there is @WithUriMatcher Dec 10, 2020
@anton-novikau anton-novikau added the in progress The work on the issue is in progress label Dec 26, 2020
@anton-novikau anton-novikau removed the in progress The work on the issue is in progress label Jan 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant