Add quickstart and make session and user observable #133
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.
This pull request introduces significant updates to the codebase, including configuration changes, enhancements to the example app, and the addition of a new "Quickstart" sample app. The most important changes involve updates to the
detekt
configuration, refactoring of the example app's publishable key handling, and the creation of the Quickstart app with its associated files.Configuration Changes:
config/detekt/detekt.yml
: Disabled theTooGenericExceptionCaught
rule and updatedignorePropertyDeclaration
totrue
in thestyle
section to refine code style checks. [1] [2]Example App Enhancements:
samples/example-app/build.gradle.kts
: Updated the publishable key handling to useSAMPLE_APP_CLERK_PUBLISHABLE_KEY
instead ofCLERK_PUBLISHABLE_KEY
. This change ensures better clarity and consistency in key naming conventions.samples/example-app/src/main/kotlin/com/clerk/exampleapp/MainApplication.kt
: Refactored the initialization logic to use the updated key name.samples/example-app/src/main/kotlin/com/clerk/exampleapp/MainViewModel.kt
: Enhanced the authentication flow by combining Clerk's initialization and user state for better UI state management.Quickstart App Addition:
samples/quickstart/build.gradle.kts
: Added a new Gradle configuration for the Quickstart app, including dependencies and build settings for Compose and Clerk SDK integration.samples/quickstart/src/main/AndroidManifest.xml
: Created a manifest file for the Quickstart app with necessary permissions and activity definitions.samples/quickstart/src/main/kotlin/com/clerk/quickstart/MainActivity.kt
: Implemented the main activity with Compose-based UI handling authentication states.samples/quickstart/src/main/kotlin/com/clerk/quickstart/MainViewModel.kt
: Added a ViewModel to manage authentication state and handle user sign-out logic.samples/quickstart/src/main/kotlin/com/clerk/quickstart/SignInOrUpView.kt
: Introduced a composable view for toggling between sign-in and sign-up screens.These changes enhance the overall functionality, improve code organization, and provide a new sample app for developers to quickly integrate and test the Clerk SDK.