@suprsend/react-native-sdk 0.4.1 → 0.4.3
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
|
@@ -34,7 +34,7 @@ Add following line of code inside dependencies in app build.gradle
|
|
|
34
34
|
```java
|
|
35
35
|
dependencies {
|
|
36
36
|
...
|
|
37
|
-
implementation 'com.suprsend:
|
|
37
|
+
implementation 'com.suprsend:rn:0.1.8'
|
|
38
38
|
}
|
|
39
39
|
```
|
|
40
40
|
|
|
@@ -78,6 +78,9 @@ SuprSend sdk needs iOS platform version of 13 or above, so check it inside PodFi
|
|
|
78
78
|
platform :ios, '13.0' // this version has to be 13 or greater
|
|
79
79
|
```
|
|
80
80
|
|
|
81
|
+
#### Step 4. Change iOS Deployment Target
|
|
82
|
+
SuprSend sdk needs an iOS deployment target of 11 or above. So Change it in xcode.
|
|
83
|
+
|
|
81
84
|
### 2. Initialization
|
|
82
85
|
|
|
83
86
|
#### Step 1. In AppDelegate.m add the below mentioned code inside *didFinishLaunchingWithOptions* method, just before returning YES like in code below.
|
|
@@ -90,7 +93,7 @@ platform :ios, '13.0' // this version has to be 13 or greater
|
|
|
90
93
|
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
|
|
91
94
|
{
|
|
92
95
|
...
|
|
93
|
-
SuprSendSDKConfiguration* configuration = [[SuprSendSDKConfiguration alloc] initWithKey:@workspace_key secret:@workspace_secret]; // add this line
|
|
96
|
+
SuprSendSDKConfiguration* configuration = [[SuprSendSDKConfiguration alloc] initWithKey:@workspace_key secret:@workspace_secret baseUrl:nil]; // add this line
|
|
94
97
|
[SuprSend.shared configureWithConfiguration:configuration launchOptions:launchOptions]; // add this line
|
|
95
98
|
return YES;
|
|
96
99
|
```
|
package/android/build.gradle
CHANGED
|
@@ -240,7 +240,7 @@ public class SuprsendRnSdkModule extends ReactContextBaseJavaModule {
|
|
|
240
240
|
if (formattedProperties.length() > 0) {
|
|
241
241
|
suprsendInstance.track(eventName, formattedProperties);
|
|
242
242
|
} else {
|
|
243
|
-
suprsendInstance.track(eventName
|
|
243
|
+
suprsendInstance.track(eventName);
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
246
|
|
package/package.json
CHANGED
package/suprsend-rn-sdk.podspec
CHANGED
|
@@ -10,7 +10,7 @@ Pod::Spec.new do |s|
|
|
|
10
10
|
s.license = package["license"]
|
|
11
11
|
s.authors = package["author"]
|
|
12
12
|
|
|
13
|
-
s.platforms = { :ios => "
|
|
13
|
+
s.platforms = { :ios => "11.0" }
|
|
14
14
|
s.source = { :git => "https://github.com/sivaram000/suprsend-rn-sdk.git", :tag => "#{s.version}" }
|
|
15
15
|
|
|
16
16
|
s.source_files = "ios/**/*.{h,m,mm,swift}"
|