@plusscommunities/pluss-core-app 4.0.3 → 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.
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { stringActions } from '../../apis';
|
|
2
2
|
import moment from 'moment';
|
|
3
3
|
import * as FileSystem from 'expo-file-system';
|
|
4
|
-
import * as FaceDetector from 'expo-face-detector';
|
|
4
|
+
// import * as FaceDetector from 'expo-face-detector';
|
|
5
|
+
|
|
5
6
|
const detectFaces = async remoteUrl => {
|
|
7
|
+
// deprecated
|
|
8
|
+
|
|
6
9
|
const parts = remoteUrl.split('/').splice(-2);
|
|
7
10
|
const mediaId = parts[0];
|
|
8
11
|
const extension = parts[1].split('.').splice(-1)[0];
|
|
@@ -10,9 +13,12 @@ const detectFaces = async remoteUrl => {
|
|
|
10
13
|
const {
|
|
11
14
|
uri: localUrl
|
|
12
15
|
} = await FileSystem.downloadAsync(remoteUrl, downloadPath);
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
+
|
|
17
|
+
// const faces = await FaceDetector.detectFacesAsync(localUrl, {
|
|
18
|
+
// mode: FaceDetector.FaceDetectorMode.accurate,
|
|
19
|
+
// });
|
|
20
|
+
|
|
21
|
+
const faces = null;
|
|
16
22
|
if (faces && faces.image && faces.image.uri) {
|
|
17
23
|
delete faces.image.uri;
|
|
18
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["stringActions","moment","FileSystem","
|
|
1
|
+
{"version":3,"names":["stringActions","moment","FileSystem","detectFaces","remoteUrl","parts","split","splice","mediaId","extension","downloadPath","cacheDirectory","uri","localUrl","downloadAsync","faces","image","timestamp","valueOf","setString","encodeURIComponent"],"sources":["detectFaces.js"],"sourcesContent":["import { stringActions } from '../../apis';\nimport moment from 'moment';\nimport * as FileSystem from 'expo-file-system';\n// import * as FaceDetector from 'expo-face-detector';\n\nconst detectFaces = async remoteUrl => {\n // deprecated\n\n const parts = remoteUrl.split('/').splice(-2);\n const mediaId = parts[0];\n const extension = parts[1].split('.').splice(-1)[0];\n\n const downloadPath = `${FileSystem.cacheDirectory}${mediaId}.${extension}`;\n\n const { uri: localUrl } = await FileSystem.downloadAsync(remoteUrl, downloadPath);\n\n // const faces = await FaceDetector.detectFacesAsync(localUrl, {\n // mode: FaceDetector.FaceDetectorMode.accurate,\n // });\n\n const faces = null;\n\n if (faces && faces.image && faces.image.uri) {\n delete faces.image.uri;\n }\n\n faces.timestamp = moment().valueOf();\n\n stringActions.setString('plussSpace', `imagefaces_${encodeURIComponent(remoteUrl)}`, faces);\n\n return faces;\n};\n\nexport default detectFaces;\n"],"mappings":"AAAA,SAASA,aAAa,QAAQ,YAAY;AAC1C,OAAOC,MAAM,MAAM,QAAQ;AAC3B,OAAO,KAAKC,UAAU,MAAM,kBAAkB;AAC9C;;AAEA,MAAMC,WAAW,GAAG,MAAMC,SAAS,IAAI;EACrC;;EAEA,MAAMC,KAAK,GAAGD,SAAS,CAACE,KAAK,CAAC,GAAG,CAAC,CAACC,MAAM,CAAC,CAAC,CAAC,CAAC;EAC7C,MAAMC,OAAO,GAAGH,KAAK,CAAC,CAAC,CAAC;EACxB,MAAMI,SAAS,GAAGJ,KAAK,CAAC,CAAC,CAAC,CAACC,KAAK,CAAC,GAAG,CAAC,CAACC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;EAEnD,MAAMG,YAAY,GAAI,GAAER,UAAU,CAACS,cAAe,GAAEH,OAAQ,IAAGC,SAAU,EAAC;EAE1E,MAAM;IAAEG,GAAG,EAAEC;EAAS,CAAC,GAAG,MAAMX,UAAU,CAACY,aAAa,CAACV,SAAS,EAAEM,YAAY,CAAC;;EAEjF;EACA;EACA;;EAEA,MAAMK,KAAK,GAAG,IAAI;EAElB,IAAIA,KAAK,IAAIA,KAAK,CAACC,KAAK,IAAID,KAAK,CAACC,KAAK,CAACJ,GAAG,EAAE;IAC3C,OAAOG,KAAK,CAACC,KAAK,CAACJ,GAAG;EACxB;EAEAG,KAAK,CAACE,SAAS,GAAGhB,MAAM,CAAC,CAAC,CAACiB,OAAO,CAAC,CAAC;EAEpClB,aAAa,CAACmB,SAAS,CAAC,YAAY,EAAG,cAAaC,kBAAkB,CAAChB,SAAS,CAAE,EAAC,EAAEW,KAAK,CAAC;EAE3F,OAAOA,KAAK;AACd,CAAC;AAED,eAAeZ,WAAW"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plusscommunities/pluss-core-app",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"description": "Core extension package for Pluss Communities platform",
|
|
5
5
|
"main": "dist/module/index.js",
|
|
6
6
|
"module": "dist/module/index.js",
|
|
@@ -20,45 +20,41 @@
|
|
|
20
20
|
},
|
|
21
21
|
"author": "Phillip Suh",
|
|
22
22
|
"license": "ISC",
|
|
23
|
-
"dependencies": {
|
|
24
|
-
|
|
25
|
-
"@
|
|
26
|
-
"@react-native-
|
|
27
|
-
"@react-native-picker/picker": "2.4.8",
|
|
23
|
+
"dependencies": {},
|
|
24
|
+
"peerDependencies": {
|
|
25
|
+
"@expo/vector-icons": "^14.0.0",
|
|
26
|
+
"@react-native-async-storage/async-storage": "1.21.0",
|
|
28
27
|
"aws-amplify": "^4.3.11",
|
|
29
28
|
"aws-amplify-react-native": "^6.0.2",
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"expo-
|
|
33
|
-
"expo-
|
|
34
|
-
"expo-
|
|
35
|
-
"expo-
|
|
36
|
-
"expo-image-
|
|
37
|
-
"expo-
|
|
38
|
-
"expo-
|
|
39
|
-
"expo-
|
|
40
|
-
"expo-
|
|
29
|
+
"axios": "^1.6.8",
|
|
30
|
+
"deprecated-react-native-prop-types": "^4.1.0",
|
|
31
|
+
"expo-av": "~13.10.6",
|
|
32
|
+
"expo-calendar": "~12.2.1",
|
|
33
|
+
"expo-constants": "~15.4.6",
|
|
34
|
+
"expo-file-system": "~16.0.9",
|
|
35
|
+
"expo-image-manipulator": "~11.8.0",
|
|
36
|
+
"expo-image-picker": "~14.7.1",
|
|
37
|
+
"expo-linear-gradient": "~12.7.2",
|
|
38
|
+
"expo-media-library": "~15.9.2",
|
|
39
|
+
"expo-screen-orientation": "~6.4.1",
|
|
40
|
+
"expo-sharing": "~11.10.0",
|
|
41
41
|
"expo-video-player": "^1.6.0",
|
|
42
42
|
"js-cookie": "^2.2.1",
|
|
43
43
|
"lodash": "^4.17.4",
|
|
44
44
|
"mime-types": "^2.1.24",
|
|
45
45
|
"moment": "^2.18.1",
|
|
46
46
|
"react": "18.2.0",
|
|
47
|
-
"react-native": "0.
|
|
47
|
+
"react-native": "0.73.6",
|
|
48
48
|
"react-native-auto-height-image": "3.1.3",
|
|
49
49
|
"react-native-elements": "^0.17.0",
|
|
50
|
+
"react-native-gifted-chat": "^0.16.3",
|
|
50
51
|
"react-native-image-zoom-viewer": "^3.0.1",
|
|
51
52
|
"react-native-iphone-x-helper": "^1.3.1",
|
|
52
53
|
"react-native-vimeo-iframe": "^1.0.4",
|
|
53
|
-
"react-native-webview": "
|
|
54
|
+
"react-native-webview": "13.6.4",
|
|
54
55
|
"react-native-youtube-iframe": "^2.2.1",
|
|
55
56
|
"react-redux": "^7.2.6"
|
|
56
57
|
},
|
|
57
|
-
"peerDependencies": {
|
|
58
|
-
"react-native-gifted-chat": "^0.16.3",
|
|
59
|
-
"axios": "^0.16.2",
|
|
60
|
-
"deprecated-react-native-prop-types": "^4.1.0"
|
|
61
|
-
},
|
|
62
58
|
"devDependencies": {
|
|
63
59
|
"react-native-builder-bob": "^0.18.2"
|
|
64
60
|
},
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { stringActions } from '../../apis';
|
|
2
2
|
import moment from 'moment';
|
|
3
3
|
import * as FileSystem from 'expo-file-system';
|
|
4
|
-
import * as FaceDetector from 'expo-face-detector';
|
|
4
|
+
// import * as FaceDetector from 'expo-face-detector';
|
|
5
5
|
|
|
6
6
|
const detectFaces = async remoteUrl => {
|
|
7
|
+
// deprecated
|
|
8
|
+
|
|
7
9
|
const parts = remoteUrl.split('/').splice(-2);
|
|
8
10
|
const mediaId = parts[0];
|
|
9
11
|
const extension = parts[1].split('.').splice(-1)[0];
|
|
@@ -12,9 +14,11 @@ const detectFaces = async remoteUrl => {
|
|
|
12
14
|
|
|
13
15
|
const { uri: localUrl } = await FileSystem.downloadAsync(remoteUrl, downloadPath);
|
|
14
16
|
|
|
15
|
-
const faces = await FaceDetector.detectFacesAsync(localUrl, {
|
|
16
|
-
|
|
17
|
-
});
|
|
17
|
+
// const faces = await FaceDetector.detectFacesAsync(localUrl, {
|
|
18
|
+
// mode: FaceDetector.FaceDetectorMode.accurate,
|
|
19
|
+
// });
|
|
20
|
+
|
|
21
|
+
const faces = null;
|
|
18
22
|
|
|
19
23
|
if (faces && faces.image && faces.image.uri) {
|
|
20
24
|
delete faces.image.uri;
|