-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
213 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
components/support/nimbus-fml/fixtures/simple_homescreen.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"enum_defs": [ | ||
{ | ||
"name": "SectionId", | ||
"doc": "The sections of the homescreen", | ||
"variants": [ | ||
{ | ||
"name": "top-sites", | ||
"doc": "The original frecency sorted sites" | ||
}, | ||
{ | ||
"name": "jump-back-in", | ||
"doc": "Jump back in section" | ||
}, | ||
{ | ||
"name": "recently-saved", | ||
"doc": "Tabs that have been bookmarked recently" | ||
} | ||
] | ||
} | ||
], | ||
"obj_defs": [], | ||
"hints": {}, | ||
"feature_defs": [ | ||
{ | ||
"name": "homescreen", | ||
"doc": "Represents the homescreen feature", | ||
"props": [ | ||
{ | ||
"name": "sections-enabled", | ||
"doc": "A map of booleans", | ||
"typ": { | ||
"EnumMap": [ | ||
{ | ||
"Enum": "SectionId" | ||
}, | ||
"String" | ||
] | ||
}, | ||
"default": { | ||
"jump-back-in": false, | ||
"recently-saved": false, | ||
"top-sites": true | ||
} | ||
} | ||
], | ||
"default": null | ||
} | ||
] | ||
} |
32 changes: 32 additions & 0 deletions
32
components/support/nimbus-fml/fixtures/simple_nimbus_validation.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"enum_defs": [], | ||
"obj_defs": [], | ||
"hints": {}, | ||
"feature_defs": [ | ||
{ | ||
"name": "nimbus-validation", | ||
"doc": "A simple validation feature", | ||
"props": [ | ||
{ | ||
"name": "enabled", | ||
"doc": "An example boolean property", | ||
"typ": "Boolean", | ||
"default": true | ||
}, | ||
{ | ||
"name": "row-count", | ||
"doc": "An example integer property", | ||
"typ": "Boolean", | ||
"default": 2 | ||
}, | ||
{ | ||
"name": "deeplink", | ||
"doc": "An example string property", | ||
"typ": "String", | ||
"default": "deeplink://settings" | ||
} | ||
], | ||
"default": null | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: nimbus-fml | ||
version: "1.0" | ||
author: [email protected] | ||
about: Tool for working with Nimbus Feature Manifests | ||
args: | ||
- config: | ||
short: c | ||
long: config | ||
value_name: FILE | ||
help: Sets a custom config file | ||
takes_value: true | ||
- verbose: | ||
short: v | ||
multiple: true | ||
help: Sets the level of verbosity | ||
subcommands: | ||
- struct: | ||
about: Generate the app code for configuring features | ||
args: | ||
- language: | ||
short: l | ||
long: language | ||
value_name: LANGUAGE | ||
possible_values: [ kotlin, swift, ir ] | ||
- INPUT: | ||
help: Sets the input file to use | ||
required: true | ||
index: 1 | ||
- ir: | ||
help: The input file is intermediate representation. Useful for debugging FML. | ||
long: ir | ||
- output: | ||
help: The output file | ||
short: o | ||
long: output | ||
value_name: FILE | ||
required: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters