Skip to content

Commit

Permalink
feat(ui): add contact by scanning QR code
Browse files Browse the repository at this point in the history
  • Loading branch information
mattyg committed Oct 15, 2024
1 parent ab4e1a5 commit 076278f
Show file tree
Hide file tree
Showing 18 changed files with 571 additions and 23 deletions.
59 changes: 56 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 19 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"network:android": "npm run build:happ && BOOTSTRAP_PORT=$(port) SIGNAL_PORT=$(port) INTERNAL_IP=$(internal-ip --ipv4) concurrently -k \"npm run local-services\" \"UI_PORT=1420 npm run -w ui start\" \"npm run tauri android dev\" \"npm run tauri dev\"",
"start:android": "npm run build:happ && BOOTSTRAP_PORT=$(port) SIGNAL_PORT=$(port) INTERNAL_IP=$(internal-ip --ipv4) concurrently -k \"npm run local-services\" \"UI_PORT=1420 npm run -w ui start\" \"npm run tauri android dev\"",
"launch": "concurrently-repeat \"npm run tauri dev\" $AGENTS",
"tauri": "TAURI_ANDROID_PACKAGE_UNESCAPED='com.volla.messages' tauri"
"tauri": "tauri"
},
"devDependencies": {
"@holochain-playground/cli": "^0.2.0",
Expand All @@ -52,7 +52,6 @@
"typescript": "^5.4.4"
},
"dependencies": {
"@tauri-apps/plugin-shell": "^2.0.0",
"dompurify": "^3.1.6",
"lodash-es": "^4.17.21",
"svelte-gestures": "^5.0.4",
Expand Down
2 changes: 2 additions & 0 deletions src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ tauri-plugin-notification = "2.0.0"
tauri-plugin-clipboard-manager = "2.0.0"
tauri-plugin-sharesheet = "0.0.1"
tauri-plugin-shell = "2.0.0"
tauri-plugin-barcode-scanner = "2.0.0"
tauri-plugin-os = "2.0.0"
url2 = "0.0.6"
app_dirs2 = "2.5.5"
tempdir = "0.3.7"
Expand Down
4 changes: 3 additions & 1 deletion src-tauri/capabilities/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
"clipboard-manager:allow-write-text",
"clipboard-manager:allow-read-text",
"sharesheet:allow-share-text",
"shell:default"
"shell:default",
"barcode-scanner:default",
"os:allow-platform"
]
}
2 changes: 1 addition & 1 deletion src-tauri/gen/schemas/acl-manifests.json

Large diffs are not rendered by default.

150 changes: 150 additions & 0 deletions src-tauri/gen/schemas/android-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,71 @@
"Identifier": {
"description": "Permission identifier",
"oneOf": [
{
"description": "This permission set configures which\nbarcode scanning features are by default exposed.\n\n#### Granted Permissions\n\nIt allows all barcode related features.\n\n",
"type": "string",
"const": "barcode-scanner:default"
},
{
"description": "Enables the cancel command without any pre-configured scope.",
"type": "string",
"const": "barcode-scanner:allow-cancel"
},
{
"description": "Enables the check_permissions command without any pre-configured scope.",
"type": "string",
"const": "barcode-scanner:allow-check-permissions"
},
{
"description": "Enables the open_app_settings command without any pre-configured scope.",
"type": "string",
"const": "barcode-scanner:allow-open-app-settings"
},
{
"description": "Enables the request_permissions command without any pre-configured scope.",
"type": "string",
"const": "barcode-scanner:allow-request-permissions"
},
{
"description": "Enables the scan command without any pre-configured scope.",
"type": "string",
"const": "barcode-scanner:allow-scan"
},
{
"description": "Enables the vibrate command without any pre-configured scope.",
"type": "string",
"const": "barcode-scanner:allow-vibrate"
},
{
"description": "Denies the cancel command without any pre-configured scope.",
"type": "string",
"const": "barcode-scanner:deny-cancel"
},
{
"description": "Denies the check_permissions command without any pre-configured scope.",
"type": "string",
"const": "barcode-scanner:deny-check-permissions"
},
{
"description": "Denies the open_app_settings command without any pre-configured scope.",
"type": "string",
"const": "barcode-scanner:deny-open-app-settings"
},
{
"description": "Denies the request_permissions command without any pre-configured scope.",
"type": "string",
"const": "barcode-scanner:deny-request-permissions"
},
{
"description": "Denies the scan command without any pre-configured scope.",
"type": "string",
"const": "barcode-scanner:deny-scan"
},
{
"description": "Denies the vibrate command without any pre-configured scope.",
"type": "string",
"const": "barcode-scanner:deny-vibrate"
},
{
"description": "No features are enabled by default, as we believe\nthe clipboard can be inherently dangerous and it is \napplication specific if read and/or write access is needed.\n\nClipboard interaction needs to be explicitly enabled.\n",
"type": "string",
Expand Down Expand Up @@ -2165,6 +2230,91 @@
"type": "string",
"const": "notification:deny-show"
},
{
"description": "This permission set configures which\noperating system information are available\nto gather from the frontend.\n\n#### Granted Permissions\n\nAll information except the host name are available.\n\n",
"type": "string",
"const": "os:default"
},
{
"description": "Enables the arch command without any pre-configured scope.",
"type": "string",
"const": "os:allow-arch"
},
{
"description": "Enables the exe_extension command without any pre-configured scope.",
"type": "string",
"const": "os:allow-exe-extension"
},
{
"description": "Enables the family command without any pre-configured scope.",
"type": "string",
"const": "os:allow-family"
},
{
"description": "Enables the hostname command without any pre-configured scope.",
"type": "string",
"const": "os:allow-hostname"
},
{
"description": "Enables the locale command without any pre-configured scope.",
"type": "string",
"const": "os:allow-locale"
},
{
"description": "Enables the os_type command without any pre-configured scope.",
"type": "string",
"const": "os:allow-os-type"
},
{
"description": "Enables the platform command without any pre-configured scope.",
"type": "string",
"const": "os:allow-platform"
},
{
"description": "Enables the version command without any pre-configured scope.",
"type": "string",
"const": "os:allow-version"
},
{
"description": "Denies the arch command without any pre-configured scope.",
"type": "string",
"const": "os:deny-arch"
},
{
"description": "Denies the exe_extension command without any pre-configured scope.",
"type": "string",
"const": "os:deny-exe-extension"
},
{
"description": "Denies the family command without any pre-configured scope.",
"type": "string",
"const": "os:deny-family"
},
{
"description": "Denies the hostname command without any pre-configured scope.",
"type": "string",
"const": "os:deny-hostname"
},
{
"description": "Denies the locale command without any pre-configured scope.",
"type": "string",
"const": "os:deny-locale"
},
{
"description": "Denies the os_type command without any pre-configured scope.",
"type": "string",
"const": "os:deny-os-type"
},
{
"description": "Denies the platform command without any pre-configured scope.",
"type": "string",
"const": "os:deny-platform"
},
{
"description": "Denies the version command without any pre-configured scope.",
"type": "string",
"const": "os:deny-version"
},
{
"description": "This permission set configures which\nsharesheet features are by default exposed.\n\n#### Granted Permissions\n\nIt allows acccess to all sharesheet commands.\n\n",
"type": "string",
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/gen/schemas/capabilities.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"main-capability":{"identifier":"main-capability","description":"Capability for the main window","local":true,"windows":["main","splashscreen"],"permissions":["core:path:default","core:event:default","core:window:default","core:app:default","core:resources:default","core:menu:default","core:tray:default","core:window:allow-set-title","notification:default","clipboard-manager:allow-write-text","clipboard-manager:allow-read-text","sharesheet:allow-share-text","shell:default"]}}
{"main-capability":{"identifier":"main-capability","description":"Capability for the main window","local":true,"windows":["main","splashscreen"],"permissions":["core:path:default","core:event:default","core:window:default","core:app:default","core:resources:default","core:menu:default","core:tray:default","core:window:allow-set-title","notification:default","clipboard-manager:allow-write-text","clipboard-manager:allow-read-text","sharesheet:allow-share-text","shell:default","barcode-scanner:default","os:allow-platform"]}}
Loading

0 comments on commit 076278f

Please sign in to comment.