Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] Add CLI option to tauri plugin init to enable/disable iOS/Android projects #7749

Closed
Tracked by #1344
lorenzolewis opened this issue Sep 4, 2023 · 1 comment

Comments

@lorenzolewis
Copy link
Member

Describe the problem

Right now when running tauri plugin init it will always create a respective Swift and Kotlin project. To make a desktop-only plugin this is an awkward experience as the developer would have to then remove the respective projects.

Describe the solution you'd like

I personally prefer opt-in, so I'd see the default of tauri plugin init to NOT create a mobile project (or to prompt the dev if they'd like to). This could give the option to add flags such as tauri plugin init [--with-ios|--with-andoird] to bypass that prompt.

I'm not sure if running tauri plugin init --with-ios would still prompt the user if they'd like to init android, or if that would only init the base desktop project with iOS and skip android completely.

Alternatives considered

No response

Additional context

Originally brought up in https://github.com/tauri-apps/tauri-docs/pull/1412/files/be2b0c2e42ca05842674bdb5cd5cc55e1f551596#diff-2e62f026cfd52587aa884598003549fdb22855e8637da24c74c0ece364922bd8R36

@lorenzolewis
Copy link
Member Author

Actually, considering that tauri plugin add [android|ios] exist, I don't know if we would need any prompts.

  • The default of tauri plugin init could just init the desktop plugin
  • Running tauri plugin init --with-[android|ios] could be the equivalent of tauri plugin init && tauri plugin add [android|ios]

Not sure if those two commands are set up to run directly back-to-back nicely or not, though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

1 participant