@gfean/react-native-bundle-drop 0.1.31 → 0.1.32
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/CLIENT_README.md +10 -7
- package/README.md +17 -7
- package/package.json +2 -2
package/CLIENT_README.md
CHANGED
|
@@ -4,7 +4,7 @@ This guide is for app teams integrating the `react-native-bundle-drop` module to
|
|
|
4
4
|
|
|
5
5
|
## 1) Install and link
|
|
6
6
|
```bash
|
|
7
|
-
yarn add react-native-bundle-drop
|
|
7
|
+
yarn add @gfean/react-native-bundle-drop
|
|
8
8
|
cd ios && pod install && cd ..
|
|
9
9
|
```
|
|
10
10
|
|
|
@@ -82,18 +82,21 @@ console.log(status);
|
|
|
82
82
|
- Endpoint `/bundle/latest` (or the `downloadUrl` returned) should serve the zip built by your upload script.
|
|
83
83
|
|
|
84
84
|
## 8) Bundling/Upload (CI/local)
|
|
85
|
+
- Login once:
|
|
86
|
+
```bash
|
|
87
|
+
npx bundle-drop login
|
|
88
|
+
```
|
|
85
89
|
- Bundle and upload (Android):
|
|
86
90
|
```bash
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
# or: --buildgradle-path=android/app/build.gradle
|
|
91
|
+
npx bundle-drop upload android --version 1.2.3 --channel General
|
|
92
|
+
# or: --buildgradle-path android/app/build.gradle
|
|
90
93
|
```
|
|
91
94
|
- Bundle and upload (iOS):
|
|
92
95
|
```bash
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
# or: --plist-file=ios/Info.plist
|
|
96
|
+
npx bundle-drop upload ios --plist-file ios/Info.plist --channel General
|
|
97
|
+
# or: --version 1.2.3
|
|
96
98
|
```
|
|
99
|
+
- Optional: `--release-notes "text"`; `--runtimeVersion x.y.z`.
|
|
97
100
|
- Requires `~/.bundle-drop/auth.json` from `bundle-drop login` and `bundle.drop.config.js` in project root (with `org.slug`, `project.slug`, `serverUrl`).
|
|
98
101
|
|
|
99
102
|
## 9) App entry hooks (JS bundle resolution)
|
package/README.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
This package powers OTA bundle download/upload and asset resolution for React Native.
|
|
4
4
|
|
|
5
|
+
## Install
|
|
6
|
+
```bash
|
|
7
|
+
yarn add @gfean/react-native-bundle-drop
|
|
8
|
+
cd ios && pod install && cd ..
|
|
9
|
+
```
|
|
10
|
+
|
|
5
11
|
## Prerequisites
|
|
6
12
|
- `bundle.drop.config.js` in your app root:
|
|
7
13
|
```js
|
|
@@ -39,18 +45,22 @@ Android extras:
|
|
|
39
45
|
## Config loading
|
|
40
46
|
- `src/loadConfig.ts` loads `bundle.drop.config.js` (fixed relative path) and honors `debugLocal` to force localhost.
|
|
41
47
|
|
|
42
|
-
## Bundling & Uploading (
|
|
43
|
-
-
|
|
48
|
+
## Bundling & Uploading (CLI)
|
|
49
|
+
- Login once:
|
|
44
50
|
```bash
|
|
45
|
-
|
|
51
|
+
npx bundle-drop login
|
|
46
52
|
```
|
|
47
53
|
- Upload (builds, zips, uploads, cleans up):
|
|
48
54
|
```bash
|
|
49
|
-
|
|
50
|
-
|
|
55
|
+
npx bundle-drop upload android --version 1.2.3 --channel General
|
|
56
|
+
npx bundle-drop upload ios --plist-file ios/Info.plist --channel General
|
|
51
57
|
```
|
|
52
|
-
|
|
53
|
-
-
|
|
58
|
+
Flags:
|
|
59
|
+
- `--version` (ios/android) or `--plist-file` (iOS) or `--buildgradle-path` (Android) to derive version.
|
|
60
|
+
- `--release-notes "<text>"` optional.
|
|
61
|
+
Requirements:
|
|
62
|
+
- `bundle.drop.config.js` with `serverUrl`, `org.slug`, `project.slug`.
|
|
63
|
+
- Auth token at `~/.bundle-drop/auth.json` from `bundle-drop login`.
|
|
54
64
|
|
|
55
65
|
## Typical usage
|
|
56
66
|
```ts
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gfean/react-native-bundle-drop",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.32",
|
|
4
4
|
"description": "react native ota by gFean",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
7
7
|
"author": " <> ()",
|
|
8
8
|
"license": "UNLICENSED",
|
|
9
|
-
"homepage": "
|
|
9
|
+
"homepage": "https://github.com/GFean/react-native-bundle-drop",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"clean": "rimraf lib dist",
|
|
12
12
|
"build": "tsc -p tsconfig.json && node scripts/make-cli-executable.js",
|