@hot-updater/react-native 0.20.1 → 0.20.3

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": "@hot-updater/react-native",
3
- "version": "0.20.1",
3
+ "version": "0.20.3",
4
4
  "description": "React Native OTA solution for self-hosted",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -119,13 +119,13 @@
119
119
  "react-native": "0.79.1",
120
120
  "react-native-builder-bob": "^0.40.10",
121
121
  "typescript": "^5.8.3",
122
- "hot-updater": "0.20.1"
122
+ "hot-updater": "0.20.3"
123
123
  },
124
124
  "dependencies": {
125
125
  "use-sync-external-store": "1.5.0",
126
- "@hot-updater/core": "0.20.1",
127
- "@hot-updater/plugin-core": "0.20.1",
128
- "@hot-updater/js": "0.20.1"
126
+ "@hot-updater/core": "0.20.3",
127
+ "@hot-updater/js": "0.20.3",
128
+ "@hot-updater/plugin-core": "0.20.3"
129
129
  },
130
130
  "scripts": {
131
131
  "build": "bob build && tsc -p plugin/tsconfig.json",
@@ -208,7 +208,7 @@ var withHotUpdaterConfigAsync = function (props) { return function (config) {
208
208
  var modifiedConfig = config;
209
209
  // === iOS: Add channel and fingerprint to Info.plist ===
210
210
  modifiedConfig = (0, config_plugins_1.withInfoPlist)(modifiedConfig, function (cfg) { return __awaiter(void 0, void 0, void 0, function () {
211
- var fingerprintHash, config, ios;
211
+ var fingerprintHash, config, fingerprint;
212
212
  return __generator(this, function (_a) {
213
213
  switch (_a.label) {
214
214
  case 0:
@@ -219,8 +219,8 @@ var withHotUpdaterConfigAsync = function (props) { return function (config) {
219
219
  if (!(config.updateStrategy !== "appVersion")) return [3 /*break*/, 3];
220
220
  return [4 /*yield*/, getFingerprint()];
221
221
  case 2:
222
- ios = (_a.sent()).ios;
223
- fingerprintHash = ios.hash;
222
+ fingerprint = (_a.sent()).fingerprint;
223
+ fingerprintHash = fingerprint.ios.hash;
224
224
  _a.label = 3;
225
225
  case 3:
226
226
  cfg.modResults.HOT_UPDATER_CHANNEL = channel;
@@ -233,7 +233,7 @@ var withHotUpdaterConfigAsync = function (props) { return function (config) {
233
233
  }); });
234
234
  // === Android: Add channel and fingerprint to strings.xml ===
235
235
  modifiedConfig = (0, config_plugins_1.withStringsXml)(modifiedConfig, function (cfg) { return __awaiter(void 0, void 0, void 0, function () {
236
- var fingerprintHash, config, android;
236
+ var fingerprintHash, config, fingerprint;
237
237
  return __generator(this, function (_a) {
238
238
  switch (_a.label) {
239
239
  case 0:
@@ -244,8 +244,8 @@ var withHotUpdaterConfigAsync = function (props) { return function (config) {
244
244
  if (!(config.updateStrategy !== "appVersion")) return [3 /*break*/, 3];
245
245
  return [4 /*yield*/, getFingerprint()];
246
246
  case 2:
247
- android = (_a.sent()).android;
248
- fingerprintHash = android.hash;
247
+ fingerprint = (_a.sent()).fingerprint;
248
+ fingerprintHash = fingerprint.android.hash;
249
249
  _a.label = 3;
250
250
  case 3:
251
251
  // Ensure resources object exists