react-native-ota-hot-update 2.1.8 → 2.1.9

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.8",
3
+ "version": "2.1.9",
4
4
  "description": "Hot update for react native",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/commonjs/index.js",
@@ -6,7 +6,7 @@ const withAndroidAction = (config) => {
6
6
  config.modResults.contents = config.modResults.contents.replace(/override val isHermesEnabled: Boolean = BuildConfig.IS_HERMES_ENABLED/g, `
7
7
  override val isHermesEnabled: Boolean = BuildConfig.IS_HERMES_ENABLED
8
8
 
9
- override fun getJSBundleFile(): String = OtaHotUpdate.bundleJS`);
9
+ override fun getJSBundleFile(): String = OtaHotUpdate.bundleJS(this@MainApplication)`);
10
10
  config.modResults.contents = config.modResults.contents.replace(/import expo.modules.ReactNativeHostWrapper/g, `
11
11
  import expo.modules.ReactNativeHostWrapper
12
12
  import com.otahotupdate.OtaHotUpdate`);