add xmlprofile v1

This commit is contained in:
Pakin 2023-11-02 08:56:52 +07:00
parent 3e9312dc30
commit 99cf8cbe5f
2 changed files with 70 additions and 0 deletions

30
xmlprofile/idea.txt Normal file
View 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"
]
}
}
```

View 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"
]
}
}