Repository navigation
Conversation
clerk init works in an empty folder for Android as it does for iOS and macOS: "Android (Jetpack Compose)" joins the picker everywhere, and --starter --framework android takes --name and --android-package (default com.example.<lowercased name>); missing answers are StarterInputRequired, reported as input-required with --json, and no accountless mode applies. The starter is shaped like Android Studio's Empty Activity template: a version catalog pinning AGP 9.2.1, Kotlin 2.3.21 through the Compose compiler plugin alias (AGP 9's built-in Kotlin would be 2.2.10, which the SDK can't be consumed by), a Compose BOM, an app module with minSdk 24, the manifest, MainActivity, the theme, a vector launcher icon, .gitignore, an initial Git commit, and the Gradle 9.4.1 wrapper. The wrapper's scripts and jar are embedded in the CLI (Bun file imports) and copied in, with the distribution's checksum pinned in gradle-wrapper.properties, so the project builds with ./gradlew without Gradle on PATH. The existing Android setup then runs on the new app with no confirmation and the UI artifact by default. --prebuilt-auth-ui (or a yes to the prompt, on by default for a new starter) replaces the unchanged MainActivity with the prebuilt sign-in: progress while Clerk.isInitialized is false, AuthView until the auth flow completes, then UserButton and the signed-in email. Every JSON status after the app is written carries the starter and its continuation, and a setup error becomes setup-interrupted. StarterInputRequired, the starter summary, and setupInterrupted move to native/ so both engines share them.
🦋 Changeset detectedLatest commit: 017731c The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Comment |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Stacked on #588: this targets its branch and should be retargeted to
mainonce #588 merges.clerk initnow creates a new Android app in an empty folder, the way it already creates iOS and macOS apps. Before this, init stopped there withframework_undetectedand the new-project picker had no Android option.What the starter does
clerk init --starter --framework androidwith--nameand--android-package(defaultcom.example.<name>). A missing answer is reported asinput-requiredunder--json.minSdk24, the Gradle 9.4.1 wrapper, and an initial Git commit.uiartifact. With--prebuilt-auth-ui, or yes at the prompt,MainActivityshowsAuthViewuntil sign-in, thenUserButtonand the user's email.Decisions
gradle wrapperneeds a Gradle install most Android developers don't have, and downloading the jar at init would add a network and trust step.Validation
clerk init --starter --framework android … --prebuilt-auth-ui --jsonrun, an all-greenclerk doctor, a cleanassembleDebug, and on an emulator a test user signed up, saw the signed-in screen, and signed out.