react-native-ux-cam 5.4.15 → 6.0.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/CHANGELOG.md +2 -0
- package/RNUxcam.podspec +25 -6
- package/android/build.gradle +39 -5
- package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +5 -0
- package/android/gradlew +240 -0
- package/android/gradlew.bat +91 -0
- package/android/src/main/java/com/uxcam/RNUxViewFinder.java +7 -0
- package/android/src/main/java/com/uxcam/RNUxcamModuleImpl.java +446 -0
- package/android/src/main/java/com/uxcam/RNUxcamPackage.java +33 -18
- package/android/src/newarch/java/com/uxcam/RNUxcamModule.java +208 -0
- package/android/src/oldarch/java/com/uxcam/RNUxcamModule.java +205 -0
- package/ios/RNUxcam/RNUxcam.h +16 -0
- package/ios/RNUxcam/RNUxcam.mm +526 -0
- package/package.json +36 -32
- package/src/NativeRNUxcam.ts +60 -0
- package/src/UXCam.js +343 -0
- package/src/UXCamOcclusion.tsx +29 -0
- package/{index.d.ts → src/index.d.ts} +9 -130
- package/src/index.js +3 -0
- package/src/types.ts +19 -0
- package/UXCam.js +0 -570
- package/UXCamOcclusion.tsx +0 -36
- package/android/.classpath +0 -6
- package/android/src/main/java/com/uxcam/RNUxcamModule.java +0 -559
- package/index.js +0 -3
- package/ios/RNUxcam.h +0 -19
- package/ios/RNUxcam.m +0 -670
- package/ios/RNUxcam.xcodeproj/project.pbxproj +0 -266
- /package/{jest.config.js → src/jest.config.js} +0 -0
- /package/{tsconfig.json → src/tsconfig.json} +0 -0
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
package com.uxcam;
|
|
2
|
+
|
|
3
|
+
import androidx.annotation.NonNull;
|
|
4
|
+
import com.facebook.react.bridge.NativeModule;
|
|
5
|
+
import com.facebook.react.bridge.Promise;
|
|
6
|
+
import com.facebook.react.bridge.ReactApplicationContext;
|
|
7
|
+
import com.facebook.react.bridge.ReactContext;
|
|
8
|
+
import com.facebook.react.bridge.ReactContextBaseJavaModule;
|
|
9
|
+
import com.facebook.react.bridge.ReactMethod;
|
|
10
|
+
import com.facebook.react.bridge.ReadableMap;
|
|
11
|
+
import java.util.Map;
|
|
12
|
+
import java.util.HashMap;
|
|
13
|
+
|
|
14
|
+
public class RNUxcamModule extends NativeRNUxcamSpec {
|
|
15
|
+
|
|
16
|
+
private final RNUxcamModuleImpl impl;
|
|
17
|
+
|
|
18
|
+
RNUxcamModule(ReactApplicationContext context) {
|
|
19
|
+
super(context);
|
|
20
|
+
this.impl = new RNUxcamModuleImpl(context);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@Override
|
|
24
|
+
@NonNull
|
|
25
|
+
public String getName() {
|
|
26
|
+
return RNUxcamModuleImpl.MODULE_NAME;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@Override
|
|
30
|
+
public void startWithConfiguration(ReadableMap configuration) {
|
|
31
|
+
this.impl.startWithConfiguration(configuration);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@Override
|
|
35
|
+
public void addListener(String eventName) {
|
|
36
|
+
this.impl.addListener(eventName);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@Override
|
|
40
|
+
public void removeListeners(double count) {
|
|
41
|
+
this.impl.removeListeners(count);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@Override
|
|
45
|
+
public void applyOcclusion(ReadableMap occlusionMap) {
|
|
46
|
+
this.impl.applyOcclusion(occlusionMap);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@Override
|
|
50
|
+
public void removeOcclusion(ReadableMap occlusionMap) {
|
|
51
|
+
this.impl.removeOcclusion(occlusionMap);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@Override
|
|
55
|
+
public void startNewSession() {
|
|
56
|
+
this.impl.startNewSession();
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@Override
|
|
60
|
+
public void stopSessionAndUploadData() {
|
|
61
|
+
this.impl.stopSessionAndUploadData();
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
@Override
|
|
65
|
+
public void cancelCurrentSession() {
|
|
66
|
+
this.impl.cancelCurrentSession();
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@Override
|
|
70
|
+
public void occludeAllTextFields(boolean occludeAll) {
|
|
71
|
+
this.impl.occludeAllTextFields(occludeAll);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@Override
|
|
75
|
+
public void occludeSensitiveScreen(boolean occlude, boolean hideGestures) {
|
|
76
|
+
this.impl.occludeSensitiveScreen(occlude, hideGestures);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@Override
|
|
80
|
+
public void occludeSensitiveView(final double id, boolean hideGestures) {
|
|
81
|
+
this.impl.occludeSensitiveView(id, hideGestures);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@Override
|
|
85
|
+
public void unOccludeSensitiveView(final double id) {
|
|
86
|
+
this.impl.unOccludeSensitiveView(id);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
@Override
|
|
90
|
+
public void optInOverall() {
|
|
91
|
+
this.impl.optInOverall();
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
@Override
|
|
95
|
+
public void optOutOverall() {
|
|
96
|
+
this.impl.optOutOverall();
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
@Override
|
|
100
|
+
public boolean optInOverallStatus() {
|
|
101
|
+
return this.impl.optInOverallStatus();
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
@Override
|
|
105
|
+
public void optIntoVideoRecording() {
|
|
106
|
+
this.impl.optIntoVideoRecording();
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
@Override
|
|
110
|
+
public void optOutOfVideoRecording() {
|
|
111
|
+
this.impl.optOutOfVideoRecording();
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
@Override
|
|
115
|
+
public boolean optInVideoRecordingStatus(){
|
|
116
|
+
return this.impl.optInVideoRecordingStatus();
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
@Override
|
|
120
|
+
public void optIntoSchematicRecordings() {
|
|
121
|
+
this.impl.optIntoSchematicRecordings();
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
@Override
|
|
125
|
+
public void optOutOfSchematicRecordings() {
|
|
126
|
+
this.impl.optOutOfSchematicRecordings();
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
@Override
|
|
130
|
+
public boolean optInSchematicRecordingStatus() {
|
|
131
|
+
return this.impl.optInSchematicRecordingStatus();
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
@Override
|
|
135
|
+
public void urlForCurrentSession(Promise promise) {
|
|
136
|
+
this.impl.urlForCurrentSession(promise);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
@Override
|
|
140
|
+
public void urlForCurrentUser(Promise promise) {
|
|
141
|
+
this.impl.urlForCurrentUser(promise);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
@Override
|
|
145
|
+
public void uploadPendingSession() {
|
|
146
|
+
this.impl.uploadPendingSession();
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
@Override
|
|
150
|
+
public void deletePendingUploads() {
|
|
151
|
+
this.impl.deletePendingUploads();
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
@Override
|
|
155
|
+
public double pendingSessionCount() {
|
|
156
|
+
return this.impl.pendingSessionCount();
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
@Override
|
|
160
|
+
public void allowShortBreakForAnotherAppInMillis(double millis) {
|
|
161
|
+
this.impl.allowShortBreakForAnotherAppInMillis(millis);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
@Override
|
|
165
|
+
public void allowShortBreakForAnotherApp(boolean continueSession) {
|
|
166
|
+
this.impl.allowShortBreakForAnotherApp(continueSession);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
@Override
|
|
170
|
+
public boolean isRecording() {
|
|
171
|
+
return this.impl.isRecording();
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
@Override
|
|
175
|
+
public void pauseScreenRecording() {
|
|
176
|
+
this.impl.pauseScreenRecording();
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
@Override
|
|
180
|
+
public void resumeScreenRecording() {
|
|
181
|
+
this.impl.resumeScreenRecording();
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
@Override
|
|
185
|
+
public void tagScreenName(String screenName) {
|
|
186
|
+
this.impl.tagScreenName(screenName);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
@Override
|
|
190
|
+
public void logEvent(String event, ReadableMap properties) {
|
|
191
|
+
this.impl.logEvent(event, properties);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
@Override
|
|
195
|
+
public void setUserIdentity(String id) {
|
|
196
|
+
this.impl.setUserIdentity(id);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
@Override
|
|
200
|
+
public void setUserProperty(String key, String value) {
|
|
201
|
+
this.impl.setUserProperty(key, value);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
@Override
|
|
205
|
+
public void setSessionProperty(String key, String value) {
|
|
206
|
+
this.impl.setSessionProperty(key, value);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
package com.uxcam;
|
|
2
|
+
|
|
3
|
+
import com.facebook.react.bridge.Promise;
|
|
4
|
+
import com.facebook.react.bridge.ReactApplicationContext;
|
|
5
|
+
import com.facebook.react.bridge.ReactContextBaseJavaModule;
|
|
6
|
+
import com.facebook.react.bridge.ReactMethod;
|
|
7
|
+
import com.facebook.react.bridge.ReadableMap;
|
|
8
|
+
|
|
9
|
+
import java.util.Map;
|
|
10
|
+
import java.util.HashMap;
|
|
11
|
+
|
|
12
|
+
public class RNUxcamModule extends ReactContextBaseJavaModule {
|
|
13
|
+
|
|
14
|
+
private final RNUxcamModuleImpl impl;
|
|
15
|
+
|
|
16
|
+
RNUxcamModule(ReactApplicationContext context) {
|
|
17
|
+
super(context);
|
|
18
|
+
this.impl = new RNUxcamModuleImpl(context);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@ReactMethod
|
|
22
|
+
public String getName() {
|
|
23
|
+
return RNUxcamModuleImpl.MODULE_NAME;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@ReactMethod
|
|
27
|
+
public void startWithConfiguration(ReadableMap configuration) {
|
|
28
|
+
this.impl.startWithConfiguration(configuration);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@ReactMethod
|
|
32
|
+
public void addListener(String eventName) {
|
|
33
|
+
this.impl.addListener(eventName);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@ReactMethod
|
|
37
|
+
public void removeListeners(double count) {
|
|
38
|
+
this.impl.removeListeners(count);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@ReactMethod
|
|
42
|
+
public void applyOcclusion(ReadableMap occlusionMap) {
|
|
43
|
+
this.impl.applyOcclusion(occlusionMap);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@ReactMethod
|
|
47
|
+
public void removeOcclusion(ReadableMap occlusionMap) {
|
|
48
|
+
this.impl.removeOcclusion(occlusionMap);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@ReactMethod
|
|
52
|
+
public void startNewSession() {
|
|
53
|
+
this.impl.startNewSession();
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@ReactMethod
|
|
57
|
+
public void stopSessionAndUploadData() {
|
|
58
|
+
this.impl.stopSessionAndUploadData();
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@ReactMethod
|
|
62
|
+
public void cancelCurrentSession() {
|
|
63
|
+
this.impl.cancelCurrentSession();
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@ReactMethod
|
|
67
|
+
public void occludeAllTextFields(boolean occludeAll) {
|
|
68
|
+
this.impl.occludeAllTextFields(occludeAll);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@ReactMethod
|
|
72
|
+
public void occludeSensitiveScreen(boolean occlude, boolean hideGestures) {
|
|
73
|
+
this.impl.occludeSensitiveScreen(occlude, hideGestures);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@ReactMethod
|
|
77
|
+
public void occludeSensitiveView(final double id, boolean hideGestures) {
|
|
78
|
+
this.impl.occludeSensitiveView(id, hideGestures);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@ReactMethod
|
|
82
|
+
public void unOccludeSensitiveView(final double id) {
|
|
83
|
+
this.impl.unOccludeSensitiveView(id);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
@ReactMethod
|
|
87
|
+
public void optInOverall() {
|
|
88
|
+
this.impl.optInOverall();
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@ReactMethod
|
|
92
|
+
public void optOutOverall() {
|
|
93
|
+
this.impl.optOutOverall();
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
@ReactMethod(isBlockingSynchronousMethod = true)
|
|
97
|
+
public boolean optInOverallStatus() {
|
|
98
|
+
return this.impl.optInOverallStatus();
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
@ReactMethod
|
|
102
|
+
public void optIntoVideoRecording() {
|
|
103
|
+
this.impl.optIntoVideoRecording();
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
@ReactMethod
|
|
107
|
+
public void optOutOfVideoRecording() {
|
|
108
|
+
this.impl.optOutOfVideoRecording();
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
@ReactMethod(isBlockingSynchronousMethod = true)
|
|
112
|
+
public boolean optInVideoRecordingStatus(){
|
|
113
|
+
return this.impl.optInVideoRecordingStatus();
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
@ReactMethod
|
|
117
|
+
public void optIntoSchematicRecordings() {
|
|
118
|
+
this.impl.optIntoSchematicRecordings();
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
@ReactMethod
|
|
122
|
+
public void optOutOfSchematicRecordings() {
|
|
123
|
+
this.impl.optOutOfSchematicRecordings();
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
@ReactMethod(isBlockingSynchronousMethod = true)
|
|
127
|
+
public boolean optInSchematicRecordingStatus() {
|
|
128
|
+
return this.impl.optInSchematicRecordingStatus();
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
@ReactMethod
|
|
132
|
+
public void urlForCurrentSession(Promise promise) {
|
|
133
|
+
this.impl.urlForCurrentSession(promise);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
@ReactMethod
|
|
137
|
+
public void urlForCurrentUser(Promise promise) {
|
|
138
|
+
this.impl.urlForCurrentUser(promise);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
@ReactMethod
|
|
142
|
+
public void uploadPendingSession() {
|
|
143
|
+
this.impl.uploadPendingSession();
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
@ReactMethod
|
|
147
|
+
public void deletePendingUploads() {
|
|
148
|
+
this.impl.deletePendingUploads();
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
@ReactMethod(isBlockingSynchronousMethod = true)
|
|
152
|
+
public double pendingSessionCount() {
|
|
153
|
+
return this.impl.pendingSessionCount();
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
@ReactMethod
|
|
157
|
+
public void allowShortBreakForAnotherAppInMillis(double millis) {
|
|
158
|
+
this.impl.allowShortBreakForAnotherAppInMillis(millis);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
@ReactMethod
|
|
162
|
+
public void allowShortBreakForAnotherApp(boolean continueSession) {
|
|
163
|
+
this.impl.allowShortBreakForAnotherApp(continueSession);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
@ReactMethod(isBlockingSynchronousMethod = true)
|
|
167
|
+
public boolean isRecording() {
|
|
168
|
+
return this.impl.isRecording();
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
@ReactMethod
|
|
172
|
+
public void pauseScreenRecording() {
|
|
173
|
+
this.impl.pauseScreenRecording();
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
@ReactMethod
|
|
177
|
+
public void resumeScreenRecording() {
|
|
178
|
+
this.impl.resumeScreenRecording();
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
@ReactMethod
|
|
182
|
+
public void tagScreenName(String screenName) {
|
|
183
|
+
this.impl.tagScreenName(screenName);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
@ReactMethod
|
|
187
|
+
public void logEvent(String event, ReadableMap properties) {
|
|
188
|
+
this.impl.logEvent(event, properties);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
@ReactMethod
|
|
192
|
+
public void setUserIdentity(String id) {
|
|
193
|
+
this.impl.setUserIdentity(id);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
@ReactMethod
|
|
197
|
+
public void setUserProperty(String key, String value) {
|
|
198
|
+
this.impl.setUserProperty(key, value);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
@ReactMethod
|
|
202
|
+
public void setSessionProperty(String key, String value) {
|
|
203
|
+
this.impl.setSessionProperty(key, value);
|
|
204
|
+
}
|
|
205
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#import <React/RCTBridgeModule.h>
|
|
2
|
+
#import <React/RCTEventEmitter.h>
|
|
3
|
+
|
|
4
|
+
#ifdef RCT_NEW_ARCH_ENABLED
|
|
5
|
+
|
|
6
|
+
#import "RNUxcamSpec.h"
|
|
7
|
+
@interface RNUxcam: RCTEventEmitter <NativeRNUxcamSpec>
|
|
8
|
+
|
|
9
|
+
#else
|
|
10
|
+
|
|
11
|
+
#import <React/RCTBridgeModule.h>
|
|
12
|
+
@interface RNUxcam: RCTEventEmitter <RCTBridgeModule>
|
|
13
|
+
|
|
14
|
+
#endif
|
|
15
|
+
|
|
16
|
+
@end
|