-
Notifications
You must be signed in to change notification settings - Fork 607
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
Fixes: #1769 #1781
Fixes: #1769 #1781
Conversation
@mdmohsin7 @beastoin Could you please take a review on this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes ofc, but I created a custom sign-in button for better UI consistency and easier customization. This reduces dependency on third-party packages and gives us full control over styling and behavior. |
1/ @ibrahimnd2000 @joshijoe05 do you guys want to collaborate with each other to solve this issue. why do i ask ? i see @joshijoe05 has a good idea on getting rid of dependencies and, @ibrahimnd2000 is the first comer. it would be great if you guys can work together to solve this small issue and more importantly, working on next big issues (omi still has $19K of bounties and counting) 2/ @joshijoe05 why do you still need the pubspec.yaml of dependencies you getting rid of sir ? 3/ and, could you improve it a bit? such as SignInButton not CustomSignInButton, use a factory to SignInButton.withApple(), SignInButton.withGoogle() :) what do you think. |
Yup!, I have no issue in collaborating with @ibrahimnd2000 |
431f576
to
4f17782
Compare
@mdmohsin7 @beastoin |
1/ format your code with line length 120 please. |
Formatted the code with line length 120 ✅ Here's the working demo Simulator.Screen.Recording.-.iPhone.16.Plus.-.2025-02-14.at.17.53.13.1.1.mp4 |
1/ ✅ ok the last commit pls sir @joshijoe05 |
3/ done @beastoin |
![]() |
How do you ensure perfect vertical alignment when centering content horizontally, especially with varying text lengths? |
lgtm, congratulation @joshijoe05 🚀 please provide deploy plans so that i can push the feature to production, e.g.
|
@ibrahimnd2000 man, his implementation is better than yours. and, he didn't tell me that there's not much to do just because a library we use doesn't support it yet. all of above, $80K is waiting for you, guys. keep coding and chasing for the best. |
Thank you @beastoin for your guidance throughout! This may be my first PR in OMI, but it’s definitely not my last Steps to deploy :
|
@beastoin |
did you get the bounty via algora ? anw, man, any ideas on making this more secure, i don't want to put the prod's reverse id to the code haha https://github.com/BasedHardware/omi/pull/1781/files#diff-e6de727143500c0ead434f95d2ab94f82fb8a148da297f2541413b30f5ef2809R52 |
1/ not received yet, this issue isnt linked with algora, I mailed [email protected] but no response yet. Can you help me how to claim 2/ yes we can do that using preprocessor macros in xcode |
Replied! Pls check now. It's linked with bountybot.dev, once we have clarity, you'll receive the amount |
2/ yes we can do that using preprocessor macros in xcode Could you help with this ? It should link with the current GoogleService-info.plist |
I have not used them before but the following might help
Refer this : https://developer.apple.com/documentation/xcode/adding-a-build-configuration-file-to-your-project
|
ScreenRecording_02-16-2025.20-39-35_1.mp4got crash with Cancel button, can you check it ? |
Simulator.Screen.Recording.-.iPhone.16.Plus.-.2025-02-16.at.22.01.29.mp4It's working fine, can you try again and update me again. |
crash logs: -- `8, Cause: One of IDToken, accessToken, pendingToken, or requestURI must be supplied.Reported at: 2025-02-16 13:37:33 UTCThread 0 Queue 1: com.apple.main-thread (serial): 0 libsystem_kernel.dylib 0x1eeb26788 mach_msg2_trap + 8 Thread 1 Unknown: 0 libsystem_pthread.dylib 0x2280f146c start_wqthread + 0 Thread 2 Queue 13: com.apple.root.default-qos (concurrent): 0 libsystem_kernel.dylib 0x1eeb26704 semaphore_wait_trap + 8 Thread 3 com.apple.uikit.eventfetch-thread: 0 libsystem_kernel.dylib 0x1eeb26788 mach_msg2_trap + 8 Thread 4 io.flutter.1.ui: 0 libsystem_kernel.dylib 0x1eeb26788 mach_msg2_trap + 8 Thread 5 io.flutter.1.raster: 0 libsystem_kernel.dylib 0x1eeb26788 mach_msg2_trap + 8 Thread 6 io.flutter.1.io: 0 libsystem_kernel.dylib 0x1eeb26788 mach_msg2_trap + 8 Thread 7 io.worker.1: 0 libsystem_kernel.dylib 0x1eeb2c090 __psynch_cvwait + 8 Thread 8 io.worker.2: 0 libsystem_kernel.dylib 0x1eeb2c090 __psynch_cvwait + 8 Thread 9 io.worker.3: 0 libsystem_kernel.dylib 0x1eeb2c090 __psynch_cvwait + 8 Thread 10 io.worker.4: 0 libsystem_kernel.dylib 0x1eeb2c090 __psynch_cvwait + 8 Thread 11 io.worker.5: 0 libsystem_kernel.dylib 0x1eeb2c090 __psynch_cvwait + 8 Thread 12 io.worker.6: 0 libsystem_kernel.dylib 0x1eeb2c090 __psynch_cvwait + 8 Thread 13 dart:io EventHandler: 0 libsystem_kernel.dylib 0x1eeb2d4cc kevent + 8 Thread 14 Unknown: 0 libsystem_pthread.dylib 0x2280f146c start_wqthread + 0 Thread 15 DartWorker: 0 libsystem_kernel.dylib 0x1eeb2c090 __psynch_cvwait + 8 Thread 16 com.apple.NSURLConnectionLoader: 0 libsystem_kernel.dylib 0x1eeb26788 mach_msg2_trap + 8 Thread 17 Unknown: 0 libsystem_kernel.dylib 0x1eeb26788 mach_msg2_trap + 8 Thread 18 Unknown: 0 libsystem_kernel.dylib 0x1eeb26510 __workq_kernreturn + 8 Thread 19 DartWorker: 0 libsystem_kernel.dylib 0x1eeb2c090 __psynch_cvwait + 8 Thread 20 Queue 171: com.google.firebase.auth.globalWorkQueue (serial) [Crashed]: 0 CoreFoundation 0x19d5295ec __exceptionPreprocess + 164 Thread 21 DartWorker: 0 libsystem_kernel.dylib 0x1eeb2c090 __psynch_cvwait + 8 Thread 22 DartWorker: 0 libsystem_kernel.dylib 0x1eeb2c090 __psynch_cvwait + 8 Thread 23 DartWorker: 0 libsystem_kernel.dylib 0x1eeb2c090 __psynch_cvwait + 8 Thread 24 DartWorker: 0 libsystem_kernel.dylib 0x1eeb2c090 __psynch_cvwait + 8 Thread 25 DartWorker: 0 libsystem_kernel.dylib 0x1eeb2c090 __psynch_cvwait + 8 Thread 26 DartWorker: 0 libsystem_kernel.dylib 0x1eeb2c090 __psynch_cvwait + 8 Thread 27 Unknown: 0 libsystem_kernel.dylib 0x1eeb26510 __workq_kernreturn + 8 Thread 28 Unknown: 0 IBGInvalidFramework 0x104ee4938 0x104edc000 Thread 29 DartWorker: 0 libsystem_kernel.dylib 0x1eeb2c090 __psynch_cvwait + 8 Thread 30 DartWorker: 0 libsystem_kernel.dylib 0x1eeb2c090 __psynch_cvwait + 8 Thread 31 DartWorker: 0 libsystem_kernel.dylib 0x1eeb2c090 __psynch_cvwait + 8 Thread 32 DartWorker: 0 libsystem_kernel.dylib 0x1eeb2c090 __psynch_cvwait + 8 Thread 33 DartWorker: 0 libsystem_kernel.dylib 0x1eeb2c090 __psynch_cvwait + 8 Thread 34 DartWorker: 0 libsystem_kernel.dylib 0x1eeb2c090 __psynch_cvwait + 8 Thread 35 DartWorker: 0 libsystem_kernel.dylib 0x1eeb2c090 __psynch_cvwait + 8 Thread 36 DartWorker: 0 libsystem_kernel.dylib 0x1eeb2c090 __psynch_cvwait + 8 Thread 37 DartWorker: 0 libsystem_kernel.dylib 0x1eeb2c090 __psynch_cvwait + 8 Thread 38 DartWorker: 0 libsystem_kernel.dylib 0x1eeb2c090 __psynch_cvwait + 8 Binary Images: 0x1eeb25000 libsystem_kernel.dylib arm64e E3965DF1-A3A3-374A-94EA-F86739C5CC8E |
The issue seems to be caused by missing credentials when creating the authentication credential in the I couldn’t reproduce the error since it’s working fine on my simulator. However, based on the crash report, the issue likely occurs when supplying idToken and accessToken. Although the method is inside a try-catch block, async operations might bypass it, causing the crash. To prevent this, we should add null checks before creating the credential. Add explicit This is how the code looks after adding if else statements :
|
/claim #1769
Fixes : #1769
This PR enables iOS users to log in via Google along with Apple Sign-In. It also introduces custom reusable widgets for the UI (Sign-In Buttons) , reducing dependency on external packages and making the app more self-reliant.