@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 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-rn-sdk
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 { multiply } from "suprsend-rn-sdk";
43
+ import Suprsend from "@suprsend/react-native-sdk";
15
44
 
16
45
  // ...
17
46
 
18
- const result = await multiply(3, 7);
47
+ Suprsend.track("Hello World");
19
48
  ```
20
49
 
21
50
  ## Contributing
@@ -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', 16)
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.github.suprsend:suprsend-kmm-sdk:0.1Beta9'
61
+ implementation 'com.suprsend:android:0.1Beta10'
62
62
  }
Binary file
@@ -1,4 +1,7 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <Workspace
3
3
  version = "1.0">
4
+ <FileRef
5
+ location = "self:">
6
+ </FileRef>
4
7
  </Workspace>
@@ -0,0 +1,8 @@
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>IDEDidComputeMac32BitWarning</key>
6
+ <true/>
7
+ </dict>
8
+ </plist>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Bucket
3
+ uuid = "C2FEFE5E-B975-448E-90C5-7DDE1BD6344E"
4
+ type = "1"
5
+ version = "2.0">
6
+ </Bucket>
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@suprsend/react-native-sdk",
3
- "version": "0.3.13",
3
+ "version": "0.3.14",
4
4
  "description": "Suprsend SDK for React Native Applications",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
package/android/.DS_Store DELETED
Binary file