google / google/auto

AutoFactory generating the @Generated annotation on Android

Open
#630 3 comments 1 reaction 1 assignee Claimed by @netdpb View on GitHub
Component: factory P3
Dominant language
Java
Stars
10.6k
Forks
1.2k
Avg merge
6h 32m
Merged PRs (30d)
13

Description

AutoFactories are generated with an `@Generated` annotation on Android, this was an issue in Dagger https://github.com/google/dagger/issues/95.

AutoValue behaves correctly in that it doesn't emit the `@Generated` annotation in Android where the annotation doesn't exist.

I'm running AutoFactory as an `annotationProcessor`, and have copied the annotations (`Provided`, and `AutoFactory`) into my project.

```
annotationProcessor 'com.google.auto.factory:auto-factory:1.0-beta5'
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.