OSDN Git Service

Merge 677a2489 from master. do not merge.
authorXavier Ducrohet <xav@android.com>
Thu, 19 May 2011 00:11:35 +0000 (17:11 -0700)
committerXavier Ducrohet <xav@android.com>
Thu, 19 May 2011 18:44:34 +0000 (11:44 -0700)
Add revision number to the layoutlib.

Change-Id: Icfceb6b6328ed445ecc1bdefe7fc14192ba39328

layoutlib_api/src/com/android/ide/common/rendering/api/Bridge.java

index e21d039..d5a1829 100644 (file)
@@ -44,6 +44,14 @@ public abstract class Bridge {
     public abstract int getApiLevel();
 
     /**
+     * Returns the revision of the library inside a given (layoutlib) API level.
+     * The true revision number of the library is {@link #getApiLevel()}.{@link #getRevision()}
+     */
+    public int getRevision() {
+        return 0;
+    }
+
+    /**
      * Returns an {@link EnumSet} of the supported {@link Capability}.
      * @return an {@link EnumSet} with the supported capabilities.
      *