tauri
tauri copied to clipboard
fix(android): allow and escape Kotlin keywords as package identifier, closes #9743
Issue: https://github.com/tauri-apps/tauri/issues/9743 Depends: https://github.com/tauri-apps/cargo-mobile2/pull/328
How to test
- Create a project named with Kotlin keyword, such as
when
orobject
- Modify
identifier
intauri.config.json
->aa.fun.tauri.dev
- Call
cargo tauri android init
- Should be able to init, and the package name insrc-tauri/gen/android/app/src/main/java/aa/fun/tauri/when/MainActivity.kt
should be "aa.`fun`.tauri.`when`" - Able to run
cargo tauri android dev
TODO
- [ ] Wait for https://github.com/tauri-apps/cargo-mobile2/pull/328 to merge and update
Cargo.toml
to the version