Last active
February 19, 2019 14:15
-
-
Save malvinstn/c318abe09d2727162477733b2ad8f677 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@AutoService(Processor::class) | |
class AnalyticsEventProcessor : KotlinAbstractProcessor(), KotlinMetadataUtils { | |
companion object { | |
private val ANNOTATION = AnalyticsEvent::class.java | |
} | |
override fun getSupportedAnnotationTypes() = setOf(ANNOTATION.canonicalName) | |
override fun getSupportedSourceVersion(): SourceVersion = SourceVersion.latestSupported() | |
override fun process( | |
annotations: Set<TypeElement>, | |
roundEnv: RoundEnvironment | |
): Boolean { | |
// Process annotated elements here. | |
return true | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment