@applicaster/zapplicaster-cli 16.0.0-rc.64 → 16.0.0-rc.66

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-rc.64",
3
+ "version": "16.0.0-rc.66",
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-rc.64",
32
- "@applicaster/zapp-react-native-android-tv-cli-template": "16.0.0-rc.64",
33
- "@applicaster/zapp-react-native-cli-template": "16.0.0-rc.64",
34
- "@applicaster/zapp-react-native-tvos-cli-template": "16.0.0-rc.64",
31
+ "@applicaster/zapp-react-dom-cli-template": "16.0.0-rc.66",
32
+ "@applicaster/zapp-react-native-android-tv-cli-template": "16.0.0-rc.66",
33
+ "@applicaster/zapp-react-native-cli-template": "16.0.0-rc.66",
34
+ "@applicaster/zapp-react-native-tvos-cli-template": "16.0.0-rc.66",
35
35
  "axios": "^0.28.0",
36
36
  "camelize": "^1.0.0",
37
37
  "chalk": "^2.3.2",
@@ -8,6 +8,7 @@ exports[`configurator builds the configuration object 1`] = `
8
8
  "appVersionId": "APP_VERSION_ID",
9
9
  "assets_url": "https://assets-secure.applicaster.com/zapp/accounts/5ae06cef8fba0f00084bd3c6/apps/com.quickbricktest/apple_store/1.8/styles/assets_styles.json",
10
10
  "otherParam": "param",
11
+ "vidaa_client_partner_id": undefined,
11
12
  },
12
13
  "destinationPath": "development-app",
13
14
  "deviceTarget": undefined,
@@ -32,6 +33,7 @@ exports[`configurator sets a null path if none is provided and the cli doesn't r
32
33
  "appVersionId": "APP_VERSION_ID",
33
34
  "assets_url": "https://assets-secure.applicaster.com/zapp/accounts/5ae06cef8fba0f00084bd3c6/apps/com.quickbricktest/apple_store/1.8/styles/assets_styles.json",
34
35
  "otherParam": "param",
36
+ "vidaa_client_partner_id": undefined,
35
37
  },
36
38
  "destinationPath": null,
37
39
  "deviceTarget": undefined,
@@ -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
 
@@ -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,9 @@ async function configurator({ cliArgs, cliOptions }) {
78
94
 
79
95
  const buildParams = await getAppVersionParams(appVersionId);
80
96
 
97
+ buildParams.vidaa_client_partner_id =
98
+ resolveVidaaClientPartnerId(buildParams);
99
+
81
100
  delete buildParams.styles_url; // deprecated
82
101
 
83
102
  const platform = resolvePlatform(buildParams.assets_url);