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

Hilt example module #135

Merged
merged 11 commits into from
Feb 17, 2021
Merged

Hilt example module #135

merged 11 commits into from
Feb 17, 2021

Conversation

davidkocnar
Copy link
Member

@davidkocnar davidkocnar commented Jul 29, 2020

  • Implementation of simple example app with a single activity and navigation between fragments

  • BaseHiltActivity, BaseHiltFragment

  • Using SavedStateHandle for arguments and ViewModel scoped to navigation graph.

  • :example module switched to multidex

@futured-bot
Copy link

futured-bot commented Feb 9, 2021

2 Warnings
⚠️ This pull request is too big.
⚠️ core-test/src/main/java/app/futured/arkitekt/core/viewmodel/BaseViewModelExtensionsMock.kt#L69 - Function names should be at most 35 characters long.

Generated by 🚫 Danger

@davidkocnar davidkocnar assigned skywall and unassigned skywall Feb 11, 2021
@davidkocnar davidkocnar requested a review from skywall February 11, 2021 19:33
@davidkocnar davidkocnar marked this pull request as ready for review February 12, 2021 08:54
example-hilt/build.gradle.kts Outdated Show resolved Hide resolved
import app.futured.arkitekt.sample.hilt.BR
import kotlin.reflect.KClass

abstract class BaseHiltActivity<VM : BaseViewModel<VS>, VS : ViewState, B : ViewDataBinding> : AppCompatActivity() {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should refactor BaseBindingViewModelActivity to offer a variant compatible with the Hilt so you don't have to create this class every time you use Hilt. I have created a separate issue.

#145

@davidkocnar davidkocnar linked an issue Feb 16, 2021 that may be closed by this pull request
@skywall skywall merged commit a984f4f into 4.x Feb 17, 2021
@skywall skywall deleted the feature/module-hilt-example branch February 17, 2021 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dagger Hilt example
3 participants