-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(android): allow and escape Kotlin keywords as package identifier, c…
…loses #9743 (#9799) * fix(android): escape kotlin only keyword in template * fix: escape keywords in wry templates aswell * chore: add changelog * chore: remove unused code * fix(android): wry template, package name should reverse * update cargo-mobile2 --------- Co-authored-by: Lucas Nogueira <[email protected]>
- Loading branch information
1 parent
4754786
commit 71a5e2b
Showing
6 changed files
with
37 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"tauri-cli": "patch:enhance" | ||
--- | ||
|
||
On Android, allow using Kotlin keywords as identifiers and escape them in templates. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tooling/cli/templates/mobile/android/app/src/main/MainActivity.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
package {{reverse-domain app.identifier}} | ||
package {{escape-kotlin-keyword (reverse-domain app.identifier)}} | ||
|
||
class MainActivity : TauriActivity() |