Package dagger.android.processor
Class AndroidProcessor
- java.lang.Object
-
- javax.annotation.processing.AbstractProcessor
-
- com.google.auto.common.BasicAnnotationProcessor
-
- dagger.android.processor.AndroidProcessor
-
- All Implemented Interfaces:
javax.annotation.processing.Processor
@IncrementalAnnotationProcessor(ISOLATING) @AutoService(javax.annotation.processing.Processor.class) public final class AndroidProcessor extends com.google.auto.common.BasicAnnotationProcessorAn annotation processor to verify usage ofdagger.androidcode.Additionally, if
-Adagger.android.experimentalUseStringKeysis 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 inMETA-INF/proguardonly 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 Summary
Constructors Constructor Description AndroidProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.lang.String>getSupportedOptions()javax.lang.model.SourceVersiongetSupportedSourceVersion()protected java.lang.Iterable<? extends com.google.auto.common.BasicAnnotationProcessor.Step>steps()-
Methods inherited from class com.google.auto.common.BasicAnnotationProcessor
asStep, getSupportedAnnotationTypes, init, initSteps, postProcess, postRound, process
-
-
-
-
Method Detail
-
steps
protected java.lang.Iterable<? extends com.google.auto.common.BasicAnnotationProcessor.Step> steps()
- Overrides:
stepsin classcom.google.auto.common.BasicAnnotationProcessor
-
getSupportedOptions
public java.util.Set<java.lang.String> getSupportedOptions()
- Specified by:
getSupportedOptionsin interfacejavax.annotation.processing.Processor- Overrides:
getSupportedOptionsin classjavax.annotation.processing.AbstractProcessor
-
getSupportedSourceVersion
public javax.lang.model.SourceVersion getSupportedSourceVersion()
- Specified by:
getSupportedSourceVersionin interfacejavax.annotation.processing.Processor- Overrides:
getSupportedSourceVersionin classjavax.annotation.processing.AbstractProcessor
-
-