Open felipecsl opened 9 years ago
That would also help for a request of mine - the generation of a Parameters class that lists all used parameters for a specific URL configuration. Like, when you have
@DeepLink("foo://bar/{baz}/{bla}")
public class SomeActivity extends Activity { ... }
it would create this
public interface DeepLinkParams {
public interface SomeActivity {
String BAZ = "baz";
String BLA = "bla";
}
}
This would enable us to access URL parameters by constants at compile time, without having them "silently" drift apart over time, but instead error out in the face if something changed.
yeah, that's pretty much what I had in mind
We could move the regex code that extracts parameters from the URI into compile time by baking that into the processor