summaryrefslogtreecommitdiff
path: root/platform/android/scripts
diff options
context:
space:
mode:
authorChris Loer <chris.loer@gmail.com>2018-08-21 16:19:43 -0700
committerChris Loer <chris.loer@mapbox.com>2018-08-21 22:02:51 -0700
commitfd1767efba85dcfa5a3db27136306eca53519b8a (patch)
tree01be0a98566dfd07cf54fe0bcc53ebfa9675437c /platform/android/scripts
parent33cd094d853f9c74aeaa1466e9fe6986db448139 (diff)
downloadqtlocation-mapboxgl-fd1767efba85dcfa5a3db27136306eca53519b8a.tar.gz
[core, test] Bump GL JS pin to bring gl-native back in sync with gl-js.
Requires changing `generate-style-code` to treat 'formatted' as being the same as 'string' until gl-native gets 'formatted' support with https://github.com/mapbox/mapbox-gl-native/pull/12624. To make nitpick happy, PropertyFunction.java uses the latest "text-field" description from v8.json. It's technically correct, just kind of pointless since the "If a plain `string` is provided" clause will always be true.
Diffstat (limited to 'platform/android/scripts')
-rwxr-xr-xplatform/android/scripts/generate-style-code.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/platform/android/scripts/generate-style-code.js b/platform/android/scripts/generate-style-code.js
index 98c5a446b9..0825ef1c26 100755
--- a/platform/android/scripts/generate-style-code.js
+++ b/platform/android/scripts/generate-style-code.js
@@ -55,6 +55,7 @@ global.propertyType = function propertyType(property) {
return 'Boolean';
case 'number':
return 'Float';
+ case 'formatted':
case 'string':
return 'String';
case 'enum':
@@ -74,6 +75,7 @@ global.propertyJavaType = function propertyType(property) {
return 'boolean';
case 'number':
return 'float';
+ case 'formatted':
case 'string':
return 'String';
case 'enum':
@@ -121,6 +123,7 @@ global.propertyNativeType = function (property) {
return 'bool';
case 'number':
return 'float';
+ case 'formatted':
case 'string':
return 'std::string';
case 'enum':
@@ -155,6 +158,7 @@ global.defaultExpressionJava = function(property) {
return 'boolean';
case 'number':
return 'number';
+ case 'formatted':
case 'string':
return "string";
case 'enum':
@@ -179,6 +183,7 @@ global.defaultValueJava = function(property) {
return 'true';
case 'number':
return '0.3f';
+ case 'formatted':
case 'string':
return '"' + property['default'] + '"';
case 'enum':
@@ -187,6 +192,7 @@ global.defaultValueJava = function(property) {
return '"rgba(0, 0, 0, 1)"';
case 'array':
switch (property.value) {
+ case 'formatted':
case 'string':
return '[' + property['default'] + "]";
case 'number':
@@ -301,6 +307,7 @@ global.evaluatedType = function (property) {
return 'bool';
case 'number':
return 'float';
+ case 'formatted':
case 'string':
return 'std::string';
case 'enum':