Open
Conversation
# Conflicts: # pubspec.yaml
# Conflicts: # lib/internet/api/api.dart
Updated google_mobile_ads, sign in page file in order to improve its performance & logic and found a bug (temporally, needs to be done locally)
Multi Auth services support, added support in order to request to our API, birthday, and more.
…into google-sign-in
Added an anonymous way to sign in. Reworked some code in order to make it better
Formatted imports, implemented SOLID principles, added singleton design patter.
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.
Summary of Changes
Google Sign-In Integration: Implemented Google Sign-In functionality to allow users to authenticate using their Google accounts.
Improved Logic and Code Quality: Enhanced the overall logic, formatted imports, implemented SOLID principles, and added a singleton design pattern.
This pull request includes several important updates to the
androidbuild configuration and significant enhancements to the user authentication functionality in thelibdirectory. The changes streamline the build process and add support for Google Sign-In, including fetching user information like gender and birthday.Build Configuration Updates:
android/app/build.gradle: Added plugins for Android and Kotlin, and removed the manual application of these plugins. [1] [2]android/build.gradle: Removed thebuildscriptblock, simplifying the build configuration.android/settings.gradle: IntroducedpluginManagementto manage plugins and repositories centrally.User Authentication Enhancements:
lib/internet/api/sign-in/userAuthService.dart: Added a newUserAuthServiceclass to handle Google Sign-In, including methods for signing in, signing out, and silent authentication.lib/internet/api/sign-in/info_google.dart: Implemented a function to fetch gender and birthday information from Google People API.lib/main.dart: IntegratedUserAuthServiceinitialization and updated theQuimifyAppto conditionally show theSignInPageif login is required. [1] [2]UI Updates:
lib/pages/home/home_page.dart: Added a user avatar to the home page, which links to the profile page.lib/pages/home/widgets/quimify_avatar.dart: Created a new widget for displaying the user's avatar.API Changes:
lib/internet/api/api.dart: Changed the API authority fromapi2.quimify.comtoapi1.quimify.com.lib/internet/api/results/classification.dart: Added a new classification typesignIn. [1] [2]lib/internet/api/results/organic_result.dart: Updated theOrganicResultclass to use the new classification type.Initialization: Added initialization code for Ads and Storage within the main application logic.
HomePage and SignInPage: Introduced logic to switch between HomePage and SignInPage based on the sign-in results.
At the moment, only works anonymously & with google