Closed jreehuis closed 6 years ago
@StefMa I addressed all your comments. Would be great if you could have another look on this PR. :)
Hey, sure. After I am back from my sick leave I will take a look into it 👍
Works 🎉
What does not work:
abstract class GalleryDetailsActivity : TiActivity<GalleryDetailsPresenter, GalleryDetailsView>()
class CameraGalleryDetailsActivity : GalleryDetailsActivity() {
No Lint issue will be shown :(
Works also with Java 🤘
Something like this shouldn't be an issue:
Ok, maybe this is not an issue because it will never happen in real world
Other than that it looks great 🎉 Thanks @jreehuis
Thanks for the extensive tests! 😃 Especially the abstract class scenario will get complicated... 😡 I will see to solve it. But definitely a real world case. Thanks for pointing to it.
Something like this shouldn't be an issue:
Ok, maybe this is not an issue because it will never happen in real world
In my view this is correct. StuffActivity could be also used separately and so we should highlight this error.
What does not work:
abstract class GalleryDetailsActivity : TiActivity<GalleryDetailsPresenter, GalleryDetailsView>() class CameraGalleryDetailsActivity : GalleryDetailsActivity() {
No Lint issue will be shown :(
OK, wasn't that hard than expected. This scenario should also be covered now.
All done.
Issue created as discussed. Merged ✅
Thank you @jreehuis 🤘
Description
This implementation adopts and updates #111. Fixes #100
The updates include:
TiIssue
is now a sealed classHow to Test
Play with the following scenarios:
implements HelloWorldView
in theHelloWorldActivity
of the sample appimplements HelloWorldView
but overrideprovideView()
in theHelloWorldActivity
of the sample app0.9.1-SNAPSHOT
of this branch in another project and have an TiActivity which does not implement the givenTiView
subclass