Release Vulpes OS 2.7 Preview 25 for Desktop, Android and Pixel 3a
This commit is contained in:
parent
6a44daeaaa
commit
3a1fba4efe
1 changed files with 1301 additions and 196 deletions
|
|
@ -302,8 +302,10 @@ export const Runtime = {
|
|||
return {error:{code:'METHOD_NOT_SUPPORTED'}};
|
||||
}
|
||||
if(method==='hardware.vibrate') {
|
||||
if(app.id!=='system' || (Services.env.get('VULPES_TUNDRA')!=='1' && !beatlesHardware())) return {error:{code:'NOT_SUPPORTED'}};
|
||||
if(!['system','keyboard'].includes(app.id) || (Services.env.get('VULPES_TUNDRA')!=='1' && !beatlesHardware())) return {error:{code:'NOT_SUPPORTED'}};
|
||||
const pattern=params?.pattern;
|
||||
if(app.id==='keyboard' && (!Array.isArray(pattern) || pattern.length!==1 || pattern[0]>100))
|
||||
return {error:{code:'INVALID_VALUE'}};
|
||||
if(!Array.isArray(pattern) || pattern.length>32 || pattern.some(n=>!Number.isInteger(n) || n<0 || n>10000) || pattern.reduce((a,b)=>a+b,0)>10000)
|
||||
return {error:{code:'INVALID_VALUE'}};
|
||||
try {
|
||||
|
|
@ -442,6 +444,7 @@ export const Runtime = {
|
|||
}
|
||||
if (method === 'layout.current') return { result: {
|
||||
mode: this.values['vulpes.layout'] || 'auto',
|
||||
homeButtonOverlay: Services.env.get('VULPES_KEYPAD') !== '1',
|
||||
compactDefault: Services.env.get('VULPES_KEYPAD') === '1',
|
||||
coverScreen: Services.env.get('VULPES_DEVICE') === 'beatles',
|
||||
reducedMotion: Services.env.get('VULPES_DEVICE') === 'beatles',
|
||||
|
|
|
|||
Loading…
Reference in a new issue