tauri-apps / tauri-apps/plugins-workspace

Missing consumer-rules.pro

Open
#3,418 0 comments 0 reactions 0 assignees View on GitHub
platform: android plugin: barcode-scanner plugin: nfc type: bug
Dominant language
Rust
Stars
1.8k
Forks
602
Avg merge
4d 14h
Merged PRs (30d)
9

Description

### Describe the bug

The NFC and Barcode scanner plugin refer to a proguard file that is not present in the source code. I am not sure if this is generated during build time but it is not shipped in the resulting crate.
[onsumer-rules.pro](https://github.com/tauri-apps/plugins-workspace/blob/114e9025377a69d6d47f6b2b54212ae98e47998e/plugins/barcode-scanner/android/build.gradle.kts#L14)

I am unsure if there are other plugins affected. Using more modern android toolchains (gradle 9) will refuse to compile since the files can not be found.

### Reproduction

_No response_

### Expected behavior

A consumer-rules.pro should be present in the downloaded crate or at least during build time.

### Full `tauri info` output

```text
[✔] Environment
- OS: Ubuntu 24.4.0 x86_64 (X64) (ubuntu on wayland)
✔ webkit2gtk-4.1: 2.52.3
✔ rsvg2: 2.58.0
✔ rustc: 1.94.0 (4a4ef493e 2026-03-02)
✔ cargo: 1.94.0 (85eff7c80 2026-01-15)
✔ rustup: 1.26.0 (2026-04-20)
✔ Rust toolchain: stable-x86_64-unknown-linux-gnu (default)
- node: 24.14.1
- npm: 11.11.0

[-] Packages
- tauri 🦀: 2.10.3, (outdated, latest: 2.11.1)
- tauri-build 🦀: 2.5.6, (outdated, latest: 2.6.1)
- wry 🦀: 0.54.4, (outdated, latest: 0.55.1)
- tao 🦀: 0.34.8, (outdated, latest: 0.35.2)
- @tauri-apps/api ⱼₛ: not installed!
- @tauri-apps/cli ⱼₛ: 2.10.1 (outdated, latest: 2.11.1)

[-] Plugins
- tauri-plugin-barcode-scanner 🦀: 2.4.4
- @tauri-apps/plugin-barcode-scanner ⱼₛ: 2.4.4
- tauri-plugin-os 🦀: 2.3.2
- @tauri-apps/plugin-os ⱼₛ: 2.3.2
- tauri-plugin-log 🦀: 2.8.0
- @tauri-apps/plugin-log ⱼₛ: not installed!
- tauri-plugin-nfc 🦀: 2.3.5
- @tauri-apps/plugin-nfc ⱼₛ: 2.3.5

[-] App
- build-type: bundle
- CSP: unset
- frontendDist: ../dist
- devUrl: http://localhost:5173/
- bundler: Vite
```

### Stack trace

```text

```

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.