Skip to content

Commit

Permalink
Merge branch 'master' into download-complete-file-then-resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
TwitchBronBron authored Nov 30, 2023
2 parents ed73934 + 16ef61d commit 31b6926
Show file tree
Hide file tree
Showing 9 changed files with 776 additions and 106 deletions.
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,25 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0



## [3.11.0](https://github.com/rokucommunity/roku-deploy/compare/v3.10.5...v3.11.0) - 2023-11-28
### Changed
- Add public function `normalizeDeviceInfoFieldValue` to normalize device-info field values ([#129](https://github.com/rokucommunity/roku-deploy/pull/129))



## [3.10.5](https://github.com/rokucommunity/roku-deploy/compare/v3.10.4...v3.10.5) - 2023-11-14
### Changed
- better device-info docs ([#128](https://github.com/rokucommunity/roku-deploy/pull/128))
- Better deploy error detection ([#127](https://github.com/rokucommunity/roku-deploy/pull/127))



## [3.10.4](https://github.com/rokucommunity/roku-deploy/compare/v3.10.3...v3.10.4) - 2023-11-03
### Changed
- Enhance getDeviceInfo() method to support camelCase and convert bool|number strings to their primitive types ([#120](https://github.com/rokucommunity/roku-deploy/pull/120))



## [3.10.3](https://github.com/rokucommunity/roku-deploy/compare/v3.10.2...3.10.3) - 2023-07-22
### Changed
- Bump word-wrap from 1.2.3 to 1.2.4 ([#117](https://github.com/rokucommunity/roku-deploy/pull/117))
Expand Down
28 changes: 26 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "roku-deploy",
"version": "3.10.3",
"version": "3.11.0",
"description": "Package and publish a Roku application using Node.js",
"main": "dist/index.js",
"scripts": {
Expand All @@ -25,6 +25,7 @@
"is-glob": "^4.0.3",
"jsonc-parser": "^2.3.0",
"jszip": "^3.6.0",
"lodash": "^4.17.21",
"micromatch": "^4.0.4",
"moment": "^2.29.1",
"parse-ms": "^2.1.0",
Expand All @@ -36,6 +37,7 @@
"@types/chai": "^4.2.22",
"@types/fs-extra": "^5.0.1",
"@types/is-glob": "^4.0.2",
"@types/lodash": "^4.14.200",
"@types/micromatch": "^4.0.2",
"@types/mocha": "^9.0.0",
"@types/node": "^16.11.3",
Expand Down
149 changes: 149 additions & 0 deletions src/DeviceInfo.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
//there are 2 copies of this interface in here. If you add a new field, be sure to add it to both

export interface DeviceInfo {
udn?: string;
serialNumber?: string;
deviceId?: string;
advertisingId?: string;
vendorName?: string;
modelName?: string;
modelNumber?: string;
modelRegion?: string;
isTv?: boolean;
isStick?: boolean;
mobileHasLiveTv?: boolean;
uiResolution?: string;
supportsEthernet?: boolean;
wifiMac?: string;
wifiDriver?: string;
hasWifiExtender?: boolean;
hasWifi5GSupport?: boolean;
canUseWifiExtender?: boolean;
ethernetMac?: string;
networkType?: string;
networkName?: string;
friendlyDeviceName?: string;
friendlyModelName?: string;
defaultDeviceName?: string;
userDeviceName?: string;
userDeviceLocation?: string;
buildNumber?: string;
softwareVersion?: string;
softwareBuild?: number;
secureDevice?: boolean;
language?: string;
country?: string;
locale?: string;
timeZoneAuto?: boolean;
timeZone?: string;
timeZoneName?: string;
timeZoneTz?: string;
timeZoneOffset?: number;
clockFormat?: string;
uptime?: number;
powerMode?: string;
supportsSuspend?: boolean;
supportsFindRemote?: boolean;
findRemoteIsPossible?: boolean;
supportsAudioGuide?: boolean;
supportsRva?: boolean;
hasHandsFreeVoiceRemote?: boolean;
developerEnabled?: boolean;
keyedDeveloperId?: string;
searchEnabled?: boolean;
searchChannelsEnabled?: boolean;
voiceSearchEnabled?: boolean;
notificationsEnabled?: boolean;
notificationsFirstUse?: boolean;
supportsPrivateListening?: boolean;
headphonesConnected?: boolean;
supportsAudioSettings?: boolean;
supportsEcsTextedit?: boolean;
supportsEcsMicrophone?: boolean;
supportsWakeOnWlan?: boolean;
supportsAirplay?: boolean;
hasPlayOnRoku?: boolean;
hasMobileScreensaver?: boolean;
supportUrl?: string;
grandcentralVersion?: string;
trcVersion?: number;
trcChannelVersion?: string;
davinciVersion?: string;
avSyncCalibrationEnabled?: number;
brightscriptDebuggerVersion?: string;
}

export interface DeviceInfoRaw {
'udn'?: string;
'serialNumber'?: string;
'deviceId'?: string;
'advertising-id'?: string;
'vendor-name'?: string;
'model-name'?: string;
'model-number'?: string;
'model-region'?: string;
'is-tv'?: string;
'is-stick'?: string;
'mobile-has-live-tv'?: string;
'ui-resolution'?: string;
'supports-ethernet'?: string;
'wifi-mac'?: string;
'wifi-driver'?: string;
'has-wifi-extender'?: string;
'has-wifi-5G-support'?: string;
'can-use-wifi-extender'?: string;
'ethernet-mac'?: string;
'network-type'?: string;
'network-name'?: string;
'friendly-device-name'?: string;
'friendly-model-name'?: string;
'default-device-name'?: string;
'user-device-name'?: string;
'user-device-location'?: string;
'build-number'?: string;
'software-version'?: string;
'software-build'?: string;
'secure-device'?: string;
'language'?: string;
'country'?: string;
'locale'?: string;
'time-zone-auto'?: string;
'time-zone'?: string;
'time-zone-name'?: string;
'time-zone-tz'?: string;
'time-zone-offset'?: string;
'clock-format'?: string;
'uptime'?: string;
'power-mode'?: string;
'supports-suspend'?: string;
'supports-find-remote'?: string;
'find-remote-is-possible'?: string;
'supports-audio-guide'?: string;
'supports-rva'?: string;
'has-hands-free-voice-remote'?: string;
'developer-enabled'?: string;
'keyed-developer-id'?: string;
'search-enabled'?: string;
'search-channels-enabled'?: string;
'voice-search-enabled'?: string;
'notifications-enabled'?: string;
'notifications-first-use'?: string;
'supports-private-listening'?: string;
'headphones-connected'?: string;
'supports-audio-settings'?: string;
'supports-ecs-textedit'?: string;
'supports-ecs-microphone'?: string;
'supports-wake-on-wlan'?: string;
'supports-airplay'?: string;
'has-play-on-roku'?: string;
'has-mobile-screensaver'?: string;
'support-url'?: string;
'grandcentral-version'?: string;
'trc-version'?: string;
'trc-channel-version'?: string;
'davinci-version'?: string;
'av-sync-calibration-enabled'?: string;
'brightscript-debugger-version'?: string;
// catchall index lookup for keys we weren't aware of
[key: string]: any;
}
Loading

0 comments on commit 31b6926

Please sign in to comment.