as31: Fix test data for android lint based tests for AS 3.0

This commit is contained in:
Vyacheslav Gerasimov
2017-10-23 18:03:24 +03:00
committed by Nikolay Krasko
parent e12e63572c
commit 4c498b004f
83 changed files with 650 additions and 38 deletions
@@ -0,0 +1,15 @@
// INTENTION_TEXT: Surround with if (VERSION.SDK_INT >= VERSION_CODES.LOLLIPOP) { ... }
// INSPECTION_CLASS: com.android.tools.idea.lint.AndroidLintNewApiInspection
import android.graphics.drawable.VectorDrawable
import android.os.Build
class VectorDrawableProvider {
fun getVectorDrawable(): VectorDrawable {
return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
VectorDrawable()
} else {
TODO("VERSION.SDK_INT < LOLLIPOP")
}
}
}