Closed Almost-Senseless-Coder closed 5 days ago
I'm not familiar with Android, but I think that is because fun
is a keyword in Kotlin, and will have some problems when building an Android project if it is not escaped properly?
I tried it out in Android Studio. Indeed fun.app_name
is valid, but gets escaped to `fun`.app_name as the package name.
I'm not sure how to reproduce this in Tauri, or if it's possible to reproduce at all. Writing the app identifier as
"`fun`.app_name"
results in an error because ` isn't ASCII alphanumeric.
Describe the bug
Suppose we have an app identifier like
fun.game
. Thencargo tauri android init
fails with the following error message:This shouldn't happen, as
fun
is a perfectly valid top level domain, just likeonline
,io
orgarden
.The issue appears to be that for some reason Rust doesn't see
fun
as aString
, but a keyword, which obviously is prohibited.Reproduction
cargo create-tauri-app --beta
and confirm mobile support.tauri.conf.json
tofun.game
or any other identifier starting withfun
.cargo tauri android init
.Expected behavior
I'd expect the generation of the Android project to complete successfully.
Full
tauri info
output