@applicaster/zapplicaster-cli 16.0.0-alpha.2295427024 → 16.0.0-alpha.2480030155

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.2295427024",
3
+ "version": "16.0.0-alpha.2480030155",
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.2295427024",
32
- "@applicaster/zapp-react-native-android-tv-cli-template": "16.0.0-alpha.2295427024",
33
- "@applicaster/zapp-react-native-cli-template": "16.0.0-alpha.2295427024",
34
- "@applicaster/zapp-react-native-tvos-cli-template": "16.0.0-alpha.2295427024",
31
+ "@applicaster/zapp-react-dom-cli-template": "16.0.0-alpha.2480030155",
32
+ "@applicaster/zapp-react-native-android-tv-cli-template": "16.0.0-alpha.2480030155",
33
+ "@applicaster/zapp-react-native-cli-template": "16.0.0-alpha.2480030155",
34
+ "@applicaster/zapp-react-native-tvos-cli-template": "16.0.0-alpha.2480030155",
35
35
  "axios": "^0.28.0",
36
36
  "camelize": "^1.0.0",
37
37
  "chalk": "^2.3.2",
@@ -193,6 +193,15 @@ async function appBootstrapper(configuration) {
193
193
  .map(toDayJSLocaleMap)
194
194
  .filter((v) => v !== "en");
195
195
 
196
+ if (
197
+ configuration.buildParams.device_target === "vidaa" &&
198
+ !configuration.buildParams.vidaa_client_partner_id
199
+ ) {
200
+ logger.warn(
201
+ "In order to use the VIDAA SDK you will need to set vidaa_client_partner_id"
202
+ );
203
+ }
204
+
196
205
  configuration.excludedNodeModules = getExcludedNodeModules(plugins);
197
206
  const { filesToRender } = template.files;
198
207
 
@@ -248,9 +257,8 @@ function checkAllPluginsSatisfiesQuickBrickVersion({
248
257
  for (let i = 0; i < plugins.length; i++) {
249
258
  const plugin = plugins[i];
250
259
 
251
- const packagePath = `${process.cwd()}/node_modules/${
252
- plugin.packageName
253
- }/package.json`;
260
+ const packagePath = `${process.cwd()}/node_modules/${plugin.packageName
261
+ }/package.json`;
254
262
 
255
263
  if (!fs.existsSync(packagePath)) {
256
264
  return;
@@ -9,6 +9,22 @@ const { getAppVersionParams } = require("../../zapp");
9
9
  const { resolveAppTemplate } = require("../../templates");
10
10
  const { isZappReactNativeRepo } = require("../../settings");
11
11
 
12
+ function resolveVidaaClientPartnerId(buildParams = {}) {
13
+ const fromBuildParams = buildParams.vidaa_client_partner_id;
14
+
15
+ if (typeof fromBuildParams === "string" && fromBuildParams.trim()) {
16
+ return fromBuildParams.trim();
17
+ }
18
+
19
+ const fromEnv = process.env.vidaa_client_partner_id;
20
+
21
+ if (typeof fromEnv === "string" && fromEnv.trim()) {
22
+ return fromEnv.trim();
23
+ }
24
+
25
+ return undefined;
26
+ }
27
+
12
28
  const store_map = {
13
29
  amazon: "amazon",
14
30
  google_play: "android",
@@ -78,6 +94,8 @@ async function configurator({ cliArgs, cliOptions }) {
78
94
 
79
95
  const buildParams = await getAppVersionParams(appVersionId);
80
96
 
97
+ buildParams.vidaa_client_partner_id = resolveVidaaClientPartnerId(buildParams);
98
+
81
99
  delete buildParams.styles_url; // deprecated
82
100
 
83
101
  const platform = resolvePlatform(buildParams.assets_url);