react-native-update-cli 1.45.4 → 1.45.6

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/lib/bundle.js CHANGED
@@ -168,6 +168,13 @@ async function runReactNativeBundleCommand({ bundleName, dev, entryFile, outputF
168
168
  }
169
169
  const bundleParams = await (0, _utils.checkPlugins)();
170
170
  const isSentry = bundleParams.sentry;
171
+ if (isSentry) {
172
+ if (platform === 'ios') {
173
+ process.env.SENTRY_PROPERTIES = 'ios/sentry.properties';
174
+ } else if (platform === 'android') {
175
+ process.env.SENTRY_PROPERTIES = 'android/sentry.properties';
176
+ }
177
+ }
171
178
  let bundleCommand = 'bundle';
172
179
  if (usingExpo) {
173
180
  bundleCommand = 'export:embed';
package/lib/locales/en.js CHANGED
@@ -87,7 +87,7 @@ This can reduce the risk of inconsistent dependencies and supply chain attacks.
87
87
  processingStringPool: 'Processing the string pool ...',
88
88
  publishUsage: 'Usage: pushy publish <ppk file> --platform ios|android|harmony',
89
89
  rnuVersionNotFound: 'react-native-update: Cannot get the version number. Please run the command in the project directory',
90
- rolloutConfigSet: 'Set {{rollout}}% rollout for version {{version}} on native version(s) {{versions}}',
90
+ rolloutConfigSet: 'Set {{rollout}}% rollout for OTA update {{version}} on native version(s) {{versions}}',
91
91
  rolloutRangeError: 'rollout must be an integer between 1-100',
92
92
  runningHermesc: 'Running hermesc: {{- command}} {{- args}}',
93
93
  sentryCliNotFound: 'Cannot find Sentry CLI tool, please make sure @sentry/cli is properly installed',
@@ -106,10 +106,10 @@ This can reduce the risk of inconsistent dependencies and supply chain attacks.
106
106
  usageUploadApk: 'Usage: cresc uploadApk <apk file>',
107
107
  usageUploadApp: 'Usage: cresc uploadApp <app file>',
108
108
  usageUploadIpa: 'Usage: cresc uploadIpa <ipa file>',
109
- versionBind: 'Bound version {{version}} to native version {{nativeVersion}} (id: {{id}})',
109
+ versionBind: 'Bound hot update {{version}} to native version {{nativeVersion}} (id: {{id}})',
110
110
  welcomeMessage: 'Welcome to Cresc hot update service, {{name}}.',
111
- versionNameQuestion: 'Enter version name:',
112
- versionDescriptionQuestion: 'Enter version description:',
111
+ versionNameQuestion: 'Enter OTA update name:',
112
+ versionDescriptionQuestion: 'Enter OTA update description:',
113
113
  versionMetaInfoQuestion: 'Enter custom meta info:',
114
114
  updateNativePackageQuestion: 'Bind to native package now?(Y/N)',
115
115
  unnamed: '(Unnamed)',
package/lib/locales/zh.js CHANGED
@@ -87,7 +87,7 @@ const _default = {
87
87
  processingStringPool: '正在处理字符串池...',
88
88
  publishUsage: '使用方法: pushy publish ppk后缀文件 --platform ios|android|harmony',
89
89
  rnuVersionNotFound: 'react-native-update: 无法获取版本号。请在项目目录中运行命令',
90
- rolloutConfigSet: '已在原生版本 {{versions}} 上设置灰度发布 {{rollout}}% 热更版本 {{version}}',
90
+ rolloutConfigSet: '已在原生版本 {{versions}} 上设置灰度发布 {{rollout}}% 热更包 {{version}}',
91
91
  rolloutRangeError: 'rollout 必须是 1-100 的整数',
92
92
  runningHermesc: '运行 hermesc:{{- command}} {{- args}}',
93
93
  sentryCliNotFound: '无法找到 Sentry CLI 工具,请确保已正确安装 @sentry/cli',
@@ -105,7 +105,7 @@ const _default = {
105
105
  usageUploadApk: '使用方法: pushy uploadApk apk后缀文件',
106
106
  usageUploadApp: '使用方法: pushy uploadApp app后缀文件',
107
107
  usageUploadIpa: '使用方法: pushy uploadIpa ipa后缀文件',
108
- versionBind: '已将热更版本 {{version}} 绑定到原生版本 {{nativeVersion}} (id: {{id}})',
108
+ versionBind: '已将热更包 {{version}} 绑定到原生版本 {{nativeVersion}} (id: {{id}})',
109
109
  welcomeMessage: '欢迎使用 pushy 热更新服务,{{name}}。',
110
110
  versionNameQuestion: '输入版本名称:',
111
111
  versionDescriptionQuestion: '输入版本描述:',
package/lib/versions.js CHANGED
@@ -269,7 +269,6 @@ const commands = {
269
269
  rollout,
270
270
  dryRun: options.dryRun
271
271
  });
272
- console.log((0, _i18n.t)('operationSuccess'));
273
272
  },
274
273
  updateVersionInfo: async ({ args, options })=>{
275
274
  const platform = await (0, _app.getPlatform)(options.platform);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-update-cli",
3
- "version": "1.45.4",
3
+ "version": "1.45.6",
4
4
  "description": "command line tool for react-native-update (remote updates for react native)",
5
5
  "main": "index.js",
6
6
  "bin": {
package/src/bundle.ts CHANGED
@@ -149,6 +149,14 @@ async function runReactNativeBundleCommand({
149
149
  const bundleParams = await checkPlugins();
150
150
  const isSentry = bundleParams.sentry;
151
151
 
152
+ if (isSentry) {
153
+ if (platform === 'ios') {
154
+ process.env.SENTRY_PROPERTIES = 'ios/sentry.properties';
155
+ } else if (platform === 'android') {
156
+ process.env.SENTRY_PROPERTIES = 'android/sentry.properties';
157
+ }
158
+ }
159
+
152
160
  let bundleCommand = 'bundle';
153
161
  if (usingExpo) {
154
162
  bundleCommand = 'export:embed';
package/src/locales/en.ts CHANGED
@@ -101,7 +101,7 @@ This can reduce the risk of inconsistent dependencies and supply chain attacks.
101
101
  rnuVersionNotFound:
102
102
  'react-native-update: Cannot get the version number. Please run the command in the project directory',
103
103
  rolloutConfigSet:
104
- 'Set {{rollout}}% rollout for version {{version}} on native version(s) {{versions}}',
104
+ 'Set {{rollout}}% rollout for OTA update {{version}} on native version(s) {{versions}}',
105
105
  rolloutRangeError: 'rollout must be an integer between 1-100',
106
106
  runningHermesc: 'Running hermesc: {{- command}} {{- args}}',
107
107
  sentryCliNotFound:
@@ -122,10 +122,10 @@ This can reduce the risk of inconsistent dependencies and supply chain attacks.
122
122
  usageUploadApp: 'Usage: cresc uploadApp <app file>',
123
123
  usageUploadIpa: 'Usage: cresc uploadIpa <ipa file>',
124
124
  versionBind:
125
- 'Bound version {{version}} to native version {{nativeVersion}} (id: {{id}})',
125
+ 'Bound hot update {{version}} to native version {{nativeVersion}} (id: {{id}})',
126
126
  welcomeMessage: 'Welcome to Cresc hot update service, {{name}}.',
127
- versionNameQuestion: 'Enter version name:',
128
- versionDescriptionQuestion: 'Enter version description:',
127
+ versionNameQuestion: 'Enter OTA update name:',
128
+ versionDescriptionQuestion: 'Enter OTA update description:',
129
129
  versionMetaInfoQuestion: 'Enter custom meta info:',
130
130
  updateNativePackageQuestion: 'Bind to native package now?(Y/N)',
131
131
  unnamed: '(Unnamed)',
package/src/locales/zh.ts CHANGED
@@ -96,7 +96,7 @@ export default {
96
96
  rnuVersionNotFound:
97
97
  'react-native-update: 无法获取版本号。请在项目目录中运行命令',
98
98
  rolloutConfigSet:
99
- '已在原生版本 {{versions}} 上设置灰度发布 {{rollout}}% 热更版本 {{version}}',
99
+ '已在原生版本 {{versions}} 上设置灰度发布 {{rollout}}% 热更包 {{version}}',
100
100
  rolloutRangeError: 'rollout 必须是 1-100 的整数',
101
101
  runningHermesc: '运行 hermesc:{{- command}} {{- args}}',
102
102
  sentryCliNotFound: '无法找到 Sentry CLI 工具,请确保已正确安装 @sentry/cli',
@@ -115,7 +115,7 @@ export default {
115
115
  usageUploadApp: '使用方法: pushy uploadApp app后缀文件',
116
116
  usageUploadIpa: '使用方法: pushy uploadIpa ipa后缀文件',
117
117
  versionBind:
118
- '已将热更版本 {{version}} 绑定到原生版本 {{nativeVersion}} (id: {{id}})',
118
+ '已将热更包 {{version}} 绑定到原生版本 {{nativeVersion}} (id: {{id}})',
119
119
  welcomeMessage: '欢迎使用 pushy 热更新服务,{{name}}。',
120
120
  versionNameQuestion: '输入版本名称:',
121
121
  versionDescriptionQuestion: '输入版本描述:',
package/src/package.ts CHANGED
@@ -2,7 +2,7 @@ import { get, getAllPackages, post, uploadFile } from './api';
2
2
  import { question, saveToLocal } from './utils';
3
3
  import { t } from './utils/i18n';
4
4
 
5
- import { checkPlatform, getPlatform, getSelectedApp } from './app';
5
+ import { getPlatform, getSelectedApp } from './app';
6
6
 
7
7
  import { getApkInfo, getIpaInfo, getAppInfo } from './utils';
8
8
  import Table from 'tty-table';
package/src/versions.ts CHANGED
@@ -307,7 +307,6 @@ export const commands = {
307
307
  rollout,
308
308
  dryRun: options.dryRun,
309
309
  });
310
- console.log(t('operationSuccess'));
311
310
  },
312
311
  updateVersionInfo: async ({
313
312
  args,