@24i/smartapps-bigscreen-rnv-build-engine 0.18.2-beta.0 → 0.18.2-test.0

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.
@@ -35,7 +35,6 @@ const rnv_1 = require("rnv");
35
35
  const sdk_webpack_1 = require("@rnv/sdk-webpack");
36
36
  const resolvers_1 = require("../../resolvers");
37
37
  const copyEnvironmentFolder_1 = require("../../utils/copyEnvironmentFolder");
38
- const resolveBuildEnvType_1 = require("../../resolvers/resolveBuildEnvType");
39
38
  const constants_1 = require("../../constants");
40
39
  const sdk_webpack_2 = require("../sdk-webpack");
41
40
  const getHostedAppUrl = (c) => {
@@ -93,20 +92,7 @@ const copyAppIcon = (c) => {
93
92
  if (!fs.existsSync(destDir)) {
94
93
  fs.mkdirSync(destDir, { recursive: true });
95
94
  }
96
- const envType = (0, resolveBuildEnvType_1.resolveBuildEnvType)(c.runtime.scheme);
97
- const envHierarchy = ['dev', 'staging', 'prod'];
98
- const envIndex = envHierarchy.indexOf(envType);
99
- const srcIconPath = envHierarchy
100
- .slice(envIndex)
101
- .map((env) => path.join(destDir, `_${env}`, 'app_icon.png'))
102
- .find((candidate) => fs.existsSync(candidate));
103
- if (srcIconPath) {
104
- fs.copyFileSync(srcIconPath, destIconPath);
105
- rnv_1.Logger.logInfo(`App icon copied from: ${srcIconPath}`);
106
- }
107
- else {
108
- rnv_1.Logger.logDebug(`No environment-specific app icon found, skipping copy.`);
109
- }
95
+ rnv_1.Logger.logDebug(`App icon destination: ${destIconPath}`);
110
96
  };
111
97
  const installDependencies = (c) => {
112
98
  rnv_1.Logger.logTask('installDependencies');
@@ -127,8 +113,6 @@ const buildVegaOSProject = async (c) => {
127
113
  const projectParentDir = path.join(projectDir, '..');
128
114
  const outputDir = path.join(projectParentDir, 'output');
129
115
  const buildType = c.runtime.scheme === constants_1.BuildSchemes.DEBUG ? 'Debug' : 'Release';
130
- const appVersion = rnv_1.Common.getAppVersion(c, c.platform) || '0.0.1';
131
- const versionCode = rnv_1.Common.getConfigProp(c, c.platform, 'versionCode', '1');
132
116
  try {
133
117
  const watchListOutput = (0, child_process_1.execSync)('watchman watch-list', { stdio: 'pipe' }).toString();
134
118
  const watchList = JSON.parse(watchListOutput);
@@ -140,7 +124,7 @@ const buildVegaOSProject = async (c) => {
140
124
  catch {
141
125
  }
142
126
  rnv_1.Logger.logInfo(`Building VegaOS project (${buildType})...`);
143
- const buildCmd = `npx react-native build-vega --build-type ${buildType} --build-version ${appVersion} --build-number ${versionCode}`;
127
+ const buildCmd = `npx react-native build-vega --build-type ${buildType}`;
144
128
  (0, child_process_1.execSync)(buildCmd, { cwd: projectDir, stdio: 'inherit' });
145
129
  if (!fs.existsSync(outputDir)) {
146
130
  fs.mkdirSync(outputDir, { recursive: true });
@@ -190,12 +174,11 @@ exports.configureVegaOSProject = configureVegaOSProject;
190
174
  const handleVegaOSSdk = async (_c) => {
191
175
  rnv_1.Logger.logTask('handleVegaOSSdk');
192
176
  try {
193
- (0, child_process_1.execSync)('kepler --version', { stdio: 'pipe' });
194
- rnv_1.Logger.logInfo('Kepler CLI is available.');
177
+ (0, child_process_1.execSync)('npm --version', { stdio: 'pipe' });
178
+ rnv_1.Logger.logInfo('VegaOS SDK: npm is available. Kepler CLI will be installed via npm install during project configuration.');
195
179
  }
196
180
  catch {
197
- throw new Error('Kepler CLI not found. Please install the Kepler SDK before building VegaOS projects.\n'
198
- + 'See: https://developer.amazon.com/docs/vega/0.21/install-vega-sdk.html');
181
+ throw new Error('VegaOS SDK: npm not found. Please install Node.js and npm to build VegaOS projects.');
199
182
  }
200
183
  };
201
184
  exports.handleVegaOSSdk = handleVegaOSSdk;
@@ -49,20 +49,6 @@ id = "com.amazon.audio.control"
49
49
  [[wants.service]]
50
50
  id = "com.amazon.audio.system"
51
51
 
52
- [[wants.service]]
53
- id = "com.amazon.admanager.service.main"
54
-
55
- [[wants.service]]
56
- id = "com.amazon.iap.core.service"
57
-
58
- [[wants.module]]
59
- id = "/com.amazon.iap.core@IIAPCoreUI"
60
-
61
- [needs]
62
-
63
- [[needs.module]]
64
- id = "/com.amazon.kepler.appstore.iap.purchase.core@IAppstoreIAPPurchaseCoreService"
65
-
66
52
  [offers]
67
53
 
68
54
  [[offers.service]]