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

Migrate from uni_links to app_links for deep links #1626

Merged
merged 2 commits into from
Dec 6, 2024

Conversation

hjiangsu
Copy link
Member

@hjiangsu hjiangsu commented Dec 6, 2024

Pull Request Description

This PR migrates our existing usage of uni_links over to app_links. The main reason for this being that uni_links has been discontinued, and has been replaced by app_links instead. See https://pub.dev/packages/uni_links for more details.

@micahmo I know you just tested deep links, but it would be helpful if you could re-test them with this migration! I did a quick test on an Android emulator and it seems to be working, so I'm hoping it works seamlessly on a physical device (especially in profile/release modes as I needed to add some proguard rules according to their setup).

Issue Being Fixed

Issue Number: N/A

Screenshots / Recordings

Checklist

  • If a new package was added, did you ensure it uses an appropriate license and is actively maintained?
  • Did you use localized strings (and added appropriate descriptions) where applicable?
  • Did you add semanticLabels where applicable for accessibility?

@@ -26,12 +26,12 @@
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true"
android:resizeableActivity="true">
android:resizeableActivity="true"
Copy link
Member Author

@hjiangsu hjiangsu Dec 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I may have also inadvertently found the issue that was causing #1575! I'm not entirely sure if this is the case, but there was an extra > which might've caused android:windowSoftInputMode="adjustResize" to not be respected.

For reference: https://developer.android.com/develop/ui/views/touch-and-input/keyboard-input/visibility#Respond

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice find!

Copy link
Member

@micahmo micahmo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code LGTM! I tested both thunder:// links and Lemmy links and everything's good!

@hjiangsu hjiangsu merged commit 8ae7eab into develop Dec 6, 2024
1 check passed
@hjiangsu hjiangsu deleted the refactor/app-links branch December 6, 2024 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants