Skip to content

docs(tutorial): Explicitly set Java lang for create plugin command#524

Open
OS-pedrogustavobilro wants to merge 2 commits intomainfrom
docs/generate-plugin-java
Open

docs(tutorial): Explicitly set Java lang for create plugin command#524
OS-pedrogustavobilro wants to merge 2 commits intomainfrom
docs/generate-plugin-java

Conversation

@OS-pedrogustavobilro
Copy link
Contributor

1-liner PR.

With create-capacitor-plugin version 0.21.0, users can now specify android-lang argument to decide whether to use Java or Kotlin for the programming language for their plugin on Android.

Since the tutorial in the docs is Java-based, this PR updates the command to explicitly set the language being used (so that users don't have to prompt it afterwards). Maybe one day the tutorial can be revamped to use Kotlin (as well as probably a myriad of other updates), but that's not gonna happen in this PR.

Only added to the current docs, because it was added after official Cap 8 support in the create plugin package, so I don't see it making much sense adding for older versions, but please correct me if I'm wrong.

@OS-pedrogustavobilro OS-pedrogustavobilro requested a review from a team March 4, 2026 18:30
@vercel
Copy link

vercel bot commented Mar 4, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
capacitor-docs Ready Ready Preview, Comment Mar 4, 2026 6:39pm

Request Review

@jcesarmobile
Copy link
Member

so --android-lang is now mandatory? I don't love that, would have preferred to keep java as default if no param is passed.

Anyway, could be good to also add the author and directory so it doesn't prompt anything.
(would also need to remove the When prompted to provide a directory, use the default by pressing Enter. When asked for the author’s name, use your own! line).

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