Commit 667a9606 authored by Evan W. Patton's avatar Evan W. Patton Committed by Susan Rati Lane

Implement upgrader for Map version 5

Change-Id: I65db61ca7fa1f9652e84c814208f333f331f5831
parent 8a2d793f
......@@ -1538,14 +1538,16 @@ public final class YoungAndroidFormUpgrader {
private static int upgradeMapProperties(Map<String, JSONValue> componentProperties,
int srcCompVersion) {
if (srcCompVersion < 4) {
if (srcCompVersion < 5) {
// Version 2
// The Markers property (blocks-only) was renamed to Features
// Version 3
// Block event handlers were renamed
// Version 4
// The Rotation property was added with default 0.0 (due north)
srcCompVersion = 4;
// Verison 5
// The ScaleUnits and ShowScale properties were added
srcCompVersion = 5;
}
return srcCompVersion;
}
......
......@@ -1862,7 +1862,11 @@ Blockly.Versioning.AllUpgradeMaps =
// AI2:
// - The Rotation property was added to Map
4: "noUpgrade"
4: "noUpgrade",
// AI2:
// - The ScaleUnits and ShowScale properties were added to Map
5: "noUpgrade"
}, // End Map upgraders
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment