cobrowse-sdk-react-native 2.12.0 → 2.14.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/.github/workflows/lint.yaml +20 -0
- package/.github/workflows/release.yml +23 -0
- package/DEPLOYMENT.md +7 -0
- package/README.md +6 -33
- package/android/src/main/java/io/cobrowse/reactnative/CobrowseIOCommonDelegates.java +14 -0
- package/android/src/main/java/io/cobrowse/reactnative/CobrowseIOModule.java +210 -346
- package/android/src/main/java/io/cobrowse/reactnative/CommonDelegates.java +196 -0
- package/android/src/main/java/io/cobrowse/reactnative/Conversion.java +73 -42
- package/android/src/main/java/io/cobrowse/reactnative/DynamicSessionControlInvocationHandler.java +31 -0
- package/cobrowse-sdk-react-native.podspec +2 -2
- package/ios/CBIOBroadcastPickerView.h +5 -0
- package/ios/CBIOBroadcastPickerView.m +52 -0
- package/ios/CBIORCTUtil.h +1 -0
- package/ios/CBIORCTUtil.m +10 -0
- package/ios/CBIOSession+Bridging.m +1 -0
- package/ios/RCTCobrowseIO.m +18 -3
- package/js/CBIOBroadcastPickerView.js +11 -0
- package/js/CobrowseIO.js +18 -1
- package/js/CobrowseView.js +1 -0
- package/js/Session.js +4 -0
- package/js/Unredacted.js +2 -2
- package/js/index.js +2 -0
- package/js/useSession.js +33 -0
- package/package.json +10 -9
- package/ts/CBIOBroadcastPickerView.d.ts +8 -0
- package/ts/Redacted.d.ts +3 -3
- package/ts/Session.d.ts +3 -1
- package/ts/Unredacted.d.ts +2 -2
- package/ts/index.d.ts +1 -0
- package/ts/useSession.d.ts +3 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
name: Lint
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
pull_request:
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
build:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
steps:
|
|
11
|
+
- uses: actions/checkout@v3
|
|
12
|
+
|
|
13
|
+
- uses: actions/setup-node@v3
|
|
14
|
+
name: Install NodeJS
|
|
15
|
+
with:
|
|
16
|
+
node-version: '18'
|
|
17
|
+
|
|
18
|
+
- run: npm ci
|
|
19
|
+
|
|
20
|
+
- run: npm run lint
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- v*.*.*
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
deploy:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v3
|
|
13
|
+
|
|
14
|
+
- uses: actions/setup-node@v3
|
|
15
|
+
with:
|
|
16
|
+
node-version: '18'
|
|
17
|
+
registry-url: 'https://registry.npmjs.org'
|
|
18
|
+
|
|
19
|
+
- run: npm ci
|
|
20
|
+
|
|
21
|
+
- run: npm publish
|
|
22
|
+
env:
|
|
23
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
package/DEPLOYMENT.md
ADDED
package/README.md
CHANGED
|
@@ -1,30 +1,16 @@
|
|
|
1
1
|
# Cobrowse.io - React Native SDK
|
|
2
2
|
|
|
3
|
-
Cobrowse.io is 100% free and easy to try out in your own apps.
|
|
3
|
+
Cobrowse.io is 100% free and easy to try out in your own apps.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Register an account at [https://cobrowse.io/register](https://cobrowse.io/register).
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
npm install --save cobrowse-sdk-react-native
|
|
11
|
-
react-native link
|
|
12
|
-
```
|
|
13
|
-
**Note:** For iOS you need to be using Pods to manage dependencies for `react-native link` to work out of the box (and also remember to run `pod install` after the link step).
|
|
14
|
-
|
|
15
|
-
### Add your License Key
|
|
7
|
+
Please see **full documentation** at [https://docs.cobrowse.io](https://docs.cobrowse.io).
|
|
16
8
|
|
|
17
|
-
|
|
9
|
+
Try our **online demo** at <https://cobrowse.io/demo>.
|
|
18
10
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
```javascript
|
|
22
|
-
import CobrowseIO from 'cobrowse-sdk-react-native';
|
|
23
|
-
|
|
24
|
-
CobrowseIO.license = "put your license key here";
|
|
25
|
-
CobrowseIO.start();
|
|
11
|
+
## Installation
|
|
26
12
|
|
|
27
|
-
|
|
13
|
+
See the [installation documentation](https://docs.cobrowse.io/sdk-installation/react-native) to get started.
|
|
28
14
|
|
|
29
15
|
## Try it out
|
|
30
16
|
|
|
@@ -48,16 +34,3 @@ Once you have your app running in the iOS Simulator or on a physical device, nav
|
|
|
48
34
|
|
|
49
35
|
## Questions?
|
|
50
36
|
Any questions at all? Please email us directly at [hello@cobrowse.io](mailto:hello@cobrowse.io).
|
|
51
|
-
|
|
52
|
-
## Requirements
|
|
53
|
-
|
|
54
|
-
* iOS 9.0 or later
|
|
55
|
-
* Android API version 19 (4.4 KitKat) or later
|
|
56
|
-
|
|
57
|
-
## Deployment
|
|
58
|
-
|
|
59
|
-
This SDK is only available via NPM. To deploy a new version:
|
|
60
|
-
|
|
61
|
-
```
|
|
62
|
-
npm publish
|
|
63
|
-
```
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
package io.cobrowse.reactnative;
|
|
2
|
+
|
|
3
|
+
import com.facebook.react.bridge.Promise;
|
|
4
|
+
import com.facebook.react.bridge.ReadableArray;
|
|
5
|
+
|
|
6
|
+
import io.cobrowse.CobrowseIO;
|
|
7
|
+
|
|
8
|
+
interface CobrowseIOCommonDelegates extends io.cobrowse.CobrowseIO.Delegate, io.cobrowse.CobrowseIO.SessionRequestDelegate,
|
|
9
|
+
io.cobrowse.CobrowseIO.SessionLoadDelegate, io.cobrowse.CobrowseIO.RedactionDelegate,
|
|
10
|
+
io.cobrowse.CobrowseIO.RemoteControlRequestDelegate, CobrowseIO.FullDeviceRequestDelegate {
|
|
11
|
+
|
|
12
|
+
public void findNodeManager();
|
|
13
|
+
public void setUnredactedTags(final ReadableArray reactTags, final Promise promise);
|
|
14
|
+
}
|