Skip to content

Commit

Permalink
fix: handle single word bundle identifier when resolving Android doma…
Browse files Browse the repository at this point in the history
…in (#6313)
  • Loading branch information
lucasfernog authored Feb 19, 2023
1 parent 79eb054 commit 60a8b07
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 13 deletions.
7 changes: 7 additions & 0 deletions .changes/fix-empty-identifier.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"cli.rs": patch
"cli.js": patch
"tauri-macros": patch
---

Resolve Android package name from single word bundle identifiers.
2 changes: 1 addition & 1 deletion core/tauri-build/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ pub fn try_build(attributes: Attributes) -> Result<()> {
let last = s.clone().count() - 1;
let mut android_package_prefix = String::new();
for (i, w) in s.enumerate() {
if i != last {
if i == 0 || i != last {
android_package_prefix.push_str(w);
android_package_prefix.push('_');
}
Expand Down
Loading

0 comments on commit 60a8b07

Please sign in to comment.