Skip to content
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

Base class clenup #23

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open

Base class clenup #23

wants to merge 4 commits into from

Conversation

muratbilir
Copy link
Contributor

All base classes (activity, fragment, viewModel) are removed in favor of "composition over inheritance".

@muratbilir muratbilir force-pushed the feature/baseless-structure branch from b1dc8fa to c8c593f Compare July 4, 2023 15:30
@muratbilir muratbilir force-pushed the feature/baseless-structure branch from c8c593f to 7b2340b Compare July 4, 2023 15:42
@muratbilir muratbilir force-pushed the feature/baseless-structure branch from 40b1176 to fa80964 Compare August 17, 2023 10:13
}

override fun getValue(thisRef: Fragment, property: KProperty<*>): T {
val binding = binding
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe use different names

}

is NavigationCommand.ToDeepLink -> {
(activity as? MainActivity)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not likely for single activity apps but someone can create another activity and this interface will be dependent on MainActivity, maybe we should consider an interface like "NavigatableActivity" or something else.

model.message?.let { setMessage(it) }
model.messageInt?.let { setMessage(it) }
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

messageRes instead Int

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants