Add minimal Jetpack Compose quickstart for the Android SDK#48
Open
fungc-io wants to merge 1 commit into
Open
Conversation
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.
Adds a new page Android SDK with Jetpack Compose (
get-started/native-mobile-app/android/jetpack-compose.md) as a sub-page under Android SDK, plus itsSUMMARY.mdentry.Why
The main Android SDK guide is View/XML + callback listeners, but the linked example app is now Jetpack Compose. This page gives Compose developers a walkthrough that matches the modern UI toolkit without forcing them to translate XML to Compose.
Design: deliberately minimal
It uses the SDK's coroutine
suspendAPI from a single@ComposablewithrememberCoroutineScope()+LaunchedEffectand plainremember { mutableStateOf(...) }— no ViewModel/StateFlow/DI. That keeps the Authgear integration front and center and the page short. It links the example repo for readers who want the fuller ViewModel-based structure.Notes
OAuthActivity"You need to use a Theme.AppCompat theme" crash without it.SessionState.AUTHENTICATEDand the Maven Central coordinatecom.authgear:android-sdk:3.0.0.Opening for review (not merged) — it's a new page and a placement/editorial call.