pevers / tauri-plugin-nosleep

Tauri plugin to block the power save functionality in the OS
MIT License
12 stars 3 forks source link

Error when running with Tauri V2 #6

Open syirilrakhulh opened 4 months ago

syirilrakhulh commented 4 months ago

When try to running locally with Xcode simulator get error error[E0432]: unresolved import 'nosleep::NoSleep' . Install tauri-plugin-nosleep with git link branch v2.

Tauri Info from the project

[✔] Environment
    - OS: Mac OS 14.2.1 X64
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.76.0 (07dca489a 2024-02-04)
    ✔ cargo: 1.76.0 (c84b36747 2024-01-18)
    ✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
    ✔ Rust toolchain: stable-aarch64-apple-darwin (default)
    - node: 18.18.0
    - pnpm: 8.15.4
    - yarn: 1.22.19
    - npm: 9.8.1

[-] Packages
    - tauri [RUST]: 2.0.0-beta.8
    - tauri-build [RUST]: 2.0.0-beta.6
    - wry [RUST]: 0.37.0
    - tao [RUST]: 0.26.1
    - @tauri-apps/api [NPM]: 2.0.0-beta.3
    - @tauri-apps/cli [NPM]: 2.0.0-beta.6

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../../dist/apps/clientapp
    - devUrl: http://localhost:4200/
    - framework: SolidJS
    - bundler: Vite

[-] iOS
    - Developer Teams: 
pevers commented 4 months ago

Hey @syirilrakhulh , thanks for the report. Currently there is no support for mobile. I think it will not be super difficult to implement this as we can fetch the sharedApplication and then disable the lock. I'll have a look this weekend.