react-native-ota-hot-update 2.0.9 → 2.1.0

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
@@ -58,7 +58,7 @@ From react native 0.77, AppDelegate changed to swift file, so the configuration
58
58
  - Select Header File under the iOS section and click Next.
59
59
  - Name it something like `YourProjectName-Bridging-Header.h` and save it in your project directory.
60
60
  - In your project's Build Settings: Search for `Objective-C Bridging Header`.
61
- Set its value to the relative path of your bridging header file, e.g., YourProjectName/YourProjectName-Bridging-Header.h.
61
+ Set its value to the relative path of your bridging header file, e.g., YourProjectName/YourProjectName-Bridging-Header.h, remember need to create header file inside folder `YourProjectName`
62
62
  2. Open `YourProjectName-Bridging-Header.h` and add this line:
63
63
 
64
64
  `#import "OtaHotUpdate.h"`
@@ -13,5 +13,5 @@ abstract class OtaHotUpdateSpec internal constructor(context: ReactApplicationCo
13
13
  abstract fun getCurrentVersion(a: Double, promise: Promise)
14
14
  abstract fun setCurrentVersion(version: String?, promise: Promise)
15
15
  abstract fun setExactBundlePath(path: String?, promise: Promise)
16
- abstract fun rollbackToPreviousBundle()
16
+ abstract fun rollbackToPreviousBundle(a: Double, promise: Promise)
17
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-ota-hot-update",
3
- "version": "2.0.9",
3
+ "version": "2.1.0",
4
4
  "description": "Hot update for react native",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/commonjs/index.js",