文件名称:Android代码-Intervention
文件大小:216KB
文件格式:ZIP
更新时间:2022-08-26 01:05:26
Android代码
Intervention Annotation based Android lint check generation Generate custom Android lint checks and have lint warn you about code you may be dealing with using Kotlin extensions or your own coding conventions. How is this useful? We create and annotate the following simple extension functions: @Intervene(name = "ContentView", warnAgainst = "setContentView") fun Activity.layout(@LayoutRes layoutRes: Int) { this.setContentView(layoutRes) } @Intervene(name = "ToastIntervention", warnAgains
【文件预览】:
Intervention-master
----intervention()
--------.gitignore(7B)
--------build.gradle(1KB)
--------src()
----.gitignore(87B)
----gradle()
--------wrapper()
----README.md(6KB)
----build.gradle(2KB)
----appinterventions()
--------.gitignore(7B)
--------build.gradle(612B)
--------src()
----gradlew.bat(2KB)
----gradlew(5KB)
----LICENSE(11KB)
----app()
--------.gitignore(7B)
--------build.gradle(1KB)
--------proguard-rules.pro(751B)
--------src()
----gradle.properties(817B)
----interventioncompiler()
--------.gitignore(7B)
--------build.gradle(1KB)
--------src()
----report-printscreen.jpg(76KB)
----settings.gradle(78B)