xfuture 1.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/index.js ADDED
@@ -0,0 +1,29 @@
1
+ let LVRTCEngineNativePath = "";
2
+ let os = require("os");
3
+ var isMac = true;
4
+ if (os.platform() === "win32") {
5
+ LVRTCEngineNativePath = "./sdk/x86/linkv_engine";
6
+ isMac = false;
7
+ } else if (os.platform() === "darwin") {
8
+ let arch = os.arch();
9
+ if (arch == "arm64") {
10
+ LVRTCEngineNativePath = "./sdk/mac_arm64/xFuture";
11
+ }
12
+ else {
13
+ LVRTCEngineNativePath = "./sdk/mac/xFuture";
14
+ }
15
+ } else {
16
+ throw ("Platform not supported")
17
+ }
18
+
19
+ const RTC = require(LVRTCEngineNativePath);
20
+
21
+ class xFuture {
22
+
23
+ SetupURL(){
24
+ return RTC.SetupURL();
25
+ }
26
+ }
27
+
28
+ const xFutureInstance = new xFuture;
29
+ module.exports = xFutureInstance;
Binary file
package/package.json ADDED
@@ -0,0 +1,38 @@
1
+ {
2
+ "name": "xfuture",
3
+ "version": "1.0.0",
4
+ "description": "electron vpn sdk",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "test"
8
+ },
9
+ "keywords": [
10
+ "chatgpt"
11
+ ],
12
+ "author": "badwin",
13
+ "license": "ISC",
14
+
15
+ "dependencies": {
16
+ "electron": "v25.1.1",
17
+ "mac": "^0.4.0"
18
+ },
19
+ "devDependencies": {
20
+ "@electron/rebuild": "^3.2.10"
21
+ },
22
+ "files": [
23
+ "package/*",
24
+ "index.js",
25
+ "package.json"
26
+ ],
27
+ "build": {
28
+ "mac": {
29
+ "entitlements": "build/entitlements.mac.plist",
30
+ "entitlementsInherit": "build/entitlements.mac.plist",
31
+ "extendInfo": {
32
+ "NSMicrophoneUsageDescription": "I need access to your microphone to send your voice to others in the session room.",
33
+ "NSCameraUsageDescription": "I need access to your camera so that others can see you in the session room.",
34
+ "logToStdErr": true
35
+ }
36
+ }
37
+ }
38
+ }