@blueconic/blueconic-react-native 2.0.0 → 3.1.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.
- package/BlueConicReactNative.podspec +23 -23
- package/CHANGELOG.md +105 -88
- package/LICENSE +3 -3
- package/README.md +11 -484
- package/android/build.gradle +40 -38
- package/android/gradle.properties +9 -0
- package/android/src/main/AndroidManifest.xml +4 -5
- package/android/src/main/java/com/blueconic/{blueconicreactnative → reactnative}/BlueConicClientModule.java +918 -870
- package/android/src/main/java/com/blueconic/{blueconicreactnative → reactnative}/BlueConicClientModuleHelper.java +17 -17
- package/android/src/main/java/com/blueconic/{blueconicreactnative → reactnative}/BlueConicClientPackage.java +29 -29
- package/android/src/main/java/com/blueconic/{blueconicreactnative → reactnative}/BlueConicInteraction.java +67 -68
- package/index.js +6 -6
- package/ios/BlueConicClient-Bridging-Header.h +6 -6
- package/ios/BlueConicClient.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -7
- package/ios/BlueConicClient.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -8
- package/ios/BlueConicClientModule.m +79 -74
- package/ios/BlueConicClientModule.swift +545 -516
- package/ios/BlueConicInteraction.swift +63 -63
- package/package.json +35 -18
- package/.gitattributes +0 -1
- package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +0 -6
- package/android/gradlew +0 -172
- package/android/gradlew.bat +0 -84
- package/android/local.properties +0 -8
- package/ios/BlueConicClient.xcodeproj/project.xcworkspace/xcuserdata/youri.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/BlueConicClient.xcodeproj/xcuserdata/youri.xcuserdatad/xcschemes/xcschememanagement.plist +0 -14
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
package com.blueconic.
|
|
2
|
-
|
|
3
|
-
import com.facebook.react.bridge.ReactApplicationContext;
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* The BlueConicClientModuleHelper class stores the reactContext that is passed to the BlueConicClientModule instance upon construction.
|
|
7
|
-
*/
|
|
8
|
-
class BlueConicClientModuleHelper {
|
|
9
|
-
private ReactApplicationContext reactContext;
|
|
10
|
-
|
|
11
|
-
BlueConicClientModuleHelper(ReactApplicationContext reactContext) {
|
|
12
|
-
this.reactContext = reactContext;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
ReactApplicationContext getReactContext() {
|
|
16
|
-
return reactContext;
|
|
17
|
-
}
|
|
1
|
+
package com.blueconic.reactnative;
|
|
2
|
+
|
|
3
|
+
import com.facebook.react.bridge.ReactApplicationContext;
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* The BlueConicClientModuleHelper class stores the reactContext that is passed to the BlueConicClientModule instance upon construction.
|
|
7
|
+
*/
|
|
8
|
+
class BlueConicClientModuleHelper {
|
|
9
|
+
private ReactApplicationContext reactContext;
|
|
10
|
+
|
|
11
|
+
BlueConicClientModuleHelper(ReactApplicationContext reactContext) {
|
|
12
|
+
this.reactContext = reactContext;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
ReactApplicationContext getReactContext() {
|
|
16
|
+
return reactContext;
|
|
17
|
+
}
|
|
18
18
|
}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
package com.blueconic.
|
|
3
|
-
|
|
4
|
-
import java.util.ArrayList;
|
|
5
|
-
import java.util.Collections;
|
|
6
|
-
import java.util.List;
|
|
7
|
-
|
|
8
|
-
import com.facebook.react.ReactPackage;
|
|
9
|
-
import com.facebook.react.bridge.NativeModule;
|
|
10
|
-
import com.facebook.react.bridge.ReactApplicationContext;
|
|
11
|
-
import com.facebook.react.uimanager.ViewManager;
|
|
12
|
-
import com.facebook.react.bridge.JavaScriptModule;
|
|
13
|
-
public class BlueConicClientPackage implements ReactPackage {
|
|
14
|
-
|
|
15
|
-
@Override
|
|
16
|
-
public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
|
|
17
|
-
return Collections.emptyList();
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
@Override
|
|
21
|
-
public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
|
|
22
|
-
List<NativeModule> modules = new ArrayList<>();
|
|
23
|
-
modules.add(new BlueConicClientModule(reactContext));
|
|
24
|
-
return modules;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
public List<Class<? extends JavaScriptModule>> createJSModules() {
|
|
28
|
-
return Collections.emptyList();
|
|
29
|
-
}
|
|
1
|
+
|
|
2
|
+
package com.blueconic.reactnative;
|
|
3
|
+
|
|
4
|
+
import java.util.ArrayList;
|
|
5
|
+
import java.util.Collections;
|
|
6
|
+
import java.util.List;
|
|
7
|
+
|
|
8
|
+
import com.facebook.react.ReactPackage;
|
|
9
|
+
import com.facebook.react.bridge.NativeModule;
|
|
10
|
+
import com.facebook.react.bridge.ReactApplicationContext;
|
|
11
|
+
import com.facebook.react.uimanager.ViewManager;
|
|
12
|
+
import com.facebook.react.bridge.JavaScriptModule;
|
|
13
|
+
public class BlueConicClientPackage implements ReactPackage {
|
|
14
|
+
|
|
15
|
+
@Override
|
|
16
|
+
public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
|
|
17
|
+
return Collections.emptyList();
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@Override
|
|
21
|
+
public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
|
|
22
|
+
List<NativeModule> modules = new ArrayList<>();
|
|
23
|
+
modules.add(new BlueConicClientModule(reactContext));
|
|
24
|
+
return modules;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
public List<Class<? extends JavaScriptModule>> createJSModules() {
|
|
28
|
+
return Collections.emptyList();
|
|
29
|
+
}
|
|
30
30
|
}
|
|
@@ -1,69 +1,68 @@
|
|
|
1
|
-
|
|
2
|
-
package com.blueconic.
|
|
3
|
-
|
|
4
|
-
import java.util.HashMap;
|
|
5
|
-
import java.util.
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import com.blueconic.BlueConicClient;
|
|
9
|
-
import com.blueconic.BlueConicClient.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
*
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
private
|
|
18
|
-
private
|
|
19
|
-
private
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* @param
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
*
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
properties.put("
|
|
43
|
-
properties.put("
|
|
44
|
-
properties.put("
|
|
45
|
-
properties.put("
|
|
46
|
-
properties.put("
|
|
47
|
-
properties.put("
|
|
48
|
-
properties.put("
|
|
49
|
-
properties.put("
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
1
|
+
|
|
2
|
+
package com.blueconic.reactnative;
|
|
3
|
+
|
|
4
|
+
import java.util.HashMap;
|
|
5
|
+
import java.util.Map;
|
|
6
|
+
|
|
7
|
+
import com.blueconic.BlueConicClient;
|
|
8
|
+
import com.blueconic.BlueConicClient.InteractionContext;
|
|
9
|
+
import com.blueconic.BlueConicClient.Plugin;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* The BlueConicInteraction class is a custom BlueConic plugin that receives parameters from the BlueConic backend
|
|
13
|
+
* and passes these to the (Android) Native Module.
|
|
14
|
+
*/
|
|
15
|
+
public class BlueConicInteraction implements Plugin {
|
|
16
|
+
private BlueConicClient blueConicClient;
|
|
17
|
+
private InteractionContext interactionContext;
|
|
18
|
+
private Map<String, Object> properties;
|
|
19
|
+
private String interactionId;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Called by the BlueConic SDK for Android when a dialogue of this type is configured to be present on the current
|
|
23
|
+
* screen.
|
|
24
|
+
* @param client the BlueConicClient
|
|
25
|
+
* @param context the InteractionContext of the interaction plugin
|
|
26
|
+
*/
|
|
27
|
+
@Override
|
|
28
|
+
public void init(BlueConicClient client, InteractionContext context) {
|
|
29
|
+
blueConicClient = client;
|
|
30
|
+
interactionContext = context;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Called when the plugin is registered and active on the server. It retrieves the configured parameters and
|
|
35
|
+
* sends these to the Native Module.
|
|
36
|
+
*/
|
|
37
|
+
@Override
|
|
38
|
+
public void onLoad() {
|
|
39
|
+
final Map<String, Object> properties = new HashMap<>();
|
|
40
|
+
interactionId = this.interactionContext.getInteractionId();
|
|
41
|
+
properties.put("id", interactionId);
|
|
42
|
+
properties.put("name", interactionContext.getName());
|
|
43
|
+
properties.put("type", interactionContext.getInteractionTypeId());
|
|
44
|
+
properties.put("pluginType", interactionContext.getPluginType());
|
|
45
|
+
properties.put("dialogueId", interactionContext.getDialogueId());
|
|
46
|
+
properties.put("dialogueName", interactionContext.getDialogueName());
|
|
47
|
+
properties.put("positionId", interactionContext.getPositionIdentifier());
|
|
48
|
+
properties.put("positionName", interactionContext.getPositionName());
|
|
49
|
+
properties.put("parameters", interactionContext.getParameters());
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
this.properties = properties;
|
|
53
|
+
|
|
54
|
+
if (this.properties != null && interactionId != null) {
|
|
55
|
+
BlueConicClientModule.publishDialogueEvent(this.properties, "onBlueConicPluginLoad");
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Called when the interaction should close.
|
|
61
|
+
*/
|
|
62
|
+
@Override
|
|
63
|
+
public void onDestroy() {
|
|
64
|
+
if (this.properties != null) {
|
|
65
|
+
BlueConicClientModule.publishDialogueEvent(this.properties, "onBlueConicPluginDestroyed");
|
|
66
|
+
}
|
|
67
|
+
}
|
|
69
68
|
}
|
package/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import { NativeModules } from 'react-native';
|
|
3
|
-
|
|
4
|
-
const { BlueConicClient } = NativeModules;
|
|
5
|
-
|
|
6
|
-
export default BlueConicClient;
|
|
1
|
+
|
|
2
|
+
import { NativeModules } from 'react-native';
|
|
3
|
+
|
|
4
|
+
const { BlueConicClient } = NativeModules;
|
|
5
|
+
|
|
6
|
+
export default BlueConicClient;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Use this file to import your target's public headers that you would like to expose to Swift.
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
#import <React/RCTBridgeModule.h>
|
|
6
|
-
#import <React/RCTEventEmitter.h>
|
|
1
|
+
//
|
|
2
|
+
// Use this file to import your target's public headers that you would like to expose to Swift.
|
|
3
|
+
//
|
|
4
|
+
//
|
|
5
|
+
#import <React/RCTBridgeModule.h>
|
|
6
|
+
#import <React/RCTEventEmitter.h>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<Workspace
|
|
3
|
-
version = "1.0">
|
|
4
|
-
<FileRef
|
|
5
|
-
location = "self:">
|
|
6
|
-
</FileRef>
|
|
7
|
-
</Workspace>
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<Workspace
|
|
3
|
+
version = "1.0">
|
|
4
|
+
<FileRef
|
|
5
|
+
location = "self:">
|
|
6
|
+
</FileRef>
|
|
7
|
+
</Workspace>
|
package/ios/BlueConicClient.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
CHANGED
|
@@ -1,8 +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>
|
|
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>
|
|
@@ -1,74 +1,79 @@
|
|
|
1
|
-
#import <React/RCTBridgeModule.h>
|
|
2
|
-
#import <React/RCTEventEmitter.h>
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
Implementation file that registers the exposed methods with the React Native Bridge.
|
|
6
|
-
*/
|
|
7
|
-
@interface RCT_EXTERN_REMAP_MODULE(BlueConicClient, BlueConicClientModule, RCTEventEmitter)
|
|
8
|
-
|
|
9
|
-
RCT_EXTERN_METHOD(getProfileId:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject)
|
|
10
|
-
|
|
11
|
-
RCT_EXTERN_METHOD(getProfileValue:(NSString *)property withResolver:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject)
|
|
12
|
-
RCT_EXTERN_METHOD(getProfileValues:(NSString *)property withResolver:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject)
|
|
13
|
-
|
|
14
|
-
RCT_EXTERN_METHOD(getProfileIdWithCallback:(RCTResponseSenderBlock)callback)
|
|
15
|
-
|
|
16
|
-
RCT_EXTERN_METHOD(getProfileValueWithCallback:(NSString *)property withCallback:(RCTResponseSenderBlock)callback)
|
|
17
|
-
RCT_EXTERN_METHOD(getProfileValuesWithCallback:(NSString *)property withCallback:(RCTResponseSenderBlock)callback)
|
|
18
|
-
|
|
19
|
-
RCT_EXTERN_METHOD(getPrivacyLegislation:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject)
|
|
20
|
-
RCT_EXTERN_METHOD(getPrivacyLegislationWithCallback:(RCTResponseSenderBlock)callback)
|
|
21
|
-
|
|
22
|
-
RCT_EXTERN_METHOD(getConsentedObjectives:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject)
|
|
23
|
-
RCT_EXTERN_METHOD(getConsentedObjectivesWithCallback:(RCTResponseSenderBlock)callback)
|
|
24
|
-
|
|
25
|
-
RCT_EXTERN_METHOD(getRefusedObjectives:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject)
|
|
26
|
-
RCT_EXTERN_METHOD(getRefusedObjectivesWithCallback:(RCTResponseSenderBlock)callback)
|
|
27
|
-
|
|
28
|
-
RCT_EXTERN_METHOD(getSegments:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject)
|
|
29
|
-
RCT_EXTERN_METHOD(getSegmentsWithCallback:(RCTResponseSenderBlock)callback)
|
|
30
|
-
|
|
31
|
-
RCT_EXTERN_METHOD(addProfileValue:(NSString *)property withValue:(NSString *)value)
|
|
32
|
-
RCT_EXTERN_METHOD(addProfileValues:(NSString *)property withValues:(NSArray *)values)
|
|
33
|
-
|
|
34
|
-
RCT_EXTERN_METHOD(setProfileValue:(NSString *)property withValue:(NSString *)value)
|
|
35
|
-
RCT_EXTERN_METHOD(setProfileValues:(NSString *)property withValues:(NSArray *)values)
|
|
36
|
-
|
|
37
|
-
RCT_EXTERN_METHOD(incrementProfileValue:(NSString *)property withValue:(NSString *)value)
|
|
38
|
-
|
|
39
|
-
RCT_EXTERN_METHOD(setPrivacyLegislation:(NSString *)privacyLegislation)
|
|
40
|
-
|
|
41
|
-
RCT_EXTERN_METHOD(addConsentedObjective:(NSString *)objectiveId)
|
|
42
|
-
RCT_EXTERN_METHOD(addRefusedObjective:(NSString *)objectiveId)
|
|
43
|
-
|
|
44
|
-
RCT_EXTERN_METHOD(setConsentedObjectives:(NSArray *)objectiveIds)
|
|
45
|
-
RCT_EXTERN_METHOD(setRefusedObjectives:(NSArray *)objectiveIds)
|
|
46
|
-
|
|
47
|
-
RCT_EXTERN_METHOD(
|
|
48
|
-
|
|
49
|
-
RCT_EXTERN_METHOD(
|
|
50
|
-
|
|
51
|
-
RCT_EXTERN_METHOD(
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
RCT_EXTERN_METHOD(
|
|
55
|
-
|
|
56
|
-
RCT_EXTERN_METHOD(
|
|
57
|
-
|
|
58
|
-
RCT_EXTERN_METHOD(
|
|
59
|
-
|
|
60
|
-
RCT_EXTERN_METHOD(
|
|
61
|
-
|
|
62
|
-
RCT_EXTERN_METHOD(
|
|
63
|
-
|
|
64
|
-
RCT_EXTERN_METHOD(
|
|
65
|
-
|
|
66
|
-
RCT_EXTERN_METHOD(
|
|
67
|
-
|
|
68
|
-
RCT_EXTERN_METHOD(
|
|
69
|
-
RCT_EXTERN_METHOD(
|
|
70
|
-
RCT_EXTERN_METHOD(
|
|
71
|
-
|
|
72
|
-
RCT_EXTERN_METHOD(
|
|
73
|
-
|
|
74
|
-
|
|
1
|
+
#import <React/RCTBridgeModule.h>
|
|
2
|
+
#import <React/RCTEventEmitter.h>
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
Implementation file that registers the exposed methods with the React Native Bridge.
|
|
6
|
+
*/
|
|
7
|
+
@interface RCT_EXTERN_REMAP_MODULE(BlueConicClient, BlueConicClientModule, RCTEventEmitter)
|
|
8
|
+
|
|
9
|
+
RCT_EXTERN_METHOD(getProfileId:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject)
|
|
10
|
+
|
|
11
|
+
RCT_EXTERN_METHOD(getProfileValue:(NSString *)property withResolver:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject)
|
|
12
|
+
RCT_EXTERN_METHOD(getProfileValues:(NSString *)property withResolver:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject)
|
|
13
|
+
|
|
14
|
+
RCT_EXTERN_METHOD(getProfileIdWithCallback:(RCTResponseSenderBlock)callback)
|
|
15
|
+
|
|
16
|
+
RCT_EXTERN_METHOD(getProfileValueWithCallback:(NSString *)property withCallback:(RCTResponseSenderBlock)callback)
|
|
17
|
+
RCT_EXTERN_METHOD(getProfileValuesWithCallback:(NSString *)property withCallback:(RCTResponseSenderBlock)callback)
|
|
18
|
+
|
|
19
|
+
RCT_EXTERN_METHOD(getPrivacyLegislation:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject)
|
|
20
|
+
RCT_EXTERN_METHOD(getPrivacyLegislationWithCallback:(RCTResponseSenderBlock)callback)
|
|
21
|
+
|
|
22
|
+
RCT_EXTERN_METHOD(getConsentedObjectives:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject)
|
|
23
|
+
RCT_EXTERN_METHOD(getConsentedObjectivesWithCallback:(RCTResponseSenderBlock)callback)
|
|
24
|
+
|
|
25
|
+
RCT_EXTERN_METHOD(getRefusedObjectives:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject)
|
|
26
|
+
RCT_EXTERN_METHOD(getRefusedObjectivesWithCallback:(RCTResponseSenderBlock)callback)
|
|
27
|
+
|
|
28
|
+
RCT_EXTERN_METHOD(getSegments:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject)
|
|
29
|
+
RCT_EXTERN_METHOD(getSegmentsWithCallback:(RCTResponseSenderBlock)callback)
|
|
30
|
+
|
|
31
|
+
RCT_EXTERN_METHOD(addProfileValue:(NSString *)property withValue:(NSString *)value)
|
|
32
|
+
RCT_EXTERN_METHOD(addProfileValues:(NSString *)property withValues:(NSArray *)values)
|
|
33
|
+
|
|
34
|
+
RCT_EXTERN_METHOD(setProfileValue:(NSString *)property withValue:(NSString *)value)
|
|
35
|
+
RCT_EXTERN_METHOD(setProfileValues:(NSString *)property withValues:(NSArray *)values)
|
|
36
|
+
|
|
37
|
+
RCT_EXTERN_METHOD(incrementProfileValue:(NSString *)property withValue:(NSString *)value)
|
|
38
|
+
|
|
39
|
+
RCT_EXTERN_METHOD(setPrivacyLegislation:(NSString *)privacyLegislation)
|
|
40
|
+
|
|
41
|
+
RCT_EXTERN_METHOD(addConsentedObjective:(NSString *)objectiveId)
|
|
42
|
+
RCT_EXTERN_METHOD(addRefusedObjective:(NSString *)objectiveId)
|
|
43
|
+
|
|
44
|
+
RCT_EXTERN_METHOD(setConsentedObjectives:(NSArray *)objectiveIds)
|
|
45
|
+
RCT_EXTERN_METHOD(setRefusedObjectives:(NSArray *)objectiveIds)
|
|
46
|
+
|
|
47
|
+
RCT_EXTERN_METHOD(setLocale:(NSString *)locale)
|
|
48
|
+
|
|
49
|
+
RCT_EXTERN_METHOD(setEnabled:(BOOL)isEnabled)
|
|
50
|
+
RCT_EXTERN_METHOD(isEnabled:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject)
|
|
51
|
+
RCT_EXTERN_METHOD(isEnabledWithCallback:(RCTResponseSenderBlock)callback)
|
|
52
|
+
|
|
53
|
+
RCT_EXTERN_METHOD(hasSegment:(NSString *)segmentId withResolver:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject)
|
|
54
|
+
RCT_EXTERN_METHOD(hasSegmentWithCallback:(NSString *)segmentId withCallback:(RCTResponseSenderBlock)callback)
|
|
55
|
+
|
|
56
|
+
RCT_EXTERN_METHOD(createEvent:(NSString *)eventName withProperties:(NSDictionary *)properties)
|
|
57
|
+
RCT_EXTERN_METHOD(createEventSync:(NSString *)eventName withProperties:(NSDictionary *)properties withResolver:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject)
|
|
58
|
+
RCT_EXTERN_METHOD(createEventSyncWithCallback:eventName withProperties:(NSDictionary *)properties withCallback:(RCTResponseSenderBlock)callback)
|
|
59
|
+
|
|
60
|
+
RCT_EXTERN_METHOD(updateProfile)
|
|
61
|
+
RCT_EXTERN_METHOD(updateProfileSync:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject)
|
|
62
|
+
RCT_EXTERN_METHOD(updateProfileSyncWithCallback:(RCTResponseSenderBlock)callback)
|
|
63
|
+
|
|
64
|
+
RCT_EXTERN_METHOD(registerPageView:(NSString *)screenName)
|
|
65
|
+
RCT_EXTERN_METHOD(registerPageViewSync:(NSString *)screenName withResolver:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject)
|
|
66
|
+
RCT_EXTERN_METHOD(registerPageViewSyncWithCallback:(NSString *)screenName withCallback:(RCTResponseSenderBlock)callback)
|
|
67
|
+
|
|
68
|
+
RCT_EXTERN_METHOD(registerClickEvent:(NSString *)selector)
|
|
69
|
+
RCT_EXTERN_METHOD(registerClickEventWithContext:(NSString *)selector withValues:(NSArray *)values)
|
|
70
|
+
RCT_EXTERN_METHOD(registerFormSubmitEvent:(NSString *)selector)
|
|
71
|
+
RCT_EXTERN_METHOD(registerFormSubmitEventWithContext:(NSString *)selector withValues:(NSArray *)values)
|
|
72
|
+
RCT_EXTERN_METHOD(registerUpdateContentEvent:(NSString *)selector withValue:(NSString *)value)
|
|
73
|
+
RCT_EXTERN_METHOD(registerUpdateValuesEvent:(NSString *)selector withValue:(NSString *)value)
|
|
74
|
+
RCT_EXTERN_METHOD(registerAdvancedEvent:(NSString *)name withValues:(NSArray *)values)
|
|
75
|
+
RCT_EXTERN_METHOD(registerDialogueEvent:(NSString *)eventType withInteractionId:(NSString *)interactionId)
|
|
76
|
+
|
|
77
|
+
RCT_EXTERN_METHOD(destroyPlugins)
|
|
78
|
+
|
|
79
|
+
@end
|