Skip to content

fix(core): allow hyphens and underscores on identifiers, closes #9707#10700

Merged
lucasfernog merged 8 commits intodevfrom
fix/mobile-identifier
Aug 21, 2024
Merged

fix(core): allow hyphens and underscores on identifiers, closes #9707#10700
lucasfernog merged 8 commits intodevfrom
fix/mobile-identifier

Conversation

@lucasfernog
Copy link
Copy Markdown
Member

No description provided.

@lucasfernog lucasfernog requested a review from a team as a code owner August 20, 2024 18:20
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Aug 20, 2024

Package Changes Through 003d8e8

There are 5 changes which include tauri-utils with prerelease, tauri-cli with prerelease, @tauri-apps/cli with prerelease, tauri-build with prerelease, tauri-runtime-wry with prerelease

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
tauri-utils 2.0.0-rc.5 2.0.0-rc.6
tauri-bundler 2.0.1-rc.4 2.0.1-rc.5
tauri-runtime 2.0.0-rc.5 2.0.0-rc.6
tauri-runtime-wry 2.0.0-rc.5 2.0.0-rc.6
tauri-codegen 2.0.0-rc.5 2.0.0-rc.6
tauri-macros 2.0.0-rc.5 2.0.0-rc.6
tauri-plugin 2.0.0-rc.5 2.0.0-rc.6
tauri-build 2.0.0-rc.5 2.0.0-rc.6
tauri 2.0.0-rc.5 2.0.0-rc.6
@tauri-apps/cli 2.0.0-rc.6 2.0.0-rc.7
tauri-cli 2.0.0-rc.6 2.0.0-rc.7

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

@lucasfernog lucasfernog marked this pull request as draft August 20, 2024 19:01
@lucasfernog
Copy link
Copy Markdown
Member Author

needs a wry fix i think

@lucasfernog
Copy link
Copy Markdown
Member Author

Needs tauri-apps/tao#964

@lucasfernog lucasfernog marked this pull request as ready for review August 21, 2024 03:00
Comment on lines 479 to +481
println!("cargo:rustc-env=TAURI_ANDROID_PACKAGE_NAME_APP_NAME={w}");
} else {
android_package_prefix.push_str(w);
android_package_prefix.push_str(&w.replace(['_', '-'], "_1"));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TAURI_ANDROID_PACKAGE_NAME_APP_NAME seemed to be replaced in

let app_name = get_env_var(
"TAURI_ANDROID_PACKAGE_NAME_APP_NAME",
|r| r.replace('-', "_"),
&mut error,
&function,
);
before it calls android_binding!

Should we move that replacement to L479 as well? So that we can do it in one place.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good idea, pushed

@pewsheen
Copy link
Copy Markdown
Contributor

needs a wry fix i think

Looks like we don't need it? Other than this one, I think it's good to merge

@lucasfernog
Copy link
Copy Markdown
Member Author

needs a wry fix i think

Looks like we don't need it? Other than this one, I think it's good to merge

yeah it was just the tao thing

@lucasfernog lucasfernog merged commit 793ee05 into dev Aug 21, 2024
@lucasfernog lucasfernog deleted the fix/mobile-identifier branch August 21, 2024 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants