connect-x-reactnative-livechat-sdk 1.4.1 → 1.4.3-legacy
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/android/build.gradle
CHANGED
|
@@ -1,33 +1,16 @@
|
|
|
1
1
|
package com.connectxreactnativelivechatsdk
|
|
2
2
|
|
|
3
|
-
import com.facebook.react.
|
|
3
|
+
import com.facebook.react.ReactPackage
|
|
4
4
|
import com.facebook.react.bridge.NativeModule
|
|
5
5
|
import com.facebook.react.bridge.ReactApplicationContext
|
|
6
|
-
import com.facebook.react.
|
|
7
|
-
import com.facebook.react.module.model.ReactModuleInfoProvider
|
|
8
|
-
import java.util.HashMap
|
|
6
|
+
import com.facebook.react.uimanager.ViewManager
|
|
9
7
|
|
|
10
|
-
class ConnectXReactnativeLivechatSdkPackage :
|
|
11
|
-
override fun
|
|
12
|
-
return
|
|
13
|
-
ConnectXReactnativeLivechatSdkModule(reactContext)
|
|
14
|
-
} else {
|
|
15
|
-
null
|
|
16
|
-
}
|
|
8
|
+
class ConnectXReactnativeLivechatSdkPackage : ReactPackage {
|
|
9
|
+
override fun createNativeModules(reactContext: ReactApplicationContext): List<NativeModule> {
|
|
10
|
+
return listOf(ConnectXReactnativeLivechatSdkModule(reactContext))
|
|
17
11
|
}
|
|
18
12
|
|
|
19
|
-
override fun
|
|
20
|
-
return
|
|
21
|
-
val moduleInfos: MutableMap<String, ReactModuleInfo> = HashMap()
|
|
22
|
-
moduleInfos[ConnectXReactnativeLivechatSdkModule.NAME] = ReactModuleInfo(
|
|
23
|
-
ConnectXReactnativeLivechatSdkModule.NAME,
|
|
24
|
-
ConnectXReactnativeLivechatSdkModule.NAME,
|
|
25
|
-
false, // canOverrideExistingModule
|
|
26
|
-
false, // needsEagerInit
|
|
27
|
-
false, // isCxxModule
|
|
28
|
-
true // isTurboModule
|
|
29
|
-
)
|
|
30
|
-
moduleInfos
|
|
31
|
-
}
|
|
13
|
+
override fun createViewManagers(reactContext: ReactApplicationContext): List<ViewManager<*, *>> {
|
|
14
|
+
return emptyList() // ไม่มี view manager
|
|
32
15
|
}
|
|
33
16
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "connect-x-reactnative-livechat-sdk",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.3-legacy",
|
|
4
4
|
"description": "for Live Chat",
|
|
5
5
|
"main": "./lib/module/index.js",
|
|
6
6
|
"types": "./lib/typescript/src/index.d.ts",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"jest": "^29.7.0",
|
|
80
80
|
"prettier": "^3.0.3",
|
|
81
81
|
"react": "19.0.0",
|
|
82
|
-
"react-native": "0.
|
|
82
|
+
"react-native": "0.72.4",
|
|
83
83
|
"react-native-builder-bob": "^0.40.12",
|
|
84
84
|
"release-it": "^17.10.0",
|
|
85
85
|
"turbo": "^1.10.7",
|
|
@@ -173,4 +173,4 @@
|
|
|
173
173
|
"react-native-svg": "^15.12.0",
|
|
174
174
|
"socket.io-client": "^4.8.1"
|
|
175
175
|
}
|
|
176
|
-
}
|
|
176
|
+
}
|