Great example! Thank you very much for this. Just a little fix will be that the LoginPresenter has the function fun onLoginButtonPressed(username: String, password: String) but is called in the LoginActivity as presenter?.onLoginButtonClicked(usernameEditText.text, passwordEditText.text)
Again, awesome example!