Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
appinventor-sources
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
appinventor-sources
Commits
667a9606
Commit
667a9606
authored
Dec 24, 2018
by
Evan W. Patton
Committed by
Susan Rati Lane
Dec 27, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement upgrader for Map version 5
Change-Id: I65db61ca7fa1f9652e84c814208f333f331f5831
parent
8a2d793f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
appinventor/appengine/src/com/google/appinventor/client/youngandroid/YoungAndroidFormUpgrader.java
...nventor/client/youngandroid/YoungAndroidFormUpgrader.java
+4
-2
appinventor/blocklyeditor/src/versioning.js
appinventor/blocklyeditor/src/versioning.js
+5
-1
No files found.
appinventor/appengine/src/com/google/appinventor/client/youngandroid/YoungAndroidFormUpgrader.java
View file @
667a9606
...
...
@@ -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
;
}
...
...
appinventor/blocklyeditor/src/versioning.js
View file @
667a9606
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment