summaryrefslogtreecommitdiff
path: root/platform/android/scripts/generate-style-code.js
diff options
context:
space:
mode:
authorŁukasz Paczos <lukas.paczos@gmail.com>2018-11-07 17:17:26 +0100
committerŁukasz Paczos <lukasz.paczos@mapbox.com>2018-11-20 12:22:16 +0100
commit9ac444a08d9701dc7b0da41859842a77d7be8e00 (patch)
tree08ab99d6caa7a24a9106382eedcc5812bf2c1811 /platform/android/scripts/generate-style-code.js
parent1d73bda00d1e4c18ef32eac5053afa4cc9bc4b0a (diff)
downloadqtlocation-mapboxgl-9ac444a08d9701dc7b0da41859842a77d7be8e00.tar.gz
[android] removing plain text getter for "text-field"
Diffstat (limited to 'platform/android/scripts/generate-style-code.js')
-rwxr-xr-xplatform/android/scripts/generate-style-code.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/platform/android/scripts/generate-style-code.js b/platform/android/scripts/generate-style-code.js
index 4a35b2d6a6..da29c0363c 100755
--- a/platform/android/scripts/generate-style-code.js
+++ b/platform/android/scripts/generate-style-code.js
@@ -56,6 +56,7 @@ global.propertyType = function propertyType(property) {
case 'number':
return 'Float';
case 'formatted':
+ return 'Formatted';
case 'string':
return 'String';
case 'enum':
@@ -76,6 +77,7 @@ global.propertyJavaType = function propertyType(property) {
case 'number':
return 'float';
case 'formatted':
+ return 'Formatted';
case 'string':
return 'String';
case 'enum':
@@ -159,6 +161,7 @@ global.defaultExpressionJava = function(property) {
case 'number':
return 'number';
case 'formatted':
+ return 'format';
case 'string':
return "string";
case 'enum':
@@ -184,6 +187,7 @@ global.defaultValueJava = function(property) {
case 'number':
return '0.3f';
case 'formatted':
+ return 'new Formatted(new FormattedSection[]{new FormattedSection("default")})'
case 'string':
return '"' + property['default'] + '"';
case 'enum':
@@ -192,7 +196,6 @@ global.defaultValueJava = function(property) {
return '"rgba(0, 0, 0, 1)"';
case 'array':
switch (property.value) {
- case 'formatted':
case 'string':
return '[' + property['default'] + "]";
case 'number':