diff --git a/infrastructure/eid-wallet/package.json b/infrastructure/eid-wallet/package.json index a2b3e07e..9e1dc6f1 100644 --- a/infrastructure/eid-wallet/package.json +++ b/infrastructure/eid-wallet/package.json @@ -1,6 +1,6 @@ { "name": "eid-wallet", - "version": "0.2.1", + "version": "0.3.0", "description": "", "type": "module", "scripts": { @@ -29,6 +29,7 @@ "@tauri-apps/plugin-barcode-scanner": "^2.2.0", "@tauri-apps/plugin-biometric": "^2.2.0", "@tauri-apps/plugin-deep-link": "^2.4.1", + "@tauri-apps/plugin-notification": "^2.3.1", "@tauri-apps/plugin-opener": "^2", "@tauri-apps/plugin-store": "^2.2.0", "@veriff/incontext-sdk": "^2.4.0", diff --git a/infrastructure/eid-wallet/src-tauri/Cargo.lock b/infrastructure/eid-wallet/src-tauri/Cargo.lock index 186f90e7..90763a14 100644 --- a/infrastructure/eid-wallet/src-tauri/Cargo.lock +++ b/infrastructure/eid-wallet/src-tauri/Cargo.lock @@ -895,9 +895,11 @@ dependencies = [ "tauri-plugin-biometric", "tauri-plugin-crypto-hw", "tauri-plugin-deep-link", + "tauri-plugin-notification", "tauri-plugin-opener", "tauri-plugin-store", "thiserror 2.0.12", + "uuid", ] [[package]] @@ -2040,6 +2042,18 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c41e0c4fef86961ac6d6f8a82609f55f31b05e4fce149ac5710e439df7619ba4" +[[package]] +name = "mac-notification-sys" +version = "0.6.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "119c8490084af61b44c9eda9d626475847a186737c0378c85e32d77c33a01cd4" +dependencies = [ + "cc", + "objc2 0.6.0", + "objc2-foundation 0.3.0", + "time", +] + [[package]] name = "markup5ever" version = "0.14.1" @@ -2189,6 +2203,20 @@ version = "0.1.14" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "72ef4a56884ca558e5ddb05a1d1e7e1bfd9a68d9ed024c21704cc98872dae1bb" +[[package]] +name = "notify-rust" +version = "4.11.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6442248665a5aa2514e794af3b39661a8e73033b1cc5e59899e1276117ee4400" +dependencies = [ + "futures-lite", + "log", + "mac-notification-sys", + "serde", + "tauri-winrt-notification", + "zbus", +] + [[package]] name = "num-conv" version = "0.1.0" @@ -2738,7 +2766,7 @@ checksum = "42cf17e9a1800f5f396bc67d193dc9411b59012a5876445ef450d449881e1016" dependencies = [ "base64 0.22.1", "indexmap 2.8.0", - "quick-xml", + "quick-xml 0.32.0", "serde", "time", ] @@ -2868,6 +2896,15 @@ dependencies = [ "memchr", ] +[[package]] +name = "quick-xml" +version = "0.37.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "331e97a1af0bf59823e6eadffe373d7b27f485be8748f71471c662c1f269b7fb" +dependencies = [ + "memchr", +] + [[package]] name = "quote" version = "1.0.40" @@ -3816,6 +3853,25 @@ dependencies = [ "windows-result", ] +[[package]] +name = "tauri-plugin-notification" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfe06ed89cff6d0ec06ff4f544fb961e4718348a33309f56ccb2086e77bc9116" +dependencies = [ + "log", + "notify-rust", + "rand 0.8.5", + "serde", + "serde_json", + "serde_repr", + "tauri", + "tauri-plugin", + "thiserror 2.0.12", + "time", + "url", +] + [[package]] name = "tauri-plugin-opener" version = "2.2.6" @@ -3951,6 +4007,18 @@ dependencies = [ "toml", ] +[[package]] +name = "tauri-winrt-notification" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b1e66e07de489fe43a46678dd0b8df65e0c973909df1b60ba33874e297ba9b9" +dependencies = [ + "quick-xml 0.37.5", + "thiserror 2.0.12", + "windows 0.61.3", + "windows-version", +] + [[package]] name = "tempfile" version = "3.19.1" diff --git a/infrastructure/eid-wallet/src-tauri/Cargo.toml b/infrastructure/eid-wallet/src-tauri/Cargo.toml index f0dc5b89..7634eb9e 100644 --- a/infrastructure/eid-wallet/src-tauri/Cargo.toml +++ b/infrastructure/eid-wallet/src-tauri/Cargo.toml @@ -21,9 +21,11 @@ tauri-build = { version = "2", features = [] } tauri = { version = "2", features = [] } tauri-plugin-opener = "2" tauri-plugin-deep-link = "2" +tauri-plugin-notification = "2" serde = { version = "1", features = ["derive"] } serde_json = "1" tauri-plugin-store = "2.2.0" +uuid = { version = "1.0", features = ["v4"] } argon2 = { version = "0.5.3" } diff --git a/infrastructure/eid-wallet/src-tauri/capabilities/mobile.json b/infrastructure/eid-wallet/src-tauri/capabilities/mobile.json index 7410b853..c39255b2 100644 --- a/infrastructure/eid-wallet/src-tauri/capabilities/mobile.json +++ b/infrastructure/eid-wallet/src-tauri/capabilities/mobile.json @@ -1,16 +1,22 @@ { - "$schema": "../gen/schemas/mobile-schema.json", - "identifier": "mobile-capability", - "description": "Capability for the main window on mobile", - "windows": ["main"], - "permissions": [ - "core:default", - "opener:default", - "store:default", - "biometric:default", - "barcode-scanner:default", - "deep-link:default", - "crypto-hw:default" - ], - "platforms": ["iOS", "android"] -} + "$schema": "../gen/schemas/mobile-schema.json", + "identifier": "mobile-capability", + "description": "Capability for the main window on mobile", + "windows": [ + "main" + ], + "permissions": [ + "core:default", + "opener:default", + "store:default", + "biometric:default", + "barcode-scanner:default", + "deep-link:default", + "crypto-hw:default", + "notification:default" + ], + "platforms": [ + "iOS", + "android" + ] +} \ No newline at end of file diff --git a/infrastructure/eid-wallet/src-tauri/gen/android/.idea/gradle.xml b/infrastructure/eid-wallet/src-tauri/gen/android/.idea/gradle.xml index f5d526c2..3d8e2749 100644 --- a/infrastructure/eid-wallet/src-tauri/gen/android/.idea/gradle.xml +++ b/infrastructure/eid-wallet/src-tauri/gen/android/.idea/gradle.xml @@ -25,6 +25,7 @@