@multiplayer-app/session-recorder-react-native 1.0.1-beta.11 → 1.0.1-beta.13
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.
|
@@ -10,7 +10,7 @@ import java.util.HashMap
|
|
|
10
10
|
class SessionRecorderNativePackage : BaseReactPackage() {
|
|
11
11
|
override fun getModule(name: String, reactContext: ReactApplicationContext): NativeModule? {
|
|
12
12
|
return if (name == SessionRecorderNativeModule.NAME) {
|
|
13
|
-
SessionRecorderNativeModule(reactContext)
|
|
13
|
+
SessionRecorderNativeModule(reactContext)
|
|
14
14
|
} else {
|
|
15
15
|
null
|
|
16
16
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@multiplayer-app/session-recorder-react-native",
|
|
3
|
-
"version": "1.0.1-beta.
|
|
3
|
+
"version": "1.0.1-beta.13",
|
|
4
4
|
"description": "Multiplayer Fullstack Session Recorder for React Native",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Multiplayer Software, Inc.",
|
|
@@ -19,7 +19,12 @@
|
|
|
19
19
|
"types": "./lib/typescript/src/index.d.ts",
|
|
20
20
|
"react-native": "./lib/module/index.js",
|
|
21
21
|
"android": {
|
|
22
|
-
"package": "com.sessionrecordernative"
|
|
22
|
+
"package": "com.sessionrecordernative",
|
|
23
|
+
"sourceDir": "./android",
|
|
24
|
+
"packageImportPath": "import com.sessionrecordernative.SessionRecorderNativePackage;"
|
|
25
|
+
},
|
|
26
|
+
"ios": {
|
|
27
|
+
"podspecPath": "./SessionRecorderNative.podspec"
|
|
23
28
|
},
|
|
24
29
|
"exports": {
|
|
25
30
|
".": {
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
package com.sessionrecordernative
|
|
2
|
-
|
|
3
|
-
import com.facebook.react.bridge.ReactApplicationContext
|
|
4
|
-
import com.facebook.react.bridge.ReactContextBaseJavaModule
|
|
5
|
-
import com.facebook.react.bridge.ReactMethod
|
|
6
|
-
import com.facebook.react.bridge.Promise
|
|
7
|
-
import com.facebook.react.bridge.Callback
|
|
8
|
-
import com.facebook.react.bridge.ReadableMap
|
|
9
|
-
import com.facebook.react.bridge.Arguments
|
|
10
|
-
import com.facebook.react.bridge.WritableMap
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Spec class for SessionRecorderNative TurboModule
|
|
14
|
-
* This class defines the interface that React Native expects for TurboModules
|
|
15
|
-
*/
|
|
16
|
-
class SessionRecorderNativeSpec(reactContext: ReactApplicationContext) : ReactContextBaseJavaModule(reactContext) {
|
|
17
|
-
|
|
18
|
-
override fun getName(): String {
|
|
19
|
-
return NAME
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
companion object {
|
|
23
|
-
const val NAME = "SessionRecorderNative"
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
// Delegate to the actual implementation
|
|
27
|
-
private val implementation = SessionRecorderNativeModule(reactContext)
|
|
28
|
-
|
|
29
|
-
@ReactMethod
|
|
30
|
-
fun captureAndMask(promise: Promise) {
|
|
31
|
-
implementation.captureAndMask(promise)
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
@ReactMethod
|
|
35
|
-
fun captureAndMaskWithOptions(options: ReadableMap, promise: Promise) {
|
|
36
|
-
implementation.captureAndMaskWithOptions(options, promise)
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
@ReactMethod
|
|
40
|
-
fun startGestureRecording(promise: Promise) {
|
|
41
|
-
implementation.startGestureRecording(promise)
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
@ReactMethod
|
|
45
|
-
fun stopGestureRecording(promise: Promise) {
|
|
46
|
-
implementation.stopGestureRecording(promise)
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
@ReactMethod
|
|
50
|
-
fun isGestureRecordingActive(promise: Promise) {
|
|
51
|
-
implementation.isGestureRecordingActive(promise)
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
@ReactMethod
|
|
55
|
-
fun setGestureCallback(callback: Callback) {
|
|
56
|
-
implementation.setGestureCallback(callback)
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
@ReactMethod
|
|
60
|
-
fun recordGesture(
|
|
61
|
-
gestureType: String,
|
|
62
|
-
x: Double,
|
|
63
|
-
y: Double,
|
|
64
|
-
target: String?,
|
|
65
|
-
metadata: ReadableMap?
|
|
66
|
-
) {
|
|
67
|
-
implementation.recordGesture(gestureType, x, y, target, metadata)
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
@ReactMethod
|
|
71
|
-
fun addListener(eventName: String) {
|
|
72
|
-
implementation.addListener(eventName)
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
@ReactMethod
|
|
76
|
-
fun removeListeners(count: Int) {
|
|
77
|
-
implementation.removeListeners(count)
|
|
78
|
-
}
|
|
79
|
-
}
|
package/react-native.config.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
dependency: {
|
|
3
|
-
platforms: {
|
|
4
|
-
android: {
|
|
5
|
-
sourceDir: '../android',
|
|
6
|
-
packageImportPath:
|
|
7
|
-
'import com.sessionrecordernative.SessionRecorderNativePackage;',
|
|
8
|
-
},
|
|
9
|
-
ios: {
|
|
10
|
-
podspecPath: '../SessionRecorderNative.podspec',
|
|
11
|
-
},
|
|
12
|
-
},
|
|
13
|
-
},
|
|
14
|
-
};
|