Annotations processor and interface that allows you to tell your software to stop compiling after certain criteria.
Failsafe is compromised of two parts: the interfaces that you add to your code and a gradle annotation processor that enforces rules.
To start, you'll need to build and reference both. The sample-application references these as direct module dependencies, for example:
dependencies {
compile project(':failsafe-annotations')
annotationProcessor project(':failsafe-processor')
}Once done, you can then refer to annotations within your application. For example, if you wanted a warning after 2003 to appear with a method, you might add:
@FailAfter(date = "2003-02-01", message = "Time to remove this stuff!.", level = FailureLevel.WARNING)
public void stuff() {
Log.d("TAG", "Stuff happening here, boss!");
}