-
Notifications
You must be signed in to change notification settings - Fork 21
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]Deeplink handling #163
Conversation
+ OSLogDestination to allow us to see logs from release version + DeeplinkTests that ensure deeplink handling
@@ -6,8 +6,7 @@ | |||
<string>development</string> | |||
<key>com.apple.developer.associated-domains</key> | |||
<array> | |||
<string>applinks:staging.getstream.io</string> |
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.
This isn't needed as the domain is the same and can be handled.
@@ -229,7 +229,7 @@ extension AppEnvironment { | |||
case .debug: | |||
return [.staging, .pronto, .production] | |||
case .test: | |||
return [.staging] |
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.
Update test environment to be able to process all available deeplinks
|
||
final class OSLogDestination: BaseLogDestination { | ||
|
||
override func write(message: String) { |
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.
This allows us to see our logs from the AppStore versions using the Console.app
@@ -140,12 +140,16 @@ struct DetailedCallingView: View { | |||
self.callId = callId | |||
viewModel.joinCall(callType: .default, callId: callId) | |||
} | |||
.onReceive(appState.$deeplinkInfo) { deeplinkInfo in |
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.
Added this one to align the DetailedCallingView with the SimpleView and allow us to perform the DeeplinkTests
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.
great stuff 👏 Just few small nits and we can 🚢
DemoApp/Sources/Views/CallView/CallingView/DetailedCallingView.swift
Outdated
Show resolved
Hide resolved
|
||
import XCTest | ||
|
||
final class DeeplinkTests: StreamTestCase { |
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.
Awesome 🚀 When are these tests being run? Should we put them as part of the checks or in a test plan?
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.
They are part of the UI Tests so i believe they should be running as part of the Release. Not sure about the PR checks though. Maybe @testableapple can provide more insight to this one.
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.
It will be executed with the other tests
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.
Nicely done, @ipavlidakis!
Looks really great, I just have a couple of questions.
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.
LGTM! ✅
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.
🙌
Issue
Resolves https://github.com/GetStream/ios-issues-tracking/issues/571
🎯 Goal
Ensure deeplinks are working consistently
📝 Summary
A few issues discovered:
🛠 Implementation
Implemented UITests that validate deeplink handling for
☑️ Contributor Checklist