@vanikya/ota-react-native 0.1.0 → 0.1.1
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 +5 -5
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Works with both **Expo** and **bare React Native** apps.
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
npm install @ota-
|
|
10
|
+
npm install @vanikya/ota-react-native
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
### For Expo apps
|
|
@@ -31,7 +31,7 @@ cd ios && pod install
|
|
|
31
31
|
### 1. Wrap your app with OTAProvider
|
|
32
32
|
|
|
33
33
|
```tsx
|
|
34
|
-
import { OTAProvider } from '@ota-
|
|
34
|
+
import { OTAProvider } from '@vanikya/ota-react-native';
|
|
35
35
|
|
|
36
36
|
export default function App() {
|
|
37
37
|
return (
|
|
@@ -53,7 +53,7 @@ export default function App() {
|
|
|
53
53
|
### 2. Use the update hook
|
|
54
54
|
|
|
55
55
|
```tsx
|
|
56
|
-
import { useOTAUpdate } from '@ota-
|
|
56
|
+
import { useOTAUpdate } from '@vanikya/ota-react-native';
|
|
57
57
|
|
|
58
58
|
function UpdateChecker() {
|
|
59
59
|
const {
|
|
@@ -142,7 +142,7 @@ interface UpdateInfo {
|
|
|
142
142
|
For more control over the update process:
|
|
143
143
|
|
|
144
144
|
```tsx
|
|
145
|
-
import { useOTAUpdate } from '@ota-
|
|
145
|
+
import { useOTAUpdate } from '@vanikya/ota-react-native';
|
|
146
146
|
|
|
147
147
|
function UpdateManager() {
|
|
148
148
|
const { checkForUpdate, downloadUpdate, applyUpdate, availableUpdate } = useOTAUpdate();
|
|
@@ -205,7 +205,7 @@ function UpdateChecker() {
|
|
|
205
205
|
|
|
206
206
|
## Server Setup
|
|
207
207
|
|
|
208
|
-
This SDK requires a backend server. See the [main repository](https://github.com/
|
|
208
|
+
This SDK requires a backend server. See the [main repository](https://github.com/vanikya/ota-update) for:
|
|
209
209
|
- Server deployment (Cloudflare Workers)
|
|
210
210
|
- CLI tool for publishing updates
|
|
211
211
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vanikya/ota-react-native",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "OTA Update SDK for React Native apps - self-hosted CodePush/EAS Updates alternative",
|
|
5
5
|
"main": "lib/commonjs/index.js",
|
|
6
6
|
"module": "lib/module/index.js",
|
|
@@ -35,12 +35,12 @@
|
|
|
35
35
|
"author": "",
|
|
36
36
|
"repository": {
|
|
37
37
|
"type": "git",
|
|
38
|
-
"url": "git+https://github.com/
|
|
38
|
+
"url": "git+https://github.com/vanikya/ota-update.git",
|
|
39
39
|
"directory": "packages/react-native"
|
|
40
40
|
},
|
|
41
|
-
"homepage": "https://github.com/
|
|
41
|
+
"homepage": "https://github.com/vanikya/ota-update#readme",
|
|
42
42
|
"bugs": {
|
|
43
|
-
"url": "https://github.com/
|
|
43
|
+
"url": "https://github.com/vanikya/ota-update/issues"
|
|
44
44
|
},
|
|
45
45
|
"publishConfig": {
|
|
46
46
|
"access": "public"
|