mirror of
https://github.com/pebble-dev/clay.git
synced 2026-08-28 04:46:57 -04:00
Add touch capability
This commit is contained in:
committed by
Jay Michalska
parent
2583effe5e
commit
f66cba1816
@@ -673,6 +673,7 @@ Below is the full list of capabilities
|
||||
| SMARTSTRAP | Running on hardware that includes a smartstrap connector. |
|
||||
| SMARTSTRAP_POWER | Running on hardware that includes a powered smartstrap connector. |
|
||||
| SPEAKER | Running on hardware that includes a speaker. |
|
||||
| TOUCH | Running on hardware that includes a touch screen. |
|
||||
| HEALTH | Running on hardware that supports Pebble Health and the HealthService API. |
|
||||
| RECT | Running on hardware with a rectangular display. |
|
||||
| ROUND | Running on hardware with a round display. |
|
||||
|
||||
@@ -89,6 +89,11 @@ module.exports.capabilityMap = {
|
||||
minFwMajor: 4,
|
||||
minFwMinor: 9
|
||||
},
|
||||
TOUCH: {
|
||||
platforms: ['emery', 'gabbro'],
|
||||
minFwMajor: 4,
|
||||
minFwMinor: 9
|
||||
},
|
||||
HEALTH: {
|
||||
platforms: ['basalt', 'chalk', 'diorite', 'emery', 'flint', 'gabbro'],
|
||||
minFwMajor: 3,
|
||||
|
||||
@@ -83,6 +83,7 @@ describe('ClayConfig', function() {
|
||||
testCapabilities('aplite', 2, 9, ['SMARTSTRAP'], 0);
|
||||
testCapabilities('aplite', 2, 9, ['SMARTSTRAP_POWER'], 0);
|
||||
testCapabilities('aplite', 2, 9, ['SPEAKER'], 0);
|
||||
testCapabilities('aplite', 2, 9, ['TOUCH'], 0);
|
||||
testCapabilities('aplite', 2, 9, ['HEALTH'], 0);
|
||||
testCapabilities('aplite', 2, 9, ['RECT'], 1);
|
||||
testCapabilities('aplite', 2, 9, ['ROUND'], 0);
|
||||
@@ -107,6 +108,7 @@ describe('ClayConfig', function() {
|
||||
testCapabilities('aplite', 3, 3, ['SMARTSTRAP'], 0);
|
||||
testCapabilities('aplite', 3, 10, ['SMARTSTRAP_POWER'], 0);
|
||||
testCapabilities('aplite', 3, 10, ['SPEAKER'], 0);
|
||||
testCapabilities('aplite', 3, 10, ['TOUCH'], 0);
|
||||
testCapabilities('aplite', 3, 10, ['HEALTH'], 0);
|
||||
testCapabilities('aplite', 3, 9, ['HEALTH'], 0);
|
||||
testCapabilities('aplite', 3, 10, ['RECT'], 1);
|
||||
@@ -134,6 +136,7 @@ describe('ClayConfig', function() {
|
||||
testCapabilities('basalt', 3, 4, ['SMARTSTRAP_POWER'], 1);
|
||||
testCapabilities('basalt', 3, 3, ['SMARTSTRAP_POWER'], 0);
|
||||
testCapabilities('basalt', 3, 3, ['SPEAKER'], 0);
|
||||
testCapabilities('basalt', 3, 3, ['TOUCH'], 0);
|
||||
testCapabilities('basalt', 3, 10, ['HEALTH'], 1);
|
||||
testCapabilities('basalt', 3, 9, ['HEALTH'], 0);
|
||||
testCapabilities('basalt', 3, 10, ['RECT'], 1);
|
||||
@@ -161,6 +164,7 @@ describe('ClayConfig', function() {
|
||||
testCapabilities('chalk', 3, 4, ['SMARTSTRAP_POWER'], 1);
|
||||
testCapabilities('chalk', 3, 3, ['SMARTSTRAP_POWER'], 0);
|
||||
testCapabilities('chalk', 3, 3, ['SPEAKER'], 0);
|
||||
testCapabilities('chalk', 3, 3, ['TOUCH'], 0);
|
||||
testCapabilities('chalk', 3, 10, ['HEALTH'], 1);
|
||||
testCapabilities('chalk', 3, 9, ['HEALTH'], 0);
|
||||
testCapabilities('chalk', 3, 10, ['RECT'], 0);
|
||||
@@ -188,6 +192,7 @@ describe('ClayConfig', function() {
|
||||
testCapabilities('diorite', 3, 4, ['SMARTSTRAP_POWER'], 0);
|
||||
testCapabilities('diorite', 3, 3, ['SMARTSTRAP_POWER'], 0);
|
||||
testCapabilities('diorite', 3, 3, ['SPEAKER'], 0);
|
||||
testCapabilities('diorite', 3, 3, ['TOUCH'], 0);
|
||||
testCapabilities('diorite', 3, 10, ['HEALTH'], 1);
|
||||
testCapabilities('diorite', 3, 9, ['HEALTH'], 0);
|
||||
testCapabilities('diorite', 3, 10, ['RECT'], 1);
|
||||
@@ -215,6 +220,7 @@ describe('ClayConfig', function() {
|
||||
testCapabilities('emery', 3, 4, ['SMARTSTRAP_POWER'], 1);
|
||||
testCapabilities('emery', 3, 3, ['SMARTSTRAP_POWER'], 0);
|
||||
testCapabilities('emery', 4, 10, ['SPEAKER'], 1);
|
||||
testCapabilities('emery', 4, 10, ['TOUCH'], 1);
|
||||
testCapabilities('emery', 3, 10, ['HEALTH'], 1);
|
||||
testCapabilities('emery', 3, 9, ['HEALTH'], 0);
|
||||
testCapabilities('emery', 3, 10, ['RECT'], 1);
|
||||
@@ -242,6 +248,7 @@ describe('ClayConfig', function() {
|
||||
testCapabilities('flint', 3, 4, ['SMARTSTRAP_POWER'], 0);
|
||||
testCapabilities('flint', 3, 3, ['SMARTSTRAP_POWER'], 0);
|
||||
testCapabilities('flint', 4, 10, ['SPEAKER'], 1);
|
||||
testCapabilities('flint', 4, 10, ['TOUCH'], 0);
|
||||
testCapabilities('flint', 3, 10, ['HEALTH'], 1);
|
||||
testCapabilities('flint', 3, 9, ['HEALTH'], 0);
|
||||
testCapabilities('flint', 3, 10, ['RECT'], 1);
|
||||
@@ -265,6 +272,7 @@ describe('ClayConfig', function() {
|
||||
testCapabilities('gabbro', 3, 10, ['SMARTSTRAP'], 0);
|
||||
testCapabilities('gabbro', 3, 10, ['SMARTSTRAP_POWER'], 0);
|
||||
testCapabilities('gabbro', 3, 10, ['SPEAKER'], 0);
|
||||
testCapabilities('gabbro', 4, 10, ['TOUCH'], 1);
|
||||
testCapabilities('gabbro', 3, 10, ['HEALTH'], 1);
|
||||
testCapabilities('gabbro', 3, 10, ['RECT'], 0);
|
||||
testCapabilities('gabbro', 3, 10, ['ROUND'], 1);
|
||||
|
||||
Reference in New Issue
Block a user