add xmlprofile v1
This commit is contained in:
parent
3e9312dc30
commit
99cf8cbe5f
2 changed files with 70 additions and 0 deletions
30
xmlprofile/idea.txt
Normal file
30
xmlprofile/idea.txt
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
# Note
|
||||
|
||||
XMLProfile v1
|
||||
|
||||
```
|
||||
adb shell
|
||||
|
||||
mkdir /sdcard/coffeevending/xmlprofile
|
||||
|
||||
adb push ./xmlprofile/sample_design1.json /sdcard/coffeevending/xmlprofile/main.json
|
||||
```
|
||||
|
||||
- JSON structure
|
||||
|
||||
** modifiers ** not used yet!
|
||||
|
||||
```
|
||||
{
|
||||
"ProfileName":{
|
||||
"enable": "true | false",
|
||||
"except": [
|
||||
"BoxID that this profile cannot apply to"
|
||||
],
|
||||
"modifiers": [
|
||||
"apply_to=( all_menus | restricted_menus | ... )", // Work In Progress, this will apply the profile to the following options only.
|
||||
"# This is comment"
|
||||
]
|
||||
}
|
||||
}
|
||||
```
|
||||
40
xmlprofile/sample_design1.json
Normal file
40
xmlprofile/sample_design1.json
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{
|
||||
"SugarBreak":{
|
||||
"enable": true,
|
||||
"except": [
|
||||
|
||||
],
|
||||
"modifiers": [
|
||||
"apply_to=all_menus"
|
||||
]
|
||||
},
|
||||
"Discount50":{
|
||||
"enable": true,
|
||||
"except": [
|
||||
200000,
|
||||
200001
|
||||
],
|
||||
"modifiers": [
|
||||
"apply_to=all_menus"
|
||||
]
|
||||
},
|
||||
"y18IDCard":{
|
||||
"enable": false,
|
||||
"except": [
|
||||
|
||||
],
|
||||
"modifiers": [
|
||||
"apply_to=restricted_menus"
|
||||
]
|
||||
},
|
||||
"y18IDCardLive":{
|
||||
"enable": false,
|
||||
"except": [
|
||||
|
||||
],
|
||||
"modifiers": [
|
||||
"apply_to=restricted_menus",
|
||||
"enable_feature=liveness # This is comment"
|
||||
]
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue