@IncrementalAnnotationProcessor(value=ISOLATING)
@AutoService(value=javax.annotation.processing.Processor.class)
public final class AndroidProcessor
extends com.google.auto.common.BasicAnnotationProcessor
dagger.android code.
Additionally, if -Adagger.android.experimentalUseStringKeys is passed to the
compilation, a file will be generated to support obfuscated injected Android types used with
@AndroidInjectionKey. The fact that this is generated is deliberate: not all versions of
ProGuard/R8 support -identifiernamestring, so we can't include a ProGuard file in the
dagger-android artifact Instead, we generate the file in META-INF/proguard only when
users enable the flag. They should only be enabling it if their shrinker supports those files,
and any version that does so will also support -identifiernamestring. This was added to
R8 in May
2018.
| Constructor and Description |
|---|
AndroidProcessor() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<java.lang.String> |
getSupportedOptions() |
javax.lang.model.SourceVersion |
getSupportedSourceVersion() |
protected java.lang.Iterable<? extends com.google.auto.common.BasicAnnotationProcessor.Step> |
steps() |
asStep, getSupportedAnnotationTypes, init, initSteps, postProcess, postRound, processprotected java.lang.Iterable<? extends com.google.auto.common.BasicAnnotationProcessor.Step> steps()
steps in class com.google.auto.common.BasicAnnotationProcessorpublic java.util.Set<java.lang.String> getSupportedOptions()
getSupportedOptions in interface javax.annotation.processing.ProcessorgetSupportedOptions in class javax.annotation.processing.AbstractProcessorpublic javax.lang.model.SourceVersion getSupportedSourceVersion()
getSupportedSourceVersion in interface javax.annotation.processing.ProcessorgetSupportedSourceVersion in class javax.annotation.processing.AbstractProcessor