aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/makedict/FormatSpec.java
diff options
context:
space:
mode:
authorKeisuke Kuroyanagi <ksk@google.com>2014-05-09 15:17:01 +0900
committerKeisuke Kuroyanagi <ksk@google.com>2014-05-09 15:17:01 +0900
commit455dc84cf2c6526329b535f30000ea45b7d4d4d7 (patch)
tree49a82a4b726c54b8a73c880bd5826b9d4834b38b /java/src/com/android/inputmethod/latin/makedict/FormatSpec.java
parent8a9d9de72a9ab02cb4726c205213d4f0b9f58e07 (diff)
downloadlatinime-455dc84cf2c6526329b535f30000ea45b7d4d4d7.tar.gz
latinime-455dc84cf2c6526329b535f30000ea45b7d4d4d7.tar.xz
latinime-455dc84cf2c6526329b535f30000ea45b7d4d4d7.zip
Add VERSION4_TEST for testing.
Bug: 13406708 Change-Id: I0b434717ea3edbb131650af634c53cfbfe113c3e
Diffstat (limited to 'java/src/com/android/inputmethod/latin/makedict/FormatSpec.java')
-rw-r--r--java/src/com/android/inputmethod/latin/makedict/FormatSpec.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/makedict/FormatSpec.java b/java/src/com/android/inputmethod/latin/makedict/FormatSpec.java
index f25503488..613ff2ba4 100644
--- a/java/src/com/android/inputmethod/latin/makedict/FormatSpec.java
+++ b/java/src/com/android/inputmethod/latin/makedict/FormatSpec.java
@@ -186,7 +186,12 @@ public final class FormatSpec {
// From version 4 on, we use version * 100 + revision as a version number. That allows
// us to change the format during development while having testing devices remove
// older files with each upgrade, while still having a readable versioning scheme.
+ // When we bump up the dictionary format version, we should update
+ // ExpandableDictionary.needsToMigrateDictionary() and
+ // ExpandableDictionary.matchesExpectedBinaryDictFormatVersionForThisType().
public static final int VERSION2 = 2;
+ // Dictionary version used for testing.
+ public static final int VERSION4_ONLY_FOR_TESTING = 399;
public static final int VERSION4 = 401;
static final int MINIMUM_SUPPORTED_VERSION = VERSION2;
static final int MAXIMUM_SUPPORTED_VERSION = VERSION4;