-
Notifications
You must be signed in to change notification settings - Fork 4
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
Fix events in unity #93
Conversation
WalkthroughRecent updates have focused on streamlining iOS deployment processes, refining authentication mechanisms, and enhancing user interface elements. These changes aim to improve provisioning profiles, certificate handling, authentication services, and date calculations while bolstering error handling during the sign-in process. The updates reflect a dedication to backend efficiency and user experience enhancements. Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
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.
Actionable comments posted: 4
Review Status
Configuration used: CodeRabbit UI
Files selected for processing (8)
- .github/workflows/ios_deploy.yml (1 hunks)
- ios/Runner.xcodeproj/project.pbxproj (1 hunks)
- ios/Runner/ExportOptions.plist (1 hunks)
- ios/install_dist_profile.sh (1 hunks)
- lib/data/core/utils/date_formatter.dart (1 hunks)
- lib/data/services/auth_service.dart (1 hunks)
- lib/ui/sign_in/bloc/sign_in_view_bloc.dart (1 hunks)
- lib/ui/sign_in/sign_in_screen.dart (1 hunks)
Additional comments not posted (6)
ios/Runner/ExportOptions.plist (1)
10-10
: Confirm the new provisioning profile UUID9e32b51b-cdf9-43aa-80fc-e785365ccc9
is correct and matches the provisioning profile in the Apple Developer account..github/workflows/ios_deploy.yml (1)
39-41
: Ensure the updated certificate import options and the addition of the keychain listing command (security list-keychain
) are compatible with your CI/CD environment and do not expose sensitive information in logs.lib/data/services/auth_service.dart (1)
97-98
: Confirm that the added scopes 'email' and 'name' for the Apple sign-in provider are required for your application's functionality and that you have the necessary permissions to request this information from users.lib/ui/sign_in/sign_in_screen.dart (1)
111-111
: Ensure that removing thekIsWeb
condition and relying solely onPlatform.isIOS
for rendering theAppleSignInButton
aligns with your application's platform support strategy and does not affect users on other platforms.lib/data/core/utils/date_formatter.dart (1)
102-104
: Ensure the new methodcalculateDifferenceInYears
accurately calculates the year difference, considering leap years and the exact dates, to avoid potential off-by-one errors or inaccuracies.ios/Runner.xcodeproj/project.pbxproj (1)
604-604
: Verify that the updated provisioning profile specifierunity-provisioning-profile-03April2024
is correctly configured in your Xcode project and matches the provisioning profile in the Apple Developer account.
@@ -3,7 +3,7 @@ | |||
DIST_PROFILE_FILE=${DIST_PROVISION_UUID}.mobileprovision | |||
|
|||
# Recreate the certificate from the secure environment variable | |||
echo $DIST_PROVISION | base64 --decode > $DIST_PROFILE_FILE | |||
echo "$BUILD_PROVISION_PROFILE_BASE64" | base64 --decode > "$DIST_PROFILE_FILE" |
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.
Ensure the decoded provisioning profile is securely handled and that its content is not exposed in logs or error messages.
@@ -3,7 +3,7 @@ | |||
DIST_PROFILE_FILE=${DIST_PROVISION_UUID}.mobileprovision | |||
|
|||
# Recreate the certificate from the secure environment variable | |||
echo $DIST_PROVISION | base64 --decode > $DIST_PROFILE_FILE | |||
echo "$BUILD_PROVISION_PROFILE_BASE64" | base64 --decode > "$DIST_PROFILE_FILE" | |||
|
|||
# copy where Xcode can find it | |||
cp ${DIST_PROFILE_FILE} "$HOME/Library/MobileDevice/Provisioning Profiles/${DIST_PROVISION_UUID}.mobileprovision" |
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.
Wrap the variable $HOME
in double quotes to prevent globbing and word splitting.
- cp ${DIST_PROFILE_FILE} "$HOME/Library/MobileDevice/Provisioning Profiles/${DIST_PROVISION_UUID}.mobileprovision"
+ cp "${DIST_PROFILE_FILE}" "$HOME/Library/MobileDevice/Provisioning Profiles/${DIST_PROVISION_UUID}.mobileprovision"
Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.
cp ${DIST_PROFILE_FILE} "$HOME/Library/MobileDevice/Provisioning Profiles/${DIST_PROVISION_UUID}.mobileprovision" | |
cp "${DIST_PROFILE_FILE}" "$HOME/Library/MobileDevice/Provisioning Profiles/${DIST_PROVISION_UUID}.mobileprovision" |
DIST_PROFILE_FILE=${DIST_PROVISION_UUID}.mobileprovision | ||
|
||
# Recreate the certificate from the secure environment variable | ||
echo $DIST_PROVISION | base64 --decode > $DIST_PROFILE_FILE | ||
echo "$BUILD_PROVISION_PROFILE_BASE64" | base64 --decode > "$DIST_PROFILE_FILE" | ||
|
||
# copy where Xcode can find it | ||
cp ${DIST_PROFILE_FILE} "$HOME/Library/MobileDevice/Provisioning Profiles/${DIST_PROVISION_UUID}.mobileprovision" |
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.
📝 NOTE
This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [12-12]
Prefix the glob pattern with ./
to ensure names with dashes are not interpreted as options.
- rm -fr *.mobileprovision
+ rm -fr ./*.mobileprovision
} on Exception catch(e) { | ||
throw Exception(e); |
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.
Instead of re-throwing the caught exception directly, log the error or handle it appropriately to avoid losing the stack trace or context of the original exception.
- throw Exception(e);
+ print("Error during Apple sign-in: $e"); // Consider using a logging framework or handling the error more gracefully.
Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.
} on Exception catch(e) { | |
throw Exception(e); | |
} on Exception catch(e) { | |
print("Error during Apple sign-in: $e"); // Consider using a logging framework or handling the error more gracefully. |
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.
Actionable comments posted: 0
Review Status
Configuration used: CodeRabbit UI
Files selected for processing (3)
- lib/data/core/utils/date_formatter.dart (1 hunks)
- lib/ui/sign_in/bloc/sign_in_view_bloc.dart (1 hunks)
- lib/ui/sign_in/sign_in_screen.dart (2 hunks)
Files skipped from review as they are similar to previous changes (3)
- lib/data/core/utils/date_formatter.dart
- lib/ui/sign_in/bloc/sign_in_view_bloc.dart
- lib/ui/sign_in/sign_in_screen.dart
Purpose
Summary of Changes
Test steps
Conformity
Visual Evidence (Video, Images or Gif)
Summary by CodeRabbit