@24i/smartapps-bigscreen-rnv-build-engine 0.17.6-alpha.12-analyzer-test → 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
@@ -39,9 +39,10 @@ it
39
39
  ## Supported platforms
40
40
 
41
41
  | *Platform* | *Vendor* | *id* | *Build file extension* | *Registered file extensions* | *Note* |
42
- | :------------ | :------: | :---------: | :--------------------: | :---------------------------------: | :------------------------------: |
42
+ | :------------ | :-------: | :---------: | :--------------------: | :----------------------------------: | :------------------------------: |
43
43
  | **AndroidTV** | N/A | `androidtv` | `.zip` | `*.android.tv.{js,jsx,ts,tsx,json}` | |
44
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}` | |
45
46
  | **HbbTV** | N/A | `hbbtv` | `.zip` | `*.hbbtv.tv.{js,jsx,ts,tsx,json}` | |
46
47
  | **KreaTV** | Arris | `kreatv` | `.zip` | `*.kreatv.{js,jsx,ts,tsx,json}` | set-top boxes |
47
48
  | **Saphi** | Philips | `saphi` | `.zip` | `*.saphi.tv.{js,jsx,ts,tsx,json}` | |
@@ -61,6 +62,7 @@ drivers/
61
62
  index.ts // fallback when file with platform file extension for selected platform is not found
62
63
  index.android.tv.ts // if build for AndroidTV platform is selected, this file will be picked for the build
63
64
  index.entone.ts
65
+ index.firetv.ts
64
66
  index.hbbtv.tv.ts
65
67
  index.kreatv.ts
66
68
  index.saphi.tv.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,6 +4,7 @@ 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',
@@ -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,
@@ -24,6 +24,7 @@ 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)';
@@ -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);
@@ -93,6 +93,7 @@ const buildFn = async (c, parentTask, originTask) => {
93
93
  renameOutput(c);
94
94
  break;
95
95
  case constants_1.Platforms.ANDROIDTV:
96
+ case constants_1.Platforms.FIRETV:
96
97
  await sdks_1.SDKAndroidtv.buildAndroidTVProject(c);
97
98
  break;
98
99
  default:
@@ -31,6 +31,7 @@ const configureFn = async (c, parentTask, originTask) => {
31
31
  await sdks_1.SDKWebos.configureWebOSProject(c);
32
32
  break;
33
33
  case constants_1.Platforms.ANDROIDTV:
34
+ case constants_1.Platforms.FIRETV:
34
35
  await sdks_1.SDKAndroidtv.configureAndroidTVProject(c);
35
36
  break;
36
37
  default:
@@ -28,6 +28,7 @@ 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:
33
34
  case constants_1.Platforms.SMARTCAST:
@@ -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,6 +19,7 @@ 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:
@@ -26,7 +26,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.generateWebpackProdConfig = exports.generateWebpackDevConfig = void 0;
27
27
  const webpack_base_1 = require("./webpack.base");
28
28
  const Extend = __importStar(require("./webpack.extend"));
29
- const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
30
29
  const composeCommonConfig = (config) => {
31
30
  const composedConfig = {
32
31
  ...config,
@@ -69,7 +68,6 @@ const makeCommonOutput = (config, C) => ({
69
68
  C.Plugins.harddisk,
70
69
  C.Plugins.css,
71
70
  C.Plugins.fileManager,
72
- new BundleAnalyzerPlugin(),
73
71
  ].filter(Boolean),
74
72
  resolve: {
75
73
  symlinks: true,
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.12-analyzer-test",
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": {
@@ -82,8 +82,7 @@
82
82
  "webpack": "5.72.0",
83
83
  "webpack-cli": "4.10.0",
84
84
  "webpack-dev-server": "4.9.0",
85
- "webpack-spritesmith": "1.1.0",
86
- "webpack-bundle-analyzer": "^4.9.0"
85
+ "webpack-spritesmith": "1.1.0"
87
86
  },
88
87
  "keywords": [],
89
88
  "author": "24i",
@@ -8,6 +8,7 @@
8
8
  "platforms": {
9
9
  "androidtv": {},
10
10
  "entone": {},
11
+ "firetv": {},
11
12
  "hbbtv": {},
12
13
  "kreatv": {},
13
14
  "saphi": {},