Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: init SwiftUI library for FirebaseAuthSwiftUI #1237

Draft
wants to merge 132 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
132 commits
Select commit Hold shift + click to select a range
f173131
feat: init SwiftUI library for FirebaseAuthSwiftUI
russellwheatley Feb 18, 2025
51eeeef
chore: add SwiftUI example app
russellwheatley Feb 18, 2025
ce32551
chore: move library spec to root Package.swift
russellwheatley Feb 18, 2025
d0e0b13
chore: swift example app uses package locally
russellwheatley Feb 18, 2025
bb8866b
chore: init auth provider as base class
russellwheatley Feb 18, 2025
f5bef03
chore: stub providerId
russellwheatley Feb 18, 2025
37a1bd3
chore: update types
russellwheatley Feb 18, 2025
59e4741
feat: initial email provider
russellwheatley Feb 18, 2025
ecc7866
chore: started work on sign in scene
russellwheatley Feb 28, 2025
3dd1117
chore: ignore build files
russellwheatley Mar 4, 2025
3f1d3b3
refactor: update implementation to more idiomatic Swift code
russellwheatley Mar 4, 2025
f0a3811
chore: code comment
russellwheatley Mar 4, 2025
17f3bd3
initial view for email auth button
russellwheatley Mar 5, 2025
e658b54
swift example app for deving
russellwheatley Mar 5, 2025
7f02ddb
setup formatting for swiftui code
russellwheatley Mar 5, 2025
3128742
chore: initial format of all swiftui code
russellwheatley Mar 5, 2025
daa2ca3
delete initial scene not needed
russellwheatley Mar 5, 2025
1bf121b
xcode and pod config
russellwheatley Mar 5, 2025
ab18e4f
update protocol for auth provider
russellwheatley Mar 5, 2025
1d2b996
chore: update auth provider protocol
russellwheatley Mar 5, 2025
812b090
create email auth provider
russellwheatley Mar 5, 2025
20b01d5
delete unused code from example
russellwheatley Mar 5, 2025
c3ae034
format
russellwheatley Mar 5, 2025
e478b79
todo
russellwheatley Mar 6, 2025
b257f40
clean up db setup in example app
russellwheatley Mar 6, 2025
febdafc
refactor: allow users to customise content of button
russellwheatley Mar 6, 2025
2db25df
format
russellwheatley Mar 6, 2025
413578e
todo notes
russellwheatley Mar 6, 2025
fdd798c
refactor: use base class as argument
russellwheatley Mar 6, 2025
84da3e4
rename to EmailEntryView
russellwheatley Mar 6, 2025
827023b
make title customisable
russellwheatley Mar 6, 2025
76ca053
allow AuthViewPicker to modify VSStack
russellwheatley Mar 6, 2025
da4ea8f
make FUIAuth observable, update naming and throw assertion instead of…
russellwheatley Mar 6, 2025
59621e9
todo
russellwheatley Mar 6, 2025
06aa0f9
correct provider name
russellwheatley Mar 6, 2025
63a7fbb
create EmailAuthProvider
russellwheatley Mar 6, 2025
fe33ff8
warning view
russellwheatley Mar 6, 2025
27ba4d7
configureable warning view
russellwheatley Mar 6, 2025
0afd033
format
russellwheatley Mar 6, 2025
335dad7
todo
russellwheatley Mar 6, 2025
0ea278d
rm Error type
russellwheatley Mar 6, 2025
664f938
refactor: move src code into separate files
russellwheatley Mar 6, 2025
e798f99
import auth swift ui
russellwheatley Mar 7, 2025
98107e5
format
russellwheatley Mar 7, 2025
2f31c89
a configurable class is more appropriate for styling UI
russellwheatley Mar 7, 2025
7e51026
message should be configurable
russellwheatley Mar 7, 2025
2d17a9e
refactor auth picker view
russellwheatley Mar 7, 2025
224a001
refactor: use base class to configure UI
russellwheatley Mar 7, 2025
7246cd2
email auth button to be configurable
russellwheatley Mar 7, 2025
b731611
rm code moved to email package
russellwheatley Mar 7, 2025
b042566
format
russellwheatley Mar 7, 2025
e0f10d3
format
russellwheatley Mar 7, 2025
ae3bcf8
EmailAuth class
russellwheatley Mar 7, 2025
33c7832
FUIAuthFlowBase trial
russellwheatley Mar 7, 2025
114f9b3
rm button
russellwheatley Mar 7, 2025
c070be6
refactor config file
russellwheatley Mar 7, 2025
fd0aaf7
chore: format
russellwheatley Mar 7, 2025
a4ddba4
refactor email button config
russellwheatley Mar 7, 2025
9411aee
delete auth flow base
russellwheatley Mar 7, 2025
4e55802
refactor warning config
russellwheatley Mar 7, 2025
edd8319
scrub note
russellwheatley Mar 7, 2025
6917a8b
rm todo
russellwheatley Mar 7, 2025
afab989
rm unused file
russellwheatley Mar 7, 2025
7c96c31
refactor: way we render auth views
russellwheatley Mar 7, 2025
43ceb9b
import email auth ui into example
russellwheatley Mar 10, 2025
14f810a
refactor:applying styles via view modifiers
russellwheatley Mar 10, 2025
9d30841
import email auth swift
russellwheatley Mar 10, 2025
fa05d02
fix(email): imports, move util to email auth and public init
russellwheatley Mar 10, 2025
b947d7b
refactor: warning to use modifiers
russellwheatley Mar 10, 2025
2324f52
refactor: email auth button styling
russellwheatley Mar 10, 2025
223c07e
update email auth button
russellwheatley Mar 10, 2025
df83e9a
optional button modifier
russellwheatley Mar 10, 2025
fe64e28
refactor: EmailAuthButton modifiers
russellwheatley Mar 10, 2025
fb077ed
refactor: invoking auth picker
russellwheatley Mar 10, 2025
59a0dae
update example app
russellwheatley Mar 10, 2025
b927f9c
example of using callback to set view modifier
russellwheatley Mar 10, 2025
8117414
fix: stop breaking view identity
russellwheatley Mar 11, 2025
3d6b7b1
refactor: vStackStyle using ViewBuilder
russellwheatley Mar 11, 2025
04289a3
refactor: remove VStack from button, add button styling
russellwheatley Mar 11, 2025
ad0372c
feat: allow custom styling of Text within button
russellwheatley Mar 11, 2025
d71f78d
add nav back to email auth button
russellwheatley Mar 11, 2025
1d6d390
rm VStack modification until decide on how best to approach custom mo…
russellwheatley Mar 11, 2025
fa05691
refactor: use environment object to manage internal state
russellwheatley Mar 11, 2025
d612c70
chore: ensure email auth has access to global state
russellwheatley Mar 11, 2025
ac83bfb
emailentry - render View based on email validation
russellwheatley Mar 11, 2025
90edccd
inject env vars for fuiauth and global state
russellwheatley Mar 11, 2025
4f770c6
chore: example
russellwheatley Mar 11, 2025
d337532
allow default provider flows
russellwheatley Mar 11, 2025
3eb4436
refactor: move closer to preliminary design
russellwheatley Mar 21, 2025
526e760
chore: rm email package, moving to core
russellwheatley Mar 21, 2025
bbf9f7a
chore: rm Email auth package
russellwheatley Mar 21, 2025
9a73fee
fix: email utils
russellwheatley Mar 21, 2025
4596f3b
chore: tidy up auth screen
russellwheatley Mar 21, 2025
3ef9459
chore: fix up example app
russellwheatley Mar 21, 2025
20b9d47
chore: move auth flow to authEnvironment + init email provider
russellwheatley Mar 21, 2025
f80d6dd
EmailPasswordView
russellwheatley Mar 21, 2025
d85fda4
chore: pass observable to provider
russellwheatley Mar 24, 2025
b15292c
update email provider to pass authEnv and to use auth instance
russellwheatley Mar 24, 2025
393c238
update auth env to use auth instance
russellwheatley Mar 24, 2025
8278f04
chore: auth listener manager to enable removal of listener
russellwheatley Mar 24, 2025
09c8c00
chore: update email auth logic
russellwheatley Mar 24, 2025
7d7a039
update email provider to create user
russellwheatley Mar 24, 2025
712f75f
chore: create AuthConfiguration and adjust
russellwheatley Mar 25, 2025
6af2805
refactor: change provider name, and add 2 views
russellwheatley Mar 25, 2025
6bf0308
initial password recovery View
russellwheatley Mar 25, 2025
392fc14
chore: add password recovery func
russellwheatley Mar 25, 2025
c69360f
rm AuthenticationScreen
russellwheatley Mar 25, 2025
28fb71a
PasswordRecoveryView implementation
russellwheatley Mar 25, 2025
82a82b0
error message should be on local state
russellwheatley Mar 25, 2025
427d9c5
add modal after password recovery email sent
russellwheatley Mar 25, 2025
d9658c0
chore: typo in name
russellwheatley Mar 26, 2025
09b0ae0
chore: rm dismiss as not a modal
russellwheatley Mar 26, 2025
489b170
implement SignedInView
russellwheatley Mar 26, 2025
a05cf86
implement AuthPickerView logic for sign-up & login
russellwheatley Mar 26, 2025
fadaafa
change state based on login/sign up flow state
russellwheatley Mar 26, 2025
8a1e8ba
chore: remove unneeded namespace
russellwheatley Mar 26, 2025
daba588
chore: rm unneeded label
russellwheatley Mar 26, 2025
3ee359f
implement Email Sign-in View + some minor modifications
russellwheatley Mar 26, 2025
5aca980
chore: slight UI tweak
russellwheatley Mar 26, 2025
d822050
VerifyEmailView
russellwheatley Mar 26, 2025
77f151b
sign-in link correct API and rm progress loaders for now on api were …
russellwheatley Mar 27, 2025
168ee9d
chore: lower min deploy target on example app
russellwheatley Mar 27, 2025
5ee6ba5
chore: rename AuthEnvironment to AuthService
russellwheatley Mar 28, 2025
4921864
refactor: rm EmailAuthProvider
russellwheatley Mar 28, 2025
96677fa
refactor: make email auth inline with AuthPicker. rm email button
russellwheatley Mar 28, 2025
69429d4
feat: localized strings init
russellwheatley Mar 31, 2025
e0de2a1
refactor: rm unneeded additional directory
russellwheatley Mar 31, 2025
144784d
move localizable strings to correct directory
russellwheatley Mar 31, 2025
68b2c00
chore: rm Email auth as separate package
russellwheatley Mar 31, 2025
a08ec8c
chore: rm gitignore from email auth
russellwheatley Mar 31, 2025
2bfc8fb
chore: string helper functions
russellwheatley Mar 31, 2025
0de4d0e
chore: update localized strings for errors
russellwheatley Mar 31, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
setup formatting for swiftui code
russellwheatley committed Mar 5, 2025
commit 7f02ddb460f0ef68ba17865736cbba364b4bde4f
5 changes: 5 additions & 0 deletions .swiftformat
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Formatting Options
--indent 2
--maxwidth 100
--wrapparameters afterfirst
--disable wrapMultilineStatementBraces
5 changes: 5 additions & 0 deletions format-swift.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

swiftformat ./FirebaseSwiftUI

swiftformat ./samples/swiftui/FirebaseSwiftUIExample