@applicaster/zapplicaster-cli 16.0.0-alpha.2320942372 → 16.0.0-alpha.2851031376

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/zapplicaster-cli",
3
- "version": "16.0.0-alpha.2320942372",
3
+ "version": "16.0.0-alpha.2851031376",
4
4
  "description": "CLI Tool for the zapp app and Quick Brick project",
5
5
  "main": "index.js",
6
6
  "publishConfig": {
@@ -28,10 +28,10 @@
28
28
  },
29
29
  "homepage": "https://github.com/applicaster/quickbrick#readme",
30
30
  "dependencies": {
31
- "@applicaster/zapp-react-dom-cli-template": "16.0.0-alpha.2320942372",
32
- "@applicaster/zapp-react-native-android-tv-cli-template": "16.0.0-alpha.2320942372",
33
- "@applicaster/zapp-react-native-cli-template": "16.0.0-alpha.2320942372",
34
- "@applicaster/zapp-react-native-tvos-cli-template": "16.0.0-alpha.2320942372",
31
+ "@applicaster/zapp-react-dom-cli-template": "16.0.0-alpha.2851031376",
32
+ "@applicaster/zapp-react-native-android-tv-cli-template": "16.0.0-alpha.2851031376",
33
+ "@applicaster/zapp-react-native-cli-template": "16.0.0-alpha.2851031376",
34
+ "@applicaster/zapp-react-native-tvos-cli-template": "16.0.0-alpha.2851031376",
35
35
  "axios": "^0.28.0",
36
36
  "camelize": "^1.0.0",
37
37
  "chalk": "^2.3.2",
@@ -1,5 +1,10 @@
1
1
  const R = require("ramda");
2
2
  const axios = require("axios");
3
+
4
+ const {
5
+ platformIsTV,
6
+ } = require("@applicaster/zapp-react-native-utils/manifestUtils/platformIsTV");
7
+
3
8
  const { getAppVersionParams } = require("../../zapp");
4
9
  const { resolveAppTemplate } = require("../../templates");
5
10
  const { isZappReactNativeRepo } = require("../../settings");
@@ -11,6 +16,7 @@ const store_map = {
11
16
  samsung_app_store: "samsung_tv",
12
17
  lg_content_store: "lg_tv",
13
18
  vizio_app_store: "vizio",
19
+ vidaa_app_store: "vidaa",
14
20
  };
15
21
 
16
22
  /**
@@ -21,7 +27,7 @@ const store_map = {
21
27
  */
22
28
  async function retrievesSpinnerColor(url, platform) {
23
29
  try {
24
- if (!R.contains(platform, ["samsung_tv", "lg_tv", "vizio"])) {
30
+ if (!platformIsTV(platform)) {
25
31
  return;
26
32
  }
27
33
 
@@ -133,6 +133,12 @@ const defaultFonts = {
133
133
  "Miso-Bold.ttf",
134
134
  ...commonFonts,
135
135
  ],
136
+ vidaa: [
137
+ "Miso-Light.ttf",
138
+ "Miso-Regular.ttf",
139
+ "Miso-Bold.ttf",
140
+ ...commonFonts,
141
+ ],
136
142
  vizio: [
137
143
  "Miso-Light.ttf",
138
144
  "Miso-Regular.ttf",
@@ -49,6 +49,7 @@ function renderManifest({
49
49
 
50
50
  const validPlatforms = [
51
51
  "lg_tv",
52
+ "vidaa",
52
53
  "samsung_tv",
53
54
  "vizio",
54
55
  "android_tv_for_quickbrick",
@@ -32,4 +32,4 @@ exports[`resolveAppTemplate retrieves the template from the provided path if pro
32
32
  }
33
33
  `;
34
34
 
35
- exports[`resolveAppTemplate throws if resolving a template for an unknown platform 1`] = `"could not find template for foo - available templates: ios,android,samsung_tv,lg_tv,vizio,apple_tv,android_tv,amazon"`;
35
+ exports[`resolveAppTemplate throws if resolving a template for an unknown platform 1`] = `"could not find template for foo - available templates: ios,android,samsung_tv,lg_tv,vidaa,vizio,apple_tv,android_tv,amazon"`;
@@ -27,6 +27,7 @@ const templatesMap = {
27
27
  android: "@applicaster/zapp-react-native-cli-template",
28
28
  samsung_tv: "@applicaster/zapp-react-dom-cli-template",
29
29
  lg_tv: "@applicaster/zapp-react-dom-cli-template",
30
+ vidaa: "@applicaster/zapp-react-dom-cli-template",
30
31
  vizio: "@applicaster/zapp-react-dom-cli-template",
31
32
  apple_tv: "@applicaster/zapp-react-native-tvos-cli-template",
32
33
  android_tv: "@applicaster/zapp-react-native-android-tv-cli-template",