@24i/smartapps-bigscreen-rnv-build-engine 0.17.20 → 0.17.21-alpha.2697

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
@@ -228,7 +228,7 @@ If any platform needs any **platform-specific files**, those can be found also i
228
228
  ## How to set up new project with SmartApps BIGscreen build engine
229
229
  There are a few things that are not included in the package and need to be added manually.
230
230
  For example `renative.json` config file and `appConfigs` folder (both related to ReNative)
231
- and `.travis.yml`config file (related to Travis CI).
231
+ and `.github/workflows/*.yml` files (related to GitHub Actions CI).
232
232
 
233
233
  > To **start a new project** with usage of our build process,
234
234
  > please use [SmartApps BIGscreen Template repository](https://github.com/24i/smartapps-bigscreen-template),
@@ -31,7 +31,7 @@ const path_1 = require("path");
31
31
  const resolvers_1 = require("../../resolvers");
32
32
  const urlsMarkdown_1 = require("./urlsMarkdown");
33
33
  const token = process.env.GITHUB_TOKEN;
34
- const targetCommit = process.env.TRAVIS_COMMIT;
34
+ const targetCommit = process.env.CI_COMMIT_SHA || process.env.TRAVIS_COMMIT;
35
35
  const githubContentType = 'application/vnd.github.v3+json';
36
36
  const githubReleaseNotesPath = 'RELEASE_NOTES_GITHUB.md';
37
37
  const handleResponseErrors = (response) => {
@@ -72,7 +72,7 @@ const createRelease = (c) => {
72
72
  const { packageVersion, git } = c.buildConfig.common;
73
73
  const versionLabel = `v${packageVersion}`;
74
74
  (0, assert_1.ok)(token, 'process.env.GITHUB_TOKEN is not set!');
75
- (0, assert_1.ok)(targetCommit, 'process.env.TRAVIS_COMMIT is not set!');
75
+ (0, assert_1.ok)(targetCommit, 'process.env.CI_COMMIT_SHA is not set!');
76
76
  (0, assert_1.ok)(git.owner, 'Missing value for rnv config prop: common.git.owner');
77
77
  (0, assert_1.ok)(git.repo, 'Missing value for rnv config prop: common.git.repo');
78
78
  (0, assert_1.ok)(packageVersion);
@@ -37,15 +37,15 @@ const makePackagesPayload = (c) => {
37
37
  .flat();
38
38
  };
39
39
  const makeHeaderPayload = (c, title, buttons) => {
40
- const { travisBuild, gitHubRelease } = buttons || {};
40
+ const { gitHubActionsBuild, gitHubRelease } = buttons || {};
41
41
  const { owner, repo } = c.buildConfig.common.git || {};
42
42
  const version = getVersion(c);
43
43
  const envName = (0, resolvers_1.resolveBuildEnvName)(c.runtime.scheme);
44
44
  const buttonsData = [];
45
- if (travisBuild) {
45
+ if (gitHubActionsBuild) {
46
46
  buttonsData.push({
47
- text: 'View Travis Build Log',
48
- url: process.env.TRAVIS_BUILD_WEB_URL || `https://travis-ci.com/github/${owner}/${repo}/branches`,
47
+ text: 'View GitHub Actions Build Log',
48
+ url: process.env.CI_BUILD_WEB_URL || `https://github.com/${owner}/${repo}/actions/`,
49
49
  });
50
50
  }
51
51
  if (gitHubRelease) {
@@ -70,20 +70,20 @@ const makePayload = (c, title, buttons) => ({
70
70
  });
71
71
  const makeDevelopmentPayload = (c) => {
72
72
  const title = `There are new *development* builds for *${getCommonAppName(c)}* app!`;
73
- const buttons = { travisBuild: true };
73
+ const buttons = { gitHubActionsBuild: true };
74
74
  return makePayload(c, title, buttons);
75
75
  };
76
76
  exports.makeDevelopmentPayload = makeDevelopmentPayload;
77
77
  const makeReleaseCandidatePayload = (c) => {
78
78
  const title = `There are new *release candidate* builds for *${getCommonAppName(c)}* app!`;
79
- const buttons = { travisBuild: true };
79
+ const buttons = { gitHubActionsBuild: true };
80
80
  return makePayload(c, title, buttons);
81
81
  };
82
82
  exports.makeReleaseCandidatePayload = makeReleaseCandidatePayload;
83
83
  const makeDistributionPayload = (c) => {
84
84
  const title = `There are new *distribution* builds for *${getCommonAppName(c)}* app!`;
85
85
  const isGitHubRelease = c.runtime.scheme === buildSchemes_1.BuildSchemes.RELEASE_PROD_DIST;
86
- const buttons = { travisBuild: true, gitHubRelease: isGitHubRelease };
86
+ const buttons = { gitHubActionsBuild: true, gitHubRelease: isGitHubRelease };
87
87
  return makePayload(c, title, buttons);
88
88
  };
89
89
  exports.makeDistributionPayload = makeDistributionPayload;
@@ -27,8 +27,8 @@ const getSlackPayload = (params) => {
27
27
  ]),
28
28
  slackBlockKitBuilder_1.Actions.buttons([
29
29
  {
30
- url: process.env.TRAVIS_BUILD_WEB_URL || 'https://travis-ci.com/',
31
- text: 'View Travis Build Log',
30
+ url: process.env.CI_BUILD_WEB_URL || 'https://github.com/',
31
+ text: 'View GitHub Actions Build Log',
32
32
  },
33
33
  ...(logsZipUrl ? [{
34
34
  text: 'View Suitest Log files',
@@ -103,7 +103,7 @@ const configureSigning = (c) => {
103
103
  const platformKey = c.platform === constants_1.Platforms.FIRETV ? 'FIRETV' : 'ANDROIDTV';
104
104
  const getValue = (envKey, configKey) => {
105
105
  const [key1, key2] = [platformKey, 'ANDROIDTV'].map((platform) => `${platform}_${envKey}`);
106
- return process.env[key1] ?? process.env[key2] ?? getConfigProp(c, c.platform, configKey);
106
+ return process.env[key1] || process.env[key2] || getConfigProp(c, c.platform, configKey);
107
107
  };
108
108
  const storeFile = getValue('STORE_FILE', 'storeFile');
109
109
  const keyAlias = getValue('KEY_ALIAS', 'keyAlias');
@@ -200,7 +200,7 @@ const configureEntryUrl = (c) => {
200
200
  const buildGradleFileName = 'build.gradle';
201
201
  const buildGradleFilePath = path.join(rnv_1.Common.getPlatformProjectDir(c), 'app', buildGradleFileName);
202
202
  const entryUrl = getHostedAppEntryUrl(c);
203
- const theoLicense = process.env['THEO_LICENSE'] ??
203
+ const theoLicense = process.env['THEO_LICENSE'] ||
204
204
  rnv_1.Common.getConfigProp(c, c.platform, 'theoLicense', '');
205
205
  const injects = [{
206
206
  pattern: '{{APP_URL}}',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@24i/smartapps-bigscreen-rnv-build-engine",
3
- "version": "0.17.20",
3
+ "version": "0.17.21-alpha.2697",
4
4
  "description": "Package with build engine for SmartApps BIGscreen projects...",
5
5
  "main": "dist/src/index.js",
6
6
  "scripts": {