@suprsend/react-native-sdk 0.3.13 → 0.3.14
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 +32 -3
- package/android/build.gradle +2 -2
- package/{lib → ios}/.DS_Store +0 -0
- package/ios/SuprsendRnSdk.xcodeproj/project.xcworkspace/contents.xcworkspacedata +3 -0
- package/ios/SuprsendRnSdk.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/ios/SuprsendRnSdk.xcodeproj/project.xcworkspace/xcuserdata/personal.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/SuprsendRnSdk.xcodeproj/xcuserdata/personal.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist +6 -0
- package/ios/SuprsendRnSdk.xcodeproj/xcuserdata/personal.xcuserdatad/xcschemes/xcschememanagement.plist +22 -0
- package/package.json +1 -1
- package/android/.DS_Store +0 -0
package/README.md
CHANGED
|
@@ -4,18 +4,47 @@ Suprsend SDK for React Native Applications
|
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
|
+
### 1. Install Package using npm / yarn
|
|
8
|
+
|
|
7
9
|
```sh
|
|
8
|
-
npm install suprsend-
|
|
10
|
+
npm install @suprsend/react-native-sdk
|
|
11
|
+
```
|
|
12
|
+
### 2. Add jitpack dependency in project level build.gradle
|
|
13
|
+
Inside allprojects repositories add the below mentioned line as android sdk is available at jitpack repository
|
|
14
|
+
```java
|
|
15
|
+
allprojects {
|
|
16
|
+
repositories {
|
|
17
|
+
...
|
|
18
|
+
maven { url 'https://jitpack.io' }
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
```
|
|
22
|
+
### 3. Add Android sdk dependency inside app level build.gradle
|
|
23
|
+
Add following line of code inside dependencies in app build.gradle
|
|
24
|
+
```java
|
|
25
|
+
dependencies {
|
|
26
|
+
...
|
|
27
|
+
implementation 'com.github.suprsend:suprsend-kmm-sdk:0.1Beta9'
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Initialisation
|
|
32
|
+
Initialise the android sdk in MainApplication.java inside onCreate method and just above super.onCreate() line. You can find workspace_key and workspace_secret in dashboard.
|
|
33
|
+
```java
|
|
34
|
+
import app.suprsend.SSApi; // import sdk
|
|
35
|
+
...
|
|
36
|
+
SSApi.Companion.init(this, workspace_key, workspace_secret); // inside onCreate method just above super.onCreate() line
|
|
9
37
|
```
|
|
38
|
+
NOTE: If you face any issue in installation or integration please refer the [example folder](https://github.com/suprsend/suprsend-rn-sdk/tree/main/example) in respository where you can find the integration of sdk in example application.
|
|
10
39
|
|
|
11
40
|
## Usage
|
|
12
41
|
|
|
13
42
|
```js
|
|
14
|
-
import
|
|
43
|
+
import Suprsend from "@suprsend/react-native-sdk";
|
|
15
44
|
|
|
16
45
|
// ...
|
|
17
46
|
|
|
18
|
-
|
|
47
|
+
Suprsend.track("Hello World");
|
|
19
48
|
```
|
|
20
49
|
|
|
21
50
|
## Contributing
|
package/android/build.gradle
CHANGED
|
@@ -22,7 +22,7 @@ def safeExtGet(prop, fallback) {
|
|
|
22
22
|
android {
|
|
23
23
|
compileSdkVersion safeExtGet('SuprsendRnSdk_compileSdkVersion', 29)
|
|
24
24
|
defaultConfig {
|
|
25
|
-
minSdkVersion safeExtGet('SuprsendRnSdk_minSdkVersion',
|
|
25
|
+
minSdkVersion safeExtGet('SuprsendRnSdk_minSdkVersion', 19)
|
|
26
26
|
targetSdkVersion safeExtGet('SuprsendRnSdk_targetSdkVersion', 29)
|
|
27
27
|
versionCode 1
|
|
28
28
|
versionName "1.0"
|
|
@@ -58,5 +58,5 @@ repositories {
|
|
|
58
58
|
dependencies {
|
|
59
59
|
//noinspection GradleDynamicVersion
|
|
60
60
|
implementation "com.facebook.react:react-native:+" // From node_modules
|
|
61
|
-
implementation 'com.
|
|
61
|
+
implementation 'com.suprsend:android:0.1Beta10'
|
|
62
62
|
}
|
package/{lib → ios}/.DS_Store
RENAMED
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>SchemeUserState</key>
|
|
6
|
+
<dict>
|
|
7
|
+
<key>SuprsendRnSdk.xcscheme_^#shared#^_</key>
|
|
8
|
+
<dict>
|
|
9
|
+
<key>orderHint</key>
|
|
10
|
+
<integer>0</integer>
|
|
11
|
+
</dict>
|
|
12
|
+
</dict>
|
|
13
|
+
<key>SuppressBuildableAutocreation</key>
|
|
14
|
+
<dict>
|
|
15
|
+
<key>58B511DA1A9E6C8500147676</key>
|
|
16
|
+
<dict>
|
|
17
|
+
<key>primary</key>
|
|
18
|
+
<true/>
|
|
19
|
+
</dict>
|
|
20
|
+
</dict>
|
|
21
|
+
</dict>
|
|
22
|
+
</plist>
|
package/package.json
CHANGED
package/android/.DS_Store
DELETED
|
Binary file
|