react-native-acoustic-connect-beta 16.0.25 → 16.0.27
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/Example/nativebase-v3-kitchensink/package.json +1 -1
- package/README.md +1 -1
- package/package.json +7 -5
- package/scripts/gradleParser.js +13 -9
- package/scripts/javaParser.js +10 -5
- package/scripts/postInstallScripts.sh +2 -0
- package/scripts/reviewConnectConfig.js +2 -0
- package/scripts/xmlparser.js +13 -9
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"react": "18.2.0",
|
|
16
16
|
"react-dom": "18.2.0",
|
|
17
17
|
"react-native": "0.72.10",
|
|
18
|
-
"react-native-acoustic-connect-beta": "16.0.
|
|
18
|
+
"react-native-acoustic-connect-beta": "16.0.27",
|
|
19
19
|
"react-native-gesture-handler": "~2.12.0",
|
|
20
20
|
"react-native-keyboard-aware-scroll-view": "^0.9.5",
|
|
21
21
|
"react-native-reanimated": "~3.3.0",
|
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@ If you have already installed Node on your system, make sure it is Node 14 or ne
|
|
|
17
17
|
|
|
18
18
|
**This module uses only enhanced replay.
|
|
19
19
|
|
|
20
|
-
[
|
|
20
|
+
[Connect Install Documentation](https://developer.goacoustic.com/acoustic-connect/docs/react-native-integration)
|
|
21
21
|
|
|
22
22
|
---
|
|
23
23
|
# Demo
|
package/package.json
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"author": "Acoustic, L.P., Omar Hernandez, Chang Jie Yang",
|
|
3
|
-
"
|
|
4
|
-
"devDependencies": {
|
|
3
|
+
"dependencies": {
|
|
5
4
|
"@prettier/plugin-xml": "^2.2.0",
|
|
6
5
|
"fast-xml-parser": "^4.0.8",
|
|
7
|
-
"jetifier": "^1.6.3",
|
|
8
6
|
"prettier": "^2.7.1",
|
|
9
|
-
"prettier-plugin-java": "^1.6.2"
|
|
7
|
+
"prettier-plugin-java": "^1.6.2"
|
|
8
|
+
},
|
|
9
|
+
"description": "BETA: React native plugin for Acoustic Connect",
|
|
10
|
+
"devDependencies": {
|
|
11
|
+
"jetifier": "^1.6.3",
|
|
10
12
|
"react-native": "0.72.6"
|
|
11
13
|
},
|
|
12
14
|
"homepage": "https://github.com/aipoweredmarketer/react-native-acoustic-connect-beta",
|
|
@@ -38,5 +40,5 @@
|
|
|
38
40
|
"verifyConnectSetup": "node scripts/verifyConnectSetup.js $INIT_CWD"
|
|
39
41
|
},
|
|
40
42
|
"summary": "react-native ios android tealeaf connect cxa wxca er enhanced-replay",
|
|
41
|
-
"version": "16.0.
|
|
43
|
+
"version": "16.0.27"
|
|
42
44
|
}
|
package/scripts/gradleParser.js
CHANGED
|
@@ -1,11 +1,23 @@
|
|
|
1
|
-
|
|
1
|
+
/********************************************************************************************
|
|
2
|
+
* Copyright (C) 2024 Acoustic, L.P. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* NOTICE: This file contains material that is confidential and proprietary to
|
|
5
|
+
* Acoustic, L.P. and/or other developers. No license is granted under any intellectual or
|
|
6
|
+
* industrial property rights of Acoustic, L.P. except as may be provided in an agreement with
|
|
7
|
+
* Acoustic, L.P. Any unauthorized copying or distribution of content from this file is
|
|
8
|
+
* prohibited.
|
|
9
|
+
********************************************************************************************/
|
|
2
10
|
const fs = require('fs');
|
|
3
11
|
const path = require('path');
|
|
4
12
|
const { exit } = require('process');
|
|
5
13
|
const { isValid } = require('./util');
|
|
6
14
|
const directoryPath = path.join(__dirname,"..","..","..")
|
|
7
15
|
|
|
16
|
+
console.log("Run gradleParser.js");
|
|
17
|
+
|
|
8
18
|
if(!isValid(`${directoryPath}/android`)){
|
|
19
|
+
console.log("Directory not valid:")
|
|
20
|
+
console.log(`${directoryPath}/android`)
|
|
9
21
|
exit(0)
|
|
10
22
|
}
|
|
11
23
|
|
|
@@ -25,11 +37,3 @@ try {
|
|
|
25
37
|
} catch (err) {
|
|
26
38
|
console.error(err);
|
|
27
39
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
package/scripts/javaParser.js
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/********************************************************************************************
|
|
2
|
+
* Copyright (C) 2024 Acoustic, L.P. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* NOTICE: This file contains material that is confidential and proprietary to
|
|
5
|
+
* Acoustic, L.P. and/or other developers. No license is granted under any intellectual or
|
|
6
|
+
* industrial property rights of Acoustic, L.P. except as may be provided in an agreement with
|
|
7
|
+
* Acoustic, L.P. Any unauthorized copying or distribution of content from this file is
|
|
8
|
+
* prohibited.
|
|
9
|
+
********************************************************************************************/
|
|
1
10
|
const prettier = require("prettier");
|
|
2
11
|
const fs = require("fs");
|
|
3
12
|
const path = require("path");
|
|
@@ -7,12 +16,11 @@ const { exit } = require("process");
|
|
|
7
16
|
const { isValid } = require('./util');
|
|
8
17
|
const directoryPath = path.join(__dirname, "..", "..", "..");
|
|
9
18
|
|
|
10
|
-
console.log("
|
|
19
|
+
console.log("Run javaParser.js");
|
|
11
20
|
|
|
12
21
|
if (!isValid(`${directoryPath}/android`)) {
|
|
13
22
|
console.log("Directory not valid:")
|
|
14
23
|
console.log(`${directoryPath}/android`)
|
|
15
|
-
console.log("*********************************************************************************************");
|
|
16
24
|
exit(0);
|
|
17
25
|
}
|
|
18
26
|
|
|
@@ -64,7 +72,6 @@ if (packageName == null) {
|
|
|
64
72
|
console.log("Found the following applicationId:" + packageName);
|
|
65
73
|
if (packageName == null) {
|
|
66
74
|
console.log("applicationId not found:")
|
|
67
|
-
console.log("*********************************************************************************************");
|
|
68
75
|
exit(0);
|
|
69
76
|
}
|
|
70
77
|
|
|
@@ -132,5 +139,3 @@ if (updateMainActivity) {
|
|
|
132
139
|
} else {
|
|
133
140
|
console.log("Update not needed for:" + mainActivityPath);
|
|
134
141
|
}
|
|
135
|
-
|
|
136
|
-
console.log("*********************************************************************************************");
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
echo "**Acoustic Integration***********************************************************************"
|
|
1
2
|
node ./scripts/reviewConnectConfig.js
|
|
2
3
|
node ./scripts/javaParser.js
|
|
3
4
|
node ./scripts/xmlParser.js
|
|
4
5
|
node ./scripts/gradleParser.js
|
|
6
|
+
echo "*********************************************************************************************"
|
|
@@ -15,6 +15,8 @@ const fs = require('fs');
|
|
|
15
15
|
const filePathBaseConnectConfig = "../../ConnectConfig.json"
|
|
16
16
|
const filePathTemplateConnectConfig = "scripts/ConnectConfig.json"
|
|
17
17
|
|
|
18
|
+
console.log("Run reviewConnectConfig.js");
|
|
19
|
+
|
|
18
20
|
if (fs.existsSync(filePathBaseConnectConfig)) {
|
|
19
21
|
console.log("ConnectConfig found in your project. You are ready to go!");
|
|
20
22
|
} else {
|
package/scripts/xmlparser.js
CHANGED
|
@@ -1,20 +1,29 @@
|
|
|
1
|
+
/********************************************************************************************
|
|
2
|
+
* Copyright (C) 2024 Acoustic, L.P. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* NOTICE: This file contains material that is confidential and proprietary to
|
|
5
|
+
* Acoustic, L.P. and/or other developers. No license is granted under any intellectual or
|
|
6
|
+
* industrial property rights of Acoustic, L.P. except as may be provided in an agreement with
|
|
7
|
+
* Acoustic, L.P. Any unauthorized copying or distribution of content from this file is
|
|
8
|
+
* prohibited.
|
|
9
|
+
********************************************************************************************/
|
|
1
10
|
const prettier = require("prettier");
|
|
2
11
|
const fs = require("fs");
|
|
3
12
|
const path = require("path");
|
|
4
13
|
const xmlPaserPlugin = require("@prettier/plugin-xml");
|
|
5
|
-
|
|
6
14
|
const { exit } = require('process');
|
|
7
|
-
|
|
8
15
|
const { isValid } = require('./util');
|
|
9
16
|
|
|
10
|
-
|
|
17
|
+
console.log("Run xmlParser.js");
|
|
11
18
|
|
|
19
|
+
const directoryPath = path.join(__dirname,"..","..","..")
|
|
12
20
|
if(!isValid(`${directoryPath}/android`)){
|
|
21
|
+
console.log("Directory not valid:")
|
|
22
|
+
console.log(`${directoryPath}/android`)
|
|
13
23
|
exit(0)
|
|
14
24
|
}
|
|
15
25
|
|
|
16
26
|
const filePath = `${directoryPath}/android/app/src/main/AndroidManifest.xml`;
|
|
17
|
-
|
|
18
27
|
const permssions = ['android.permission.INTERNET',
|
|
19
28
|
'android.permission.ACCESS_NETWORK_STATE',
|
|
20
29
|
'android.permission.ACCESS_WIFI_STATE',
|
|
@@ -55,8 +64,3 @@ try {
|
|
|
55
64
|
} catch (err) {
|
|
56
65
|
console.error(err);
|
|
57
66
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|