Add custom flow repo and get rid of example app #138
Merged
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 a new sample project,
custom-flows, demonstrating various custom flows for user authentication and management using the Clerk SDK. It includes updates to dependencies, project configuration, and the addition of several new files for activities, view models, and other application components.Project Setup and Configuration Changes:
coreKtx,junit,espressoCore) and Compose testing libraries (ui-test-manifest,ui-test-junit4) ingradle/libs.versions.toml. [1] [2]build.gradle.ktsfor thecustom-flowssample project, configuring plugins, Android settings (e.g., namespace, compileSdk, minSdk), and dependencies.proguard-rules.profile with placeholders for project-specific rules./buildto.gitignorefor thecustom-flowssample project.Application Structure:
CustomFlowsApplication.ktto initialize the Clerk SDK with a test publishable key and debug mode enabled.AndroidManifest.xmldefining permissions, application metadata, and activities for various flows (e.g., sign-in, sign-up, MFA, OAuth, etc.).Main Activity and ViewModel:
MainActivity.ktto handle signed-in and signed-out states, displaying buttons for launching custom flows like adding email/phone, signing in, signing up, etc.MainViewModel.ktto manage UI state based on Clerk initialization and user authentication status. Includes sign-out functionality.Custom Flow Implementations:
AddEmailActivity.ktto handle email address creation and verification.AddEmailViewModel.ktto manage the state and logic for adding and verifying email addresses.AddPhoneActivity.ktto handle phone number creation and verification.AddPhoneViewModel.ktto manage the state and logic for adding and verifying phone numbers.