Skip to content

Commit 60a8b07

Browse files
authored
fix: handle single word bundle identifier when resolving Android domain (#6313)
1 parent 79eb054 commit 60a8b07

File tree

4 files changed

+19
-13
lines changed

4 files changed

+19
-13
lines changed

.changes/fix-empty-identifier.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"cli.rs": patch
3+
"cli.js": patch
4+
"tauri-macros": patch
5+
---
6+
7+
Resolve Android package name from single word bundle identifiers.

core/tauri-build/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ pub fn try_build(attributes: Attributes) -> Result<()> {
274274
let last = s.clone().count() - 1;
275275
let mut android_package_prefix = String::new();
276276
for (i, w) in s.enumerate() {
277-
if i != last {
277+
if i == 0 || i != last {
278278
android_package_prefix.push_str(w);
279279
android_package_prefix.push('_');
280280
}

0 commit comments

Comments
 (0)