cobrowse-sdk-react-native 2.13.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.
@@ -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
@@ -0,0 +1,7 @@
1
+ ## Deployment
2
+
3
+ This SDK is only available via NPM. To deploy a new version:
4
+
5
+ ```
6
+ standard-version
7
+ ```
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. Please see full documentation at [https://docs.cobrowse.io](https://docs.cobrowse.io).
3
+ Cobrowse.io is 100% free and easy to try out in your own apps.
4
4
 
5
- Try our **online demo** at the bottom of our homepage at <https://cobrowse.io/#tryit>.
5
+ Register an account at [https://cobrowse.io/register](https://cobrowse.io/register).
6
6
 
7
- ## Installation
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
- Please register an account and generate your free License Key at <https://cobrowse.io/dashboard/settings>.
9
+ Try our **online demo** at <https://cobrowse.io/demo>.
18
10
 
19
- This will associate sessions from your mobile app with your Cobrowse account.
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
+ }