@24i/smartapps-bigscreen-rnv-build-engine 0.17.6-alpha.13 → 0.17.6-alpha.14

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/README.md CHANGED
@@ -38,18 +38,20 @@ it
38
38
  ---
39
39
  ## Supported platforms
40
40
 
41
- | *Platform* | *Vendor* | *id* | *Build file extension* | *Registered file extensions* | *Note* |
42
- | :------------ | :------: | :---------: | :--------------------: | :---------------------------------: | :------------------------------: |
43
- | **AndroidTV** | N/A | `androidtv` | `.zip` | `*.android.tv.{js,jsx,ts,tsx,json}` | |
44
- | **Entone** | Amino | `entone` | `.zip` | `*.entone.{js,jsx,ts,tsx,json}` | set-top boxes |
45
- | **HbbTV** | N/A | `hbbtv` | `.zip` | `*.hbbtv.tv.{js,jsx,ts,tsx,json}` | |
46
- | **KreaTV** | Arris | `kreatv` | `.zip` | `*.kreatv.{js,jsx,ts,tsx,json}` | set-top boxes |
47
- | **Saphi** | Philips | `saphi` | `.zip` | `*.saphi.tv.{js,jsx,ts,tsx,json}` | |
48
- | **Tizen** | Samsung | `tizen` | `.wgt` | `*.tizen.tv.{js,jsx,ts,tsx,json}` | |
49
- | **VIDAA** | Hisense | `vidaa` | `.zip` | `*.vidaa.tv.{js,jsx,ts,tsx,json}` | |
50
- | **webOS** | LG | `webos` | `.ipk` | `*.webos.tv.{js,jsx,ts,tsx,json}` | |
51
- | **WebTV** | N/A | `webtv` | `.zip` | `*.webtv.{js,jsx,ts,tsx,json}` | for previewing builds in browser |
52
- | **Xbox** | Microsoft | `xbox` | `.zip` | `*.xbox.{js,jsx,ts,tsx,json}` | |
41
+ | *Platform* | *Vendor* | *id* | *Build file extension* | *Registered file extensions* | *Note* |
42
+ | :------------ | :-------: | :---------: | :--------------------: | :----------------------------------: | :------------------------------: |
43
+ | **AndroidTV** | N/A | `androidtv` | `.zip` | `*.android.tv.{js,jsx,ts,tsx,json}` | |
44
+ | **Entone** | Amino | `entone` | `.zip` | `*.entone.{js,jsx,ts,tsx,json}` | set-top boxes |
45
+ | **FireTV** | N/A | `firetv` | `.zip` | `*.firetv.{js,jsx,ts,tsx,json}` | |
46
+ | **HbbTV** | N/A | `hbbtv` | `.zip` | `*.hbbtv.tv.{js,jsx,ts,tsx,json}` | |
47
+ | **KreaTV** | Arris | `kreatv` | `.zip` | `*.kreatv.{js,jsx,ts,tsx,json}` | set-top boxes |
48
+ | **Saphi** | Philips | `saphi` | `.zip` | `*.saphi.tv.{js,jsx,ts,tsx,json}` | |
49
+ | **Tizen** | Samsung | `tizen` | `.wgt` | `*.tizen.tv.{js,jsx,ts,tsx,json}` | |
50
+ | **VIDAA** | Hisense | `vidaa` | `.zip` | `*.vidaa.tv.{js,jsx,ts,tsx,json}` | |
51
+ | **SmartCast** | VIZIO | `smartcast` | `.zip` | `*.smartcast.tv.{js,jsx,ts,tsx,json}`| |
52
+ | **webOS** | LG | `webos` | `.ipk` | `*.webos.tv.{js,jsx,ts,tsx,json}` | |
53
+ | **WebTV** | N/A | `webtv` | `.zip` | `*.webtv.{js,jsx,ts,tsx,json}` | for previewing builds in browser |
54
+ | **Xbox** | Microsoft | `xbox` | `.zip` | `*.xbox.{js,jsx,ts,tsx,json}` | |
53
55
 
54
56
  When building the application with ReNative, if file with ***registered platform extension*** is found,
55
57
  it takes precedence and is bundled instead of file without registered file extension (such as `index.ts`).
@@ -60,11 +62,13 @@ drivers/
60
62
  index.ts // fallback when file with platform file extension for selected platform is not found
61
63
  index.android.tv.ts // if build for AndroidTV platform is selected, this file will be picked for the build
62
64
  index.entone.ts
65
+ index.firetv.ts
63
66
  index.hbbtv.tv.ts
64
67
  index.kreatv.ts
65
68
  index.saphi.tv.ts
66
69
  index.tizen.tv.ts
67
70
  index.vidaa.tv.ts
71
+ index.smartcast.tv.ts
68
72
  index.webos.tv.ts
69
73
  index.webtv.ts
70
74
  index.xbox.ts
@@ -4,6 +4,7 @@ exports.SUPPORTED_PACKAGE_PLATFORMS = void 0;
4
4
  const platforms_1 = require("./platforms");
5
5
  exports.SUPPORTED_PACKAGE_PLATFORMS = [
6
6
  platforms_1.Platforms.ANDROIDTV,
7
+ platforms_1.Platforms.FIRETV,
7
8
  platforms_1.Platforms.TIZEN,
8
9
  platforms_1.Platforms.WEBOS,
9
10
  ];
@@ -7,7 +7,8 @@ const UNSUPPORTED_PLATFORMS = [
7
7
  ];
8
8
  exports.UNSUPPORTED_PLATFORMS = UNSUPPORTED_PLATFORMS;
9
9
  const NO_CONTENT_FOLDER_PLATFORMS = [
10
- platforms_1.Platforms.VIDAA,
11
10
  platforms_1.Platforms.ANDROIDTV,
11
+ platforms_1.Platforms.FIRETV,
12
+ platforms_1.Platforms.VIDAA,
12
13
  ];
13
14
  exports.NO_CONTENT_FOLDER_PLATFORMS = NO_CONTENT_FOLDER_PLATFORMS;
@@ -4,11 +4,13 @@ exports.Platforms = void 0;
4
4
  const Platforms = {
5
5
  ANDROIDTV: 'androidtv',
6
6
  ENTONE: 'entone',
7
+ FIRETV: 'firetv',
7
8
  HBBTV: 'hbbtv',
8
9
  KREATV: 'kreatv',
9
10
  SAPHI: 'saphi',
10
11
  TIZEN: 'tizen',
11
12
  VIDAA: 'vidaa',
13
+ SMARTCAST: 'smartcast',
12
14
  WEBOS: 'webos',
13
15
  WEBTV: 'webtv',
14
16
  XBOX: 'xbox',
@@ -64,6 +64,11 @@ exports.default = {
64
64
  defaultPort: 8094,
65
65
  isWebHosted: true,
66
66
  },
67
+ [constants_1.Platforms.FIRETV]: {
68
+ extensions: generateEngineExtensions(['firetv']),
69
+ defaultPort: 8101,
70
+ isWebHosted: true,
71
+ },
67
72
  [constants_1.Platforms.HBBTV]: {
68
73
  extensions: generateEngineExtensions(['hbbtv.tv']),
69
74
  defaultPort: 8095,
@@ -89,6 +94,11 @@ exports.default = {
89
94
  defaultPort: 8099,
90
95
  isWebHosted: true,
91
96
  },
97
+ [constants_1.Platforms.SMARTCAST]: {
98
+ extensions: generateEngineExtensions(['smartcast.tv']),
99
+ defaultPort: 8101,
100
+ isWebHosted: true,
101
+ },
92
102
  [constants_1.Platforms.WEBOS]: {
93
103
  extensions: generateEngineExtensions(['webos.tv']),
94
104
  defaultPort: 8088,
@@ -24,11 +24,13 @@ const beautifyPlatformName = (platformName) => {
24
24
  switch (platformName.toLowerCase()) {
25
25
  case constants_1.Platforms.ANDROIDTV: return 'AndroidTV';
26
26
  case constants_1.Platforms.ENTONE: return 'Entone';
27
+ case constants_1.Platforms.FIRETV: return 'FireTV';
27
28
  case constants_1.Platforms.HBBTV: return 'HbbTV';
28
29
  case constants_1.Platforms.KREATV: return 'KreaTV';
29
30
  case constants_1.Platforms.SAPHI: return 'Saphi (Philips)';
30
31
  case constants_1.Platforms.TIZEN: return 'Tizen (Samsung)';
31
32
  case constants_1.Platforms.VIDAA: return 'VIDAA (Hisense)';
33
+ case constants_1.Platforms.SMARTCAST: return 'SmartCast (VIZIO)';
32
34
  case constants_1.Platforms.WEBOS: return 'webOS (LG)';
33
35
  case constants_1.Platforms.WEBTV: return 'WebTV';
34
36
  case constants_1.Platforms.XBOX: return 'Xbox';
@@ -38,6 +38,7 @@ exports.SDKXbox = SDKXbox;
38
38
  const handlePlatformSdk = async (c) => {
39
39
  switch (c.platform) {
40
40
  case constants_1.Platforms.ANDROIDTV:
41
+ case constants_1.Platforms.FIRETV:
41
42
  return SDKAndroidtv.handleAndroidTVSdk(c);
42
43
  case constants_1.Platforms.TIZEN:
43
44
  return SDKTizen.handleTizenSdk(c);
@@ -76,6 +76,7 @@ const buildFn = async (c, parentTask, originTask) => {
76
76
  case constants_1.Platforms.KREATV:
77
77
  case constants_1.Platforms.SAPHI:
78
78
  case constants_1.Platforms.VIDAA:
79
+ case constants_1.Platforms.SMARTCAST:
79
80
  case constants_1.Platforms.WEBTV:
80
81
  await sdks_1.SDKWebpack.buildCoreWebpackProject(c);
81
82
  makeZipOutput(c);
@@ -92,6 +93,7 @@ const buildFn = async (c, parentTask, originTask) => {
92
93
  renameOutput(c);
93
94
  break;
94
95
  case constants_1.Platforms.ANDROIDTV:
96
+ case constants_1.Platforms.FIRETV:
95
97
  await sdks_1.SDKAndroidtv.buildAndroidTVProject(c);
96
98
  break;
97
99
  default:
@@ -19,6 +19,7 @@ const configureFn = async (c, parentTask, originTask) => {
19
19
  case constants_1.Platforms.KREATV:
20
20
  case constants_1.Platforms.SAPHI:
21
21
  case constants_1.Platforms.VIDAA:
22
+ case constants_1.Platforms.SMARTCAST:
22
23
  case constants_1.Platforms.WEBTV:
23
24
  case constants_1.Platforms.XBOX:
24
25
  await sdks_1.SDKWebpack.configureWebProject(c);
@@ -30,6 +31,7 @@ const configureFn = async (c, parentTask, originTask) => {
30
31
  await sdks_1.SDKWebos.configureWebOSProject(c);
31
32
  break;
32
33
  case constants_1.Platforms.ANDROIDTV:
34
+ case constants_1.Platforms.FIRETV:
33
35
  await sdks_1.SDKAndroidtv.configureAndroidTVProject(c);
34
36
  break;
35
37
  default:
@@ -28,8 +28,10 @@ const deployFn = async (c, parentTask, originTask) => {
28
28
  break;
29
29
  case constants_1.Platforms.ANDROIDTV:
30
30
  case constants_1.Platforms.ENTONE:
31
+ case constants_1.Platforms.FIRETV:
31
32
  case constants_1.Platforms.KREATV:
32
33
  case constants_1.Platforms.SAPHI:
34
+ case constants_1.Platforms.SMARTCAST:
33
35
  case constants_1.Platforms.TIZEN:
34
36
  case constants_1.Platforms.VIDAA:
35
37
  case constants_1.Platforms.WEBOS:
@@ -1,6 +1,30 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
2
25
  Object.defineProperty(exports, "__esModule", { value: true });
3
26
  exports.customRnvPlatformConfigureTask = void 0;
27
+ const path = __importStar(require("path"));
4
28
  const rnv_1 = require("rnv");
5
29
  const schemeParser_1 = require("rnv/dist/core/configManager/schemeParser");
6
30
  const packageParser_1 = require("rnv/dist/core/configManager/packageParser");
@@ -14,7 +38,8 @@ const taskRnvPlatformConfigure = async (c, parentTask, originTask) => {
14
38
  await rnv_1.TaskManager.executeTask(c, TASK_PROJECT_CONFIGURE, TASK_PLATFORM_CONFIGURE, originTask);
15
39
  await rnv_1.PlatformManager.isPlatformSupported(c);
16
40
  await (0, schemeParser_1.isBuildSchemeSupported)(c);
17
- if (platform === constants_1.Platforms.ANDROIDTV) {
41
+ if (platform === constants_1.Platforms.ANDROIDTV ||
42
+ platform === constants_1.Platforms.FIRETV) {
18
43
  await (0, sdks_1.handlePlatformSdk)(c);
19
44
  }
20
45
  else {
@@ -34,6 +59,13 @@ const taskRnvPlatformConfigure = async (c, parentTask, originTask) => {
34
59
  await rnv_1.PlatformManager.cleanPlatformBuild(c, c.platform);
35
60
  }
36
61
  await rnv_1.PlatformManager.copySharedPlatforms(c);
62
+ if (platform === constants_1.Platforms.FIRETV) {
63
+ rnv_1.Logger.logInfo('We re-use AndroidTV template for FireTV platform!');
64
+ const templatesDir = c.paths.project.platformTemplatesDirs[platform];
65
+ const androidTvTemplateDir = path.join(templatesDir, constants_1.Platforms.ANDROIDTV);
66
+ const fireTvTemplateDir = path.join(templatesDir, constants_1.Platforms.FIRETV);
67
+ rnv_1.FileUtils.copyFolderContentsRecursiveSync(androidTvTemplateDir, fireTvTemplateDir);
68
+ }
37
69
  await rnv_1.PlatformManager.createPlatformBuild(c, c.platform);
38
70
  await (0, packageParser_1.injectPlatformDependencies)(c);
39
71
  };
@@ -19,11 +19,13 @@ const startFn = async (c, parentTask, originTask) => {
19
19
  switch (platform) {
20
20
  case constants_1.Platforms.ANDROIDTV:
21
21
  case constants_1.Platforms.ENTONE:
22
+ case constants_1.Platforms.FIRETV:
22
23
  case constants_1.Platforms.HBBTV:
23
24
  case constants_1.Platforms.KREATV:
24
25
  case constants_1.Platforms.SAPHI:
25
26
  case constants_1.Platforms.TIZEN:
26
27
  case constants_1.Platforms.VIDAA:
28
+ case constants_1.Platforms.SMARTCAST:
27
29
  case constants_1.Platforms.WEBOS:
28
30
  case constants_1.Platforms.WEBTV:
29
31
  case constants_1.Platforms.XBOX:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@24i/smartapps-bigscreen-rnv-build-engine",
3
- "version": "0.17.6-alpha.13",
3
+ "version": "0.17.6-alpha.14",
4
4
  "description": "Package with build engine for SmartApps BIGscreen projects...",
5
5
  "main": "dist/src/index.js",
6
6
  "scripts": {
@@ -8,11 +8,13 @@
8
8
  "platforms": {
9
9
  "androidtv": {},
10
10
  "entone": {},
11
+ "firetv": {},
11
12
  "hbbtv": {},
12
13
  "kreatv": {},
13
14
  "saphi": {},
14
15
  "tizen": {},
15
16
  "vidaa": {},
17
+ "smartcast": {},
16
18
  "webos": {},
17
19
  "webtv": {},
18
20
  "xbox": {}