aboutsummaryrefslogtreecommitdiffstats
path: root/common/src/com/android
diff options
context:
space:
mode:
authorTor Norbye <tnorbye@google.com>2012-11-30 13:48:47 -0800
committerTor Norbye <tnorbye@google.com>2012-11-30 17:47:09 -0800
commitdefb28521b99e2b42d6e60e2eda1259803514196 (patch)
tree1dea7b7c6f8f7539c60c99a556c124435a3f36dd /common/src/com/android
parent6c7924f6fea737bf5c87c1a6b845d690b8c46099 (diff)
downloadsdk-defb28521b99e2b42d6e60e2eda1259803514196.zip
sdk-defb28521b99e2b42d6e60e2eda1259803514196.tar.gz
sdk-defb28521b99e2b42d6e60e2eda1259803514196.tar.bz2
Add tools:targetApi to control local minSdk (like @TargetApi)
Also add XML editor quickfix to set the attribute on an API violation. Change-Id: Ife95d73659656e98a6fb1a322354f5fcfcef1888
Diffstat (limited to 'common/src/com/android')
-rw-r--r--common/src/com/android/SdkConstants.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/src/com/android/SdkConstants.java b/common/src/com/android/SdkConstants.java
index 0708647..48cecc1 100644
--- a/common/src/com/android/SdkConstants.java
+++ b/common/src/com/android/SdkConstants.java
@@ -979,6 +979,7 @@ public final class SdkConstants {
public static final String SUPPRESS_ALL = "all"; //$NON-NLS-1$
public static final String SUPPRESS_LINT = "SuppressLint"; //$NON-NLS-1$
public static final String TARGET_API = "TargetApi"; //$NON-NLS-1$
+ public static final String ATTR_TARGET_API = "targetApi"; //$NON-NLS-1$
public static final String FQCN_SUPPRESS_LINT = "android.annotation." + SUPPRESS_LINT; //$NON-NLS-1$
public static final String FQCN_TARGET_API = "android.annotation." + TARGET_API; //$NON-NLS-1$