@suprsend/react-native-sdk 0.3.9 → 0.3.10

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.
@@ -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.1Beta5'
61
+ implementation 'com.github.suprsend:suprsend-kmm-sdk:0.1Beta7'
62
62
  }
@@ -30,7 +30,6 @@ public class SuprsendRnSdkModule extends ReactContextBaseJavaModule {
30
30
  public static final String NAME = "SuprsendRnSdk";
31
31
  private final ReactApplicationContext context;
32
32
  private SSApi suprsendInstance;
33
- private String apiKey, apiSecret, apiBaseUrl;
34
33
 
35
34
  public SuprsendRnSdkModule(ReactApplicationContext reactContext) {
36
35
  super(reactContext);
@@ -45,20 +44,11 @@ public class SuprsendRnSdkModule extends ReactContextBaseJavaModule {
45
44
 
46
45
  private void getInstance() {
47
46
  if (suprsendInstance == null) {
48
- suprsendInstance = SSApi.Companion.getInstance(apiKey, apiSecret, apiBaseUrl);
47
+ suprsendInstance = SSApi.Companion.getInstance();
49
48
  suprsendInstance.setLogLevel(LogLevel.VERBOSE);
50
49
  }
51
50
  }
52
51
 
53
- @ReactMethod
54
- public void initializeSDK(String workspaceKey, String workspaceSecret, String apiUrl) {
55
- apiKey = workspaceKey;
56
- apiSecret = workspaceSecret;
57
- if (apiUrl != null) {
58
- apiBaseUrl = apiUrl;
59
- }
60
- }
61
-
62
52
  @ReactMethod
63
53
  public void identify(String uniqueId) {
64
54
  getInstance();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@suprsend/react-native-sdk",
3
- "version": "0.3.9",
3
+ "version": "0.3.10",
4
4
  "description": "Suprsend SDK for React Native Applications",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",