react-native-ota-hot-update 2.1.12 → 2.1.13

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": "react-native-ota-hot-update",
3
- "version": "2.1.12",
3
+ "version": "2.1.13",
4
4
  "description": "Hot update for react native",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/commonjs/index.js",
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
+ Object.defineProperty(exports, '__esModule', { value: true });
2
3
 
3
- const { withMainApplication, withAppDelegate } = require('expo/config-plugins');
4
+ const config_plugins_1 = require('expo/config-plugins');
4
5
 
5
- /** @type {import('expo/config-plugins').ConfigPlugin} */
6
6
  const withAndroidAction = (config) => {
7
- return withMainApplication(config, (config) => {
7
+ return (0, config_plugins_1.withMainApplication)(config, (config) => {
8
8
  config.modResults.contents = config.modResults.contents.replace(
9
9
  /override val isHermesEnabled: Boolean = BuildConfig.IS_HERMES_ENABLED/g,
10
10
  `
@@ -22,9 +22,8 @@ import com.otahotupdate.OtaHotUpdate`
22
22
  });
23
23
  };
24
24
 
25
- /** @type {import('expo/config-plugins').ConfigPlugin} */
26
25
  const withIosAction = (config) => {
27
- return withAppDelegate(config, (config) => {
26
+ return (0, config_plugins_1.withAppDelegate)(config, (config) => {
28
27
  config.modResults.contents = config.modResults.contents.replace(
29
28
  /#import "AppDelegate.h"/g,
30
29
  `#import "AppDelegate.h"
@@ -38,7 +37,6 @@ const withIosAction = (config) => {
38
37
  });
39
38
  };
40
39
 
41
- /** @type {import('expo/config-plugins').ConfigPlugin} */
42
40
  const withUpdatePlugin = (config) => {
43
41
  config = withAndroidAction(config);
44
42
  config = withIosAction(config);