-
Notifications
You must be signed in to change notification settings - Fork 97
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
Conference deep link for iOS #1222
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
a016e83
Add a confetti deep link for Android
StylianosGakis a88c168
Add initial conference ID to AppComponent
StylianosGakis f6d090b
Extract the conferenceId from the deep link and pass to DefaultAppCom…
StylianosGakis ad36281
Pass a nil initialConferenceId for the iOS client
StylianosGakis 5093f25
add .well_known file
martinbonnin eb4fbf4
Revert "add .well_known file"
martinbonnin b2b3e44
Update the deep link to use `https://confetti-app.dev/` as the base url
StylianosGakis 5c0b527
Add a public function on AppComponent to handle deep link
StylianosGakis 87312bb
Add Xcode configuration to handle universal links
StylianosGakis d3e8d6a
Add //todo for where the iOS deep link code will be added
StylianosGakis 153f9c8
Add the .well-known part necessary for the iOS app
StylianosGakis 65ae1ea
Merge branch 'stylianos/conference-deep-link' into stylianos/conferen…
StylianosGakis 8d0c350
Extract the right parts out of the deep link and pass to AppComponent
StylianosGakis c88984e
Merge branch 'refs/heads/stylianos/conference-deep-link' into stylian…
StylianosGakis aec1b4e
Merge branch 'refs/heads/stylianos/conference-deep-link' into stylian…
StylianosGakis 48f0fea
Recreate the iOS app UI on a new deep link incoming
StylianosGakis 407dd24
Merge branch 'refs/heads/main' into stylianos/conference-deep-link-fo…
StylianosGakis d9c3999
Destroy the old lifecycle before starting a new one
StylianosGakis c79600a
Remove reRender hack in favor of an ObservableObject
StylianosGakis 9500a8c
Remove extra AppComponentHolder
StylianosGakis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>com.apple.developer.associated-domains</key> | ||
<array> | ||
<string>applinks:confetti-app.dev</string> | ||
</array> | ||
</dict> | ||
</plist> |
This file contains 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
Oops, something went wrong.
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.
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.
Maybe we could conform
AppDelegate
toObservableObject
for simplicity? And just make thisroot
property@Published var
. Can you try that? If for some reason this is not possible or not working, then maybe move theAppComponent
creation and replacing logic toAppComponentHolder
?Otherwise looks good!
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.
Hmm yeah I didn't try to make
AppDelegate
anObservableObject
since I wasn't sure if that would be a weird thing to be that and anUIApplicationDelegate
at the same time. I will give that a shot.If that does not work for whatever reason, when you say "maybe move the AppComponent creation and replacing logic to AppComponentHolder" I assume you mean so that
AppDelegate
just calls a small function ininit()
and ononConferenceDeepLink
so that the bulk of the work is done in there instead.Will pick this up some next week, hopefully earlier rather than later inside of it. Thanks for the feedback 😊
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. Just create the
AppComponent
together with itsComponentContext
andLifecycle
insideAppComponentHolder
. And also addonConferenceDeepLink
toAppComponentHolder
instead, and call that fromAppDelegate
. I think this would be cleaner. But the first option with conformingAppDelegate
toObservableObject
sounds even better.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.
Hey making AppDelegate conform to ObservableObject just worked, after fighting with it for a bit 😅 Thanks for your tips!