-
Notifications
You must be signed in to change notification settings - Fork 405
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
DeepLinkDelegate #87
DeepLinkDelegate #87
Conversation
My personal thoughts on the open questions:
|
looking pretty good so far. just need to make checkstyle happy. |
Finally fixed all the checkstyle issues and CI's happy |
New thought: should Also, regarding error handling, there's a couple other approaches we could take.
|
|
Restructured more, sorry it ended up being a decent amount of change
It's a breaking change, but I think one worth making anyway. This change in general would probably be worth a (semantically) major version bump anyway |
Alright this is looking pretty good to me. Do you mind squashing the commits before we merge? |
Three parts: - Generate DeepLinkDelegate class with its single static `dispatchFrom(Activity)` method. - Slim down the generated DeepLinkDispatchActivity to just use this delegate, and it will only be generated if there's no activity annotated with @DeepLinkActivity - Generate a DeepLinkResult class to use on the fly to return results from `dispatchFrom()` - This is a little wonky because the current Api is just a Java library and not an AAR. Generating it is the only current way to make this class available in generated code.
Done |
Thanks! I'll bump the pre-release to |
awesome, thanks! |
This implements what was discussed in #86 by using a generate
DeepLinkDelegate
to handle dispatches instead of maintaining the logic solely in a generatedDeepLinkActivity
.Three parts:
dispatchFrom(Activity)
method.dispatchFrom()
Now you can simply call this from your own activity to handle a dispatch:
Open questions:
DeepLinkDelegate
be an instance or just have its one static method?DeepLinkActivity
generation be disable-able? If so, how?DeepLinkLoader
fit in? Should it remain separate?Resolves #86