@zeppos/zeus-cli 1.2.3 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/main.js +1 -1
- package/modules/bridge.js +1 -1
- package/modules/build.js +152 -32
- package/modules/create.js +7 -6
- package/modules/help.js +1 -1
- package/modules/run.js +14 -12
- package/package.json +2 -2
- package/private-modules/zeppos-app-utils/dist/api/index.js +1 -1
- package/private-modules/zeppos-app-utils/dist/config/device.js +391 -213
- package/private-modules/zeppos-app-utils/dist/modules/build.js +101 -29
- package/private-modules/zeppos-app-utils/dist/modules/config.js +1 -1
- package/private-modules/zeppos-app-utils/dist/modules/create/index.js +13 -11
- package/private-modules/zeppos-app-utils/dist/modules/create/local-app.js +10 -10
- package/private-modules/zeppos-app-utils/dist/modules/create/yeoman-app.js +1 -1
- package/private-modules/zeppos-app-utils/dist/modules/login.js +1 -1
- package/private-modules/zeppos-app-utils/dist/modules/status.js +1 -1
- package/private-modules/zeppos-app-utils/dist/public/template/v2/empty/page/index.js +2 -2
- package/private-modules/zeppos-app-utils/dist/tools/index.js +1 -1
- package/private-modules/zeppos-app-utils/package.json +1 -1
- package/utils/pre-check.js +11 -22
- package/utils/tools.js +14 -0
- package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/assets/gts/consume.png +0 -0
- package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/assets/gts/food/beer.png +0 -0
- package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/assets/gts/food/cake.png +0 -0
- package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/assets/gts/food/chocolate.png +0 -0
- package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/assets/gts/food/coffee.png +0 -0
- package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/assets/gts/food/cookies.png +0 -0
- package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/assets/gts/food/ham.png +0 -0
- package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/assets/gts/food/hamburger.png +0 -0
- package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/assets/gts/food/ice cream.png +0 -0
- package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/assets/gts/food/pizza.png +0 -0
- package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/assets/gts/food/sausage.png +0 -0
- package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/assets/gts/icon.png +0 -0
- package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/assets/gts/multiply.png +0 -0
- package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/assets/gts/selected.png +0 -0
- package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/assets/gts/unselected.png +0 -0
- package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/page/gts/food-list.js +0 -113
- package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/calories/page/gts/index.js +0 -126
- package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/fetch-api/assets/common/icon.png +0 -0
- package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/fetch-api/pages/i18n/en-US.po +0 -2
- package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/fetch-api/pages/index.js +0 -55
- package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/hello-world/assets/gtr/icon.png +0 -0
- package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/hello-world/assets/gtr/image/logo.png +0 -0
- package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/hello-world/assets/gts/icon.png +0 -0
- package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/hello-world/assets/gts/image/logo.png +0 -0
- package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/hello-world/page/gtr/home/index.page.js +0 -20
- package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/hello-world/page/gtr/home/index.page.json +0 -1
- package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/hello-world/page/gtr/home/index.style.js +0 -18
- package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/hello-world/page/gts/home/index.page.js +0 -21
- package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/hello-world/page/gts/home/index.page.json +0 -1
- package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/hello-world/page/gts/home/index.style.js +0 -17
- package/private-modules/zeppos-app-utils/dist/public/template/config-version-v3/v2/todo-list/assets/gts/icon.png +0 -0
|
@@ -1,7 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
2
16
|
var _a;
|
|
3
17
|
exports.__esModule = true;
|
|
4
18
|
exports.deviceInternalCodeName = exports.OSV2DeviceTargetNames = exports.OSV2Devices = exports.deviceTargets = exports.DeviceScreenType = exports.DeviceSource = exports.DevicePlatformName = exports.DeviceTarget = void 0;
|
|
19
|
+
var lodash_1 = require("lodash");
|
|
20
|
+
var device_server_1 = __importDefault(require("./device-server"));
|
|
21
|
+
var tools_1 = require("../tools/tools");
|
|
5
22
|
var DeviceTarget;
|
|
6
23
|
(function (DeviceTarget) {
|
|
7
24
|
DeviceTarget["MADRID"] = "madrid";
|
|
@@ -13,8 +30,14 @@ var DeviceTarget;
|
|
|
13
30
|
DeviceTarget["BERLIN"] = "berlin";
|
|
14
31
|
DeviceTarget["LILLE"] = "lille";
|
|
15
32
|
DeviceTarget["VIENNA"] = "vienna";
|
|
16
|
-
DeviceTarget["LEIDEN"] = "leiden";
|
|
17
33
|
DeviceTarget["ANDES"] = "andes";
|
|
34
|
+
DeviceTarget["MONACO"] = "monaco";
|
|
35
|
+
DeviceTarget["SWIFT"] = "swift";
|
|
36
|
+
DeviceTarget["SWORDFISH"] = "swordfishw";
|
|
37
|
+
DeviceTarget["CHEETAH"] = "cheetahw";
|
|
38
|
+
DeviceTarget["HANNOVER"] = "hannover";
|
|
39
|
+
DeviceTarget["ETNA"] = "etna";
|
|
40
|
+
DeviceTarget["ALTAI"] = "altai";
|
|
18
41
|
})(DeviceTarget = exports.DeviceTarget || (exports.DeviceTarget = {}));
|
|
19
42
|
var DevicePlatformName;
|
|
20
43
|
(function (DevicePlatformName) {
|
|
@@ -37,11 +60,20 @@ var DevicePlatformName;
|
|
|
37
60
|
DevicePlatformName["LILLE"] = "gts4";
|
|
38
61
|
DevicePlatformName["LILLE_W"] = "gts4-w";
|
|
39
62
|
DevicePlatformName["VIENNA"] = "falcon";
|
|
40
|
-
DevicePlatformName["VIENNA_W"] = "falcon";
|
|
41
|
-
DevicePlatformName["LEIDEN"] = "gtr-mini";
|
|
42
|
-
DevicePlatformName["LEIDEN_W"] = "gtr-mini-w";
|
|
63
|
+
DevicePlatformName["VIENNA_W"] = "falcon-w";
|
|
43
64
|
DevicePlatformName["ANDES"] = "t-rex-ultra";
|
|
44
65
|
DevicePlatformName["ANDES_W"] = "t-rex-ultra-w";
|
|
66
|
+
DevicePlatformName["MONACO"] = "monaco";
|
|
67
|
+
DevicePlatformName["MONACO_WN"] = "monaco-wn";
|
|
68
|
+
DevicePlatformName["MONACO_W"] = "monaco-w";
|
|
69
|
+
DevicePlatformName["SWIFT"] = "swift";
|
|
70
|
+
DevicePlatformName["SWIFT_W"] = "swift-w";
|
|
71
|
+
DevicePlatformName["SWORDFISH_W"] = "swordfish-w";
|
|
72
|
+
DevicePlatformName["CHEETAH_W"] = "cheetah-w";
|
|
73
|
+
DevicePlatformName["HANNOVER"] = "hannover";
|
|
74
|
+
DevicePlatformName["ETNA"] = "etna";
|
|
75
|
+
DevicePlatformName["ETNA_W"] = "etna-w";
|
|
76
|
+
DevicePlatformName["ALTAI"] = "altai";
|
|
45
77
|
})(DevicePlatformName = exports.DevicePlatformName || (exports.DevicePlatformName = {}));
|
|
46
78
|
var DeviceSource;
|
|
47
79
|
(function (DeviceSource) {
|
|
@@ -65,234 +97,380 @@ var DeviceSource;
|
|
|
65
97
|
DeviceSource[DeviceSource["LILLE_W"] = 7995649] = "LILLE_W";
|
|
66
98
|
DeviceSource[DeviceSource["VIENNA"] = 414] = "VIENNA";
|
|
67
99
|
DeviceSource[DeviceSource["VIENNA_W"] = 415] = "VIENNA_W";
|
|
68
|
-
DeviceSource[DeviceSource["LEIDEN"] = 250] = "LEIDEN";
|
|
69
|
-
DeviceSource[DeviceSource["LEIDEN_W"] = 251] = "LEIDEN_W";
|
|
70
100
|
DeviceSource[DeviceSource["ANDES"] = 6553856] = "ANDES";
|
|
71
101
|
DeviceSource[DeviceSource["ANDES_W"] = 6553857] = "ANDES_W";
|
|
102
|
+
DeviceSource[DeviceSource["MONACO"] = 8519936] = "MONACO";
|
|
103
|
+
DeviceSource[DeviceSource["MONACO_WN"] = 8519937] = "MONACO_WN";
|
|
104
|
+
DeviceSource[DeviceSource["MONACO_W"] = 8519939] = "MONACO_W";
|
|
105
|
+
DeviceSource[DeviceSource["SWIFT"] = 8192256] = "SWIFT";
|
|
106
|
+
DeviceSource[DeviceSource["SWIFT_W"] = 8192257] = "SWIFT_W";
|
|
107
|
+
DeviceSource[DeviceSource["SWORDFISH_W"] = 8257793] = "SWORDFISH_W";
|
|
108
|
+
DeviceSource[DeviceSource["CHEETAH_W"] = 8126721] = "CHEETAH_W";
|
|
109
|
+
DeviceSource[DeviceSource["HANNOVER"] = 8323329] = "HANNOVER";
|
|
110
|
+
DeviceSource[DeviceSource["ETNA"] = 8388864] = "ETNA";
|
|
111
|
+
DeviceSource[DeviceSource["ETNA_W"] = 8388865] = "ETNA_W";
|
|
112
|
+
DeviceSource[DeviceSource["ALTAI"] = 8454401] = "ALTAI";
|
|
72
113
|
})(DeviceSource = exports.DeviceSource || (exports.DeviceSource = {}));
|
|
73
114
|
var DeviceScreenType;
|
|
74
115
|
(function (DeviceScreenType) {
|
|
75
116
|
DeviceScreenType["R"] = "r";
|
|
76
117
|
DeviceScreenType["S"] = "s";
|
|
118
|
+
DeviceScreenType["B"] = "b";
|
|
77
119
|
})(DeviceScreenType = exports.DeviceScreenType || (exports.DeviceScreenType = {}));
|
|
78
|
-
exports.deviceTargets = (_a = {},
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
height: 480
|
|
99
|
-
}
|
|
120
|
+
exports.deviceTargets = __assign((_a = {}, _a[DeviceTarget.MADRID] = {
|
|
121
|
+
deviceName: 'GTR3 Pro',
|
|
122
|
+
platforms: [
|
|
123
|
+
{
|
|
124
|
+
name: DevicePlatformName.MADRID,
|
|
125
|
+
deviceSource: DeviceSource.MADRID
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
name: DevicePlatformName.MADRIDW,
|
|
129
|
+
deviceSource: DeviceSource.MADRIDW
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
name: DevicePlatformName.Madrid2,
|
|
133
|
+
deviceSource: DeviceSource.Madrid2
|
|
134
|
+
},
|
|
135
|
+
],
|
|
136
|
+
screen: {
|
|
137
|
+
type: DeviceScreenType.R,
|
|
138
|
+
width: 480,
|
|
139
|
+
height: 480
|
|
100
140
|
},
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
141
|
+
apiLevelLimit: {
|
|
142
|
+
min: '1.0.0',
|
|
143
|
+
max: '1.99.99'
|
|
144
|
+
}
|
|
145
|
+
}, _a[DeviceTarget.VERONA] = {
|
|
146
|
+
deviceName: 'GTR3',
|
|
147
|
+
platforms: [
|
|
148
|
+
{
|
|
149
|
+
name: DevicePlatformName.VERONA,
|
|
150
|
+
deviceSource: DeviceSource.VERONA
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
name: DevicePlatformName.VERONAW,
|
|
154
|
+
deviceSource: DeviceSource.VERONAW
|
|
155
|
+
},
|
|
156
|
+
],
|
|
157
|
+
screen: {
|
|
158
|
+
type: DeviceScreenType.R,
|
|
159
|
+
width: 454,
|
|
160
|
+
height: 454
|
|
118
161
|
},
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
162
|
+
apiLevelLimit: {
|
|
163
|
+
min: '1.0.0',
|
|
164
|
+
max: '1.99.99'
|
|
165
|
+
}
|
|
166
|
+
}, _a[DeviceTarget.ZURICH] = {
|
|
167
|
+
deviceName: 'GTS3',
|
|
168
|
+
platforms: [
|
|
169
|
+
{
|
|
170
|
+
name: DevicePlatformName.ZURICH,
|
|
171
|
+
deviceSource: DeviceSource.ZURICH
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
name: DevicePlatformName.ZURICHW,
|
|
175
|
+
deviceSource: DeviceSource.ZURICHW
|
|
176
|
+
},
|
|
177
|
+
],
|
|
178
|
+
screen: {
|
|
179
|
+
type: DeviceScreenType.S,
|
|
180
|
+
width: 390,
|
|
181
|
+
height: 450
|
|
136
182
|
},
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
183
|
+
apiLevelLimit: {
|
|
184
|
+
min: '1.0.0',
|
|
185
|
+
max: '1.99.99'
|
|
186
|
+
}
|
|
187
|
+
}, _a[DeviceTarget.TEIDE] = {
|
|
188
|
+
deviceName: 'T-Rex2',
|
|
189
|
+
platforms: [
|
|
190
|
+
{
|
|
191
|
+
name: DevicePlatformName.TEIDE,
|
|
192
|
+
deviceSource: DeviceSource.TEIDE
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
name: DevicePlatformName.TEIDEW,
|
|
196
|
+
deviceSource: DeviceSource.TEIDEW
|
|
197
|
+
},
|
|
198
|
+
],
|
|
199
|
+
screen: {
|
|
200
|
+
type: DeviceScreenType.R,
|
|
201
|
+
width: 454,
|
|
202
|
+
height: 454
|
|
154
203
|
},
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
204
|
+
apiLevelLimit: {
|
|
205
|
+
min: '1.0.0',
|
|
206
|
+
max: '1.99.99'
|
|
207
|
+
}
|
|
208
|
+
}, _a[DeviceTarget.PROVENCE] = {
|
|
209
|
+
deviceName: 'GTS4 mini',
|
|
210
|
+
platforms: [
|
|
211
|
+
{
|
|
212
|
+
name: DevicePlatformName.PROVENCE,
|
|
213
|
+
deviceSource: DeviceSource.PROVENCE
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
name: DevicePlatformName.PROVENCEW,
|
|
217
|
+
deviceSource: DeviceSource.PROVENCEW
|
|
218
|
+
},
|
|
219
|
+
],
|
|
220
|
+
screen: {
|
|
221
|
+
type: DeviceScreenType.S,
|
|
222
|
+
width: 336,
|
|
223
|
+
height: 384
|
|
172
224
|
},
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
225
|
+
apiLevelLimit: {
|
|
226
|
+
min: '1.0.0',
|
|
227
|
+
max: '1.99.99'
|
|
228
|
+
}
|
|
229
|
+
}, _a[DeviceTarget.BARI] = {
|
|
230
|
+
deviceName: 'Amazfit Band 7',
|
|
231
|
+
platforms: [
|
|
232
|
+
{
|
|
233
|
+
name: DevicePlatformName.BARI_NFC,
|
|
234
|
+
deviceSource: DeviceSource.BARI_NFC
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
name: DevicePlatformName.BARI,
|
|
238
|
+
deviceSource: DeviceSource.BARI
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
name: DevicePlatformName.BARI_W,
|
|
242
|
+
deviceSource: DeviceSource.BARI_W
|
|
243
|
+
},
|
|
244
|
+
],
|
|
245
|
+
screen: {
|
|
246
|
+
type: DeviceScreenType.B,
|
|
247
|
+
width: 194,
|
|
248
|
+
height: 368
|
|
194
249
|
},
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
250
|
+
apiLevelLimit: {
|
|
251
|
+
min: '1.0.0',
|
|
252
|
+
max: '1.99.99'
|
|
253
|
+
}
|
|
254
|
+
}, _a[DeviceTarget.BERLIN] = {
|
|
255
|
+
deviceName: 'GTR 4',
|
|
256
|
+
platforms: [
|
|
257
|
+
{
|
|
258
|
+
name: DevicePlatformName.BERLIN,
|
|
259
|
+
deviceSource: DeviceSource.BERLIN
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
name: DevicePlatformName.BERLIN_W,
|
|
263
|
+
deviceSource: DeviceSource.BERLIN_W
|
|
264
|
+
},
|
|
265
|
+
],
|
|
266
|
+
screen: {
|
|
267
|
+
type: DeviceScreenType.R,
|
|
268
|
+
width: 466,
|
|
269
|
+
height: 466
|
|
212
270
|
},
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
271
|
+
apiLevelLimit: {
|
|
272
|
+
min: '1.0.0'
|
|
273
|
+
}
|
|
274
|
+
}, _a[DeviceTarget.LILLE] = {
|
|
275
|
+
deviceName: 'GTS 4',
|
|
276
|
+
platforms: [
|
|
277
|
+
{
|
|
278
|
+
name: DevicePlatformName.LILLE,
|
|
279
|
+
deviceSource: DeviceSource.LILLE
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
name: DevicePlatformName.LILLE_W,
|
|
283
|
+
deviceSource: DeviceSource.LILLE_W
|
|
284
|
+
},
|
|
285
|
+
],
|
|
286
|
+
screen: {
|
|
287
|
+
type: DeviceScreenType.S,
|
|
288
|
+
width: 390,
|
|
289
|
+
height: 450
|
|
230
290
|
},
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
291
|
+
apiLevelLimit: {
|
|
292
|
+
min: '1.0.0'
|
|
293
|
+
}
|
|
294
|
+
}, _a[DeviceTarget.VIENNA] = {
|
|
295
|
+
deviceName: 'Falcon',
|
|
296
|
+
platforms: [
|
|
297
|
+
{
|
|
298
|
+
name: DevicePlatformName.VIENNA,
|
|
299
|
+
deviceSource: DeviceSource.VIENNA
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
name: DevicePlatformName.VIENNA_W,
|
|
303
|
+
deviceSource: DeviceSource.VIENNA_W
|
|
304
|
+
},
|
|
305
|
+
],
|
|
306
|
+
screen: {
|
|
307
|
+
type: DeviceScreenType.R,
|
|
308
|
+
width: 416,
|
|
309
|
+
height: 416
|
|
248
310
|
},
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
311
|
+
apiLevelLimit: {
|
|
312
|
+
min: '1.0.0',
|
|
313
|
+
max: '1.99.99'
|
|
314
|
+
}
|
|
315
|
+
}, _a[DeviceTarget.ANDES] = {
|
|
316
|
+
deviceName: 'T-Rex Ultra',
|
|
317
|
+
platforms: [
|
|
318
|
+
{
|
|
319
|
+
name: DevicePlatformName.ANDES,
|
|
320
|
+
deviceSource: DeviceSource.ANDES
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
name: DevicePlatformName.ANDES_W,
|
|
324
|
+
deviceSource: DeviceSource.ANDES_W
|
|
325
|
+
},
|
|
326
|
+
],
|
|
327
|
+
screen: {
|
|
328
|
+
type: DeviceScreenType.R,
|
|
329
|
+
width: 454,
|
|
330
|
+
height: 454
|
|
266
331
|
},
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
332
|
+
apiLevelLimit: {
|
|
333
|
+
min: '1.0.0'
|
|
334
|
+
}
|
|
335
|
+
}, _a[DeviceTarget.MONACO] = {
|
|
336
|
+
deviceName: 'GTR 5',
|
|
337
|
+
platforms: [
|
|
338
|
+
{
|
|
339
|
+
name: DevicePlatformName.MONACO,
|
|
340
|
+
deviceSource: DeviceSource.MONACO
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
name: DevicePlatformName.MONACO_WN,
|
|
344
|
+
deviceSource: DeviceSource.MONACO_WN
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
name: DevicePlatformName.MONACO_W,
|
|
348
|
+
deviceSource: DeviceSource.MONACO_W
|
|
349
|
+
},
|
|
350
|
+
],
|
|
351
|
+
screen: {
|
|
352
|
+
type: DeviceScreenType.R,
|
|
353
|
+
width: 480,
|
|
354
|
+
height: 480
|
|
355
|
+
},
|
|
356
|
+
apiLevelLimit: {
|
|
357
|
+
min: '1.0.0'
|
|
358
|
+
}
|
|
359
|
+
}, _a[DeviceTarget.SWIFT] = {
|
|
360
|
+
deviceName: 'Runner (Round)',
|
|
361
|
+
platforms: [
|
|
362
|
+
{
|
|
363
|
+
name: DevicePlatformName.SWIFT,
|
|
364
|
+
deviceSource: DeviceSource.SWIFT
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
name: DevicePlatformName.SWIFT_W,
|
|
368
|
+
deviceSource: DeviceSource.SWIFT_W
|
|
369
|
+
},
|
|
370
|
+
],
|
|
371
|
+
screen: {
|
|
372
|
+
type: DeviceScreenType.R,
|
|
373
|
+
width: 454,
|
|
374
|
+
height: 454
|
|
375
|
+
},
|
|
376
|
+
apiLevelLimit: {
|
|
377
|
+
min: '1.0.0'
|
|
378
|
+
}
|
|
379
|
+
}, _a[DeviceTarget.SWORDFISH] = {
|
|
380
|
+
deviceName: 'Runner (Square)',
|
|
381
|
+
platforms: [
|
|
382
|
+
{
|
|
383
|
+
name: DevicePlatformName.SWORDFISH_W,
|
|
384
|
+
deviceSource: DeviceSource.SWORDFISH_W
|
|
385
|
+
},
|
|
386
|
+
],
|
|
387
|
+
screen: {
|
|
388
|
+
type: DeviceScreenType.S,
|
|
389
|
+
width: 390,
|
|
390
|
+
height: 450
|
|
391
|
+
},
|
|
392
|
+
apiLevelLimit: {
|
|
393
|
+
min: '1.0.0'
|
|
394
|
+
}
|
|
395
|
+
}, _a[DeviceTarget.CHEETAH] = {
|
|
396
|
+
deviceName: 'Runner Pro',
|
|
397
|
+
platforms: [
|
|
398
|
+
{
|
|
399
|
+
name: DevicePlatformName.CHEETAH_W,
|
|
400
|
+
deviceSource: DeviceSource.CHEETAH_W
|
|
401
|
+
},
|
|
402
|
+
],
|
|
403
|
+
screen: {
|
|
404
|
+
type: DeviceScreenType.R,
|
|
405
|
+
width: 480,
|
|
406
|
+
height: 480
|
|
407
|
+
},
|
|
408
|
+
apiLevelLimit: {
|
|
409
|
+
min: '1.0.0'
|
|
410
|
+
}
|
|
411
|
+
}, _a[DeviceTarget.HANNOVER] = {
|
|
412
|
+
deviceName: 'GTS 5 Active',
|
|
413
|
+
platforms: [
|
|
414
|
+
{
|
|
415
|
+
name: DevicePlatformName.HANNOVER,
|
|
416
|
+
deviceSource: DeviceSource.HANNOVER
|
|
417
|
+
},
|
|
418
|
+
],
|
|
419
|
+
screen: {
|
|
420
|
+
type: DeviceScreenType.S,
|
|
421
|
+
width: 390,
|
|
422
|
+
height: 450
|
|
423
|
+
},
|
|
424
|
+
apiLevelLimit: {
|
|
425
|
+
min: '1.0.0'
|
|
426
|
+
}
|
|
427
|
+
}, _a[DeviceTarget.ETNA] = {
|
|
428
|
+
deviceName: 'GTR Shock',
|
|
429
|
+
platforms: [
|
|
430
|
+
{
|
|
431
|
+
name: DevicePlatformName.ETNA,
|
|
432
|
+
deviceSource: DeviceSource.ETNA
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
name: DevicePlatformName.ETNA_W,
|
|
436
|
+
deviceSource: DeviceSource.ETNA_W
|
|
437
|
+
},
|
|
438
|
+
],
|
|
439
|
+
screen: {
|
|
440
|
+
type: DeviceScreenType.S,
|
|
441
|
+
width: 360,
|
|
442
|
+
height: 360
|
|
443
|
+
},
|
|
444
|
+
apiLevelLimit: {
|
|
445
|
+
min: '1.0.0'
|
|
446
|
+
}
|
|
447
|
+
}, _a[DeviceTarget.ALTAI] = {
|
|
448
|
+
deviceName: 'Bip 5s',
|
|
449
|
+
platforms: [
|
|
450
|
+
{
|
|
451
|
+
name: DevicePlatformName.ALTAI,
|
|
452
|
+
deviceSource: DeviceSource.ALTAI
|
|
453
|
+
},
|
|
454
|
+
],
|
|
455
|
+
screen: {
|
|
456
|
+
type: DeviceScreenType.S,
|
|
457
|
+
width: 320,
|
|
458
|
+
height: 380
|
|
284
459
|
},
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
];
|
|
460
|
+
apiLevelLimit: {
|
|
461
|
+
min: '1.0.0'
|
|
462
|
+
}
|
|
463
|
+
}, _a), device_server_1["default"]);
|
|
464
|
+
exports.OSV2Devices = Object.values(exports.deviceTargets).reduce(function (targetDevices, target) {
|
|
465
|
+
var _a = target.platforms, platforms = _a === void 0 ? [] : _a, _b = target.apiLevelLimit, apiLevelLimit = _b === void 0 ? {} : _b;
|
|
466
|
+
var min = apiLevelLimit.min, max = apiLevelLimit.max;
|
|
467
|
+
if (!(0, lodash_1.isEmpty)(platforms) &&
|
|
468
|
+
(0, tools_1.compareVersion)(min || '1.0.0', '2.0.0') >= 0 &&
|
|
469
|
+
(0, tools_1.compareVersion)(max || '99.99.99', '2.0.0') < 0) {
|
|
470
|
+
targetDevices.push.apply(targetDevices, platforms.reduce(function (list, o) { return (0, lodash_1.compact)(list.concat([o.deviceSource])); }, []));
|
|
471
|
+
}
|
|
472
|
+
return targetDevices;
|
|
473
|
+
}, []);
|
|
296
474
|
exports.OSV2DeviceTargetNames = Object.keys(exports.deviceTargets).reduce(function (targetNames, target) {
|
|
297
475
|
var flag = true;
|
|
298
476
|
var _a = exports.deviceTargets[target].platforms, platforms = _a === void 0 ? [] : _a;
|