2018-07-23 15:21:31 +00:00
|
|
|
{
|
|
|
|
"name": "StatusIm",
|
|
|
|
"version": "0.0.1",
|
|
|
|
"private": true,
|
|
|
|
"scripts": {
|
|
|
|
"start": "node node_modules/react-native/local-cli/cli.js start",
|
|
|
|
"prepare": "patch-package"
|
|
|
|
},
|
|
|
|
"desktopExternalModules": [
|
2019-02-02 17:21:05 +00:00
|
|
|
"node_modules/react-native-languages/desktop",
|
2018-07-23 15:21:31 +00:00
|
|
|
"node_modules/react-native-config/desktop",
|
|
|
|
"node_modules/react-native-fs/desktop",
|
|
|
|
"node_modules/react-native-http-bridge/desktop",
|
|
|
|
"node_modules/react-native-webview-bridge/desktop",
|
|
|
|
"node_modules/react-native-keychain/desktop",
|
|
|
|
"node_modules/react-native-securerandom/desktop",
|
2018-08-29 22:45:19 +00:00
|
|
|
"modules/react-native-status/desktop",
|
2018-10-16 13:23:29 +00:00
|
|
|
"modules/react-native-desktop-linking/desktop",
|
2018-11-28 19:36:39 +00:00
|
|
|
"modules/react-native-desktop-menu/desktop",
|
2018-12-13 15:42:28 +00:00
|
|
|
"modules/react-native-desktop-config/desktop",
|
2018-12-06 20:00:14 +00:00
|
|
|
"modules/react-native-desktop-shortcuts/desktop",
|
2018-10-19 15:50:35 +00:00
|
|
|
"modules/react-native-desktop-notification/desktop",
|
2018-08-29 22:45:19 +00:00
|
|
|
"node_modules/google-breakpad"
|
2018-07-23 15:21:31 +00:00
|
|
|
],
|
2018-08-21 13:18:16 +00:00
|
|
|
"desktopFonts": [
|
2019-08-29 11:11:46 +00:00
|
|
|
"../../../../../resources/fonts/Inter-BlackItalic.otf",
|
|
|
|
"../../../../../resources/fonts/Inter-Black.otf",
|
|
|
|
"../../../../../resources/fonts/Inter-BoldItalic.otf",
|
|
|
|
"../../../../../resources/fonts/Inter-Bold.otf",
|
|
|
|
"../../../../../resources/fonts/Inter-ExtraBoldItalic.otf",
|
|
|
|
"../../../../../resources/fonts/Inter-ExtraBold.otf",
|
|
|
|
"../../../../../resources/fonts/Inter-ExtraLight-BETA.otf",
|
|
|
|
"../../../../../resources/fonts/Inter-ExtraLightItalic-BETA.otf",
|
|
|
|
"../../../../../resources/fonts/Inter-Italic.otf",
|
|
|
|
"../../../../../resources/fonts/Inter-Light-BETA.otf",
|
|
|
|
"../../../../../resources/fonts/Inter-LightItalic-BETA.otf",
|
|
|
|
"../../../../../resources/fonts/Inter-MediumItalic.otf",
|
|
|
|
"../../../../../resources/fonts/Inter-Medium.otf",
|
|
|
|
"../../../../../resources/fonts/Inter-Regular.otf",
|
|
|
|
"../../../../../resources/fonts/Inter-SemiBoldItalic.otf",
|
|
|
|
"../../../../../resources/fonts/Inter-SemiBold.otf",
|
|
|
|
"../../../../../resources/fonts/Inter-Thin-BETA.otf",
|
|
|
|
"../../../../../resources/fonts/Inter-ThinItalic-BETA.otf"
|
2018-08-21 13:18:16 +00:00
|
|
|
],
|
2018-07-23 15:21:31 +00:00
|
|
|
"dependencies": {
|
2018-10-05 16:02:49 +00:00
|
|
|
"assert": "1.4.1",
|
|
|
|
"asyncstorage-down": "4.0.1",
|
2018-09-24 14:16:22 +00:00
|
|
|
"babel-preset-react-native": "5.0.2",
|
2019-01-14 09:42:29 +00:00
|
|
|
"bignumber.js": "git+https://github.com/status-im/bignumber.js.git#v4.0.2-status",
|
2018-07-23 15:21:31 +00:00
|
|
|
"buffer": "3.6.0",
|
|
|
|
"chance": "1.0.12",
|
|
|
|
"create-react-class": "15.6.2",
|
|
|
|
"emojilib": "2.2.9",
|
2018-09-10 15:07:54 +00:00
|
|
|
"eth-phishing-detect": "1.1.13",
|
2018-07-23 15:21:31 +00:00
|
|
|
"events": "1.1.1",
|
2019-01-15 10:32:48 +00:00
|
|
|
"google-breakpad": "git+https://github.com/status-im/google-breakpad.git#v0.9.0",
|
2019-08-29 11:11:46 +00:00
|
|
|
"hi-base32": "0.5.0",
|
2019-02-02 17:21:05 +00:00
|
|
|
"i18n-js": "^3.1.0",
|
2019-01-15 12:28:17 +00:00
|
|
|
"identicon.js": "git+https://github.com/status-im/identicon.js.git#v1.2.1-status",
|
2018-09-05 06:39:24 +00:00
|
|
|
"js-sha3": "^0.8.0",
|
2019-09-03 11:25:12 +00:00
|
|
|
"qrcode": "^1.4.1",
|
2019-01-17 10:10:40 +00:00
|
|
|
"metro": "^0.48.1",
|
|
|
|
"metro-react-native-babel-preset": "0.45.6",
|
2019-01-15 12:28:17 +00:00
|
|
|
"nfc-react-native": "git+https://github.com/status-im/nfc-react-native.git#v0.3.8-status",
|
2019-01-17 10:10:40 +00:00
|
|
|
"react": "16.6.1",
|
2018-09-25 14:41:02 +00:00
|
|
|
"react-dom": "16.4.2",
|
2019-07-12 13:31:45 +00:00
|
|
|
"react-native": "git+https://github.com/status-im/react-native-desktop.git#v0.57.8_10",
|
2018-07-23 15:21:31 +00:00
|
|
|
"react-native-background-timer": "2.0.0",
|
|
|
|
"react-native-camera": "0.10.0",
|
2019-01-15 12:28:17 +00:00
|
|
|
"react-native-config": "git+https://github.com/status-im/react-native-config.git#v0.11.2-status",
|
2018-07-23 15:21:31 +00:00
|
|
|
"react-native-dialogs": "0.0.20",
|
|
|
|
"react-native-fetch-polyfill": "1.1.2",
|
2019-01-15 12:28:17 +00:00
|
|
|
"react-native-fs": "git+https://github.com/status-im/react-native-fs.git#v2.9.7-status",
|
2019-01-15 10:32:48 +00:00
|
|
|
"react-native-http": "git+https://github.com/tradle/react-native-http.git#834492d",
|
2018-11-05 15:34:59 +00:00
|
|
|
"react-native-http-bridge": "0.6.1",
|
2018-07-23 15:21:31 +00:00
|
|
|
"react-native-image-crop-picker": "0.18.1",
|
|
|
|
"react-native-image-resizer": "1.0.0",
|
|
|
|
"react-native-invertible-scroll-view": "1.1.0",
|
2019-02-15 08:04:03 +00:00
|
|
|
"react-native-keychain": "git+https://github.com/status-im/react-native-keychain.git#v.3.0.0-3-status",
|
2019-02-02 17:21:05 +00:00
|
|
|
"react-native-languages": "git+https://github.com/status-im/react-native-languages.git#v0.1.1-status",
|
2019-08-29 11:11:46 +00:00
|
|
|
"react-native-navigation-twopane": "git+https://github.com/status-im/react-native-navigation-twopane.git#v0.0.2-status",
|
2018-07-23 15:21:31 +00:00
|
|
|
"react-native-os": "1.1.0",
|
2019-01-15 12:28:17 +00:00
|
|
|
"react-native-securerandom": "git+https://github.com/status-im/react-native-securerandom.git#0.1.1-2",
|
2018-07-23 15:21:31 +00:00
|
|
|
"react-native-splash-screen": "3.0.6",
|
|
|
|
"react-native-tcp": "3.3.0",
|
|
|
|
"react-native-udp": "2.2.1",
|
2019-01-15 12:28:17 +00:00
|
|
|
"react-native-webview-bridge": "git+https://github.com/status-im/react-native-webview-bridge.git#0.33.16-status-rn049-desktop",
|
2019-05-03 12:52:19 +00:00
|
|
|
"react-navigation": "^2.12.1",
|
|
|
|
"realm": "git+https://github.com/status-im/realm-js.git#v2.20.1",
|
2019-01-14 09:42:29 +00:00
|
|
|
"status-conan": "git+https://github.com/status-im/status-conan.git#v1.0.0",
|
2018-09-05 06:39:24 +00:00
|
|
|
"text-encoding": "^0.6.4",
|
2018-07-23 15:21:31 +00:00
|
|
|
"url": "0.10.3",
|
Adds topic negotiation and partitioned topic
All the code has been implemented in statusgo: status-im/status-go#1466
Basically all the whisper filter management is done at that level.
Technical description
On startup we load all chats and send a list of them to status go:
For a public chat: {:chatId "status"}, we create a single filter, based on the name of the chat.
For each contact added by us, each user in a group chat and each one to one chat open, we send:
{:chatId "0x", :oneToOne true}. This will create a chats, to listen to their contact code.
Any previously negotiated topic is also returned.
Once loaded, we create our filters, and upsert the mailserver topics, both of which are solely based on the filters loaded.
In order to remove a chat, we delete/stopwatching first the the filter in status-react and then ask status-go to remove the filter. For a public chat we always remove, for a one-to-one we remove only if the user is not in our contacts, or in a group chat or we have a chat open. Negotiated topics are never removed, as otherwise the other user won't be able to contact us anymore.
On stopping whisper we don't have to ask status-go to remove filters as they are removed automatically.
Some more logic can be pushed in status-go, but that will be in subsequent PRs.
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2019-06-05 11:34:04 +00:00
|
|
|
"web3": "git+https://github.com/status-im/web3.js.git#0.20.3-status.alpha.3",
|
2019-08-29 11:11:46 +00:00
|
|
|
"web3-utils": "1.0.0-beta.36"
|
2018-07-23 15:21:31 +00:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2019-01-14 09:42:29 +00:00
|
|
|
"@babel/core": "7.0.1",
|
|
|
|
"@babel/generator": "7.0.0",
|
|
|
|
"@babel/helper-builder-react-jsx": "7.0.0",
|
|
|
|
"@babel/plugin-transform-block-scoping": "7.0.0",
|
|
|
|
"@babel/preset-env": "7.1.0",
|
|
|
|
"@babel/register": "7.0.0",
|
2019-07-03 19:00:51 +00:00
|
|
|
"coveralls": "^3.0.4",
|
2019-08-06 14:00:51 +00:00
|
|
|
"nyc": "^14.1.1",
|
2019-08-29 11:11:46 +00:00
|
|
|
"patch-package": "^5.1.1",
|
2019-08-06 14:00:51 +00:00
|
|
|
"rn-snoopy": "git+https://github.com/status-im/rn-snoopy.git#v2.0.2-status"
|
2018-08-30 22:08:47 +00:00
|
|
|
},
|
|
|
|
"optionalDependencies": {
|
|
|
|
"appdmg": "^0.5.2"
|
2018-07-23 15:21:31 +00:00
|
|
|
}
|
|
|
|
}
|