New flavors: dev and newhusky
As I explained earlier when I took over Husky maintenance, I'm making
changes in the application to add stuff that would make it more
maintenable in the long term, that is, an architecture, new stuff that
would make the application better in performance, while also keeping all
the good stuff of Husky.
The flavor 'newhusky' is for that matter. I'm going to keep working on
keeping Husky maintained, and at the same time I'll make the "new" Husky
in another flavor. It won't change anything because, being two flavors,
releases will be made with the current application, so be patient,
please.
2022-01-24 10:03:16 +00:00
|
|
|
package com.husky.project.features.login.view.navigation
|
2021-11-21 09:21:16 +00:00
|
|
|
|
|
|
|
import androidx.fragment.app.Fragment
|
New flavors: dev and newhusky
As I explained earlier when I took over Husky maintenance, I'm making
changes in the application to add stuff that would make it more
maintenable in the long term, that is, an architecture, new stuff that
would make the application better in performance, while also keeping all
the good stuff of Husky.
The flavor 'newhusky' is for that matter. I'm going to keep working on
keeping Husky maintained, and at the same time I'll make the "new" Husky
in another flavor. It won't change anything because, being two flavors,
releases will be made with the current application, so be patient,
please.
2022-01-24 10:03:16 +00:00
|
|
|
import com.husky.project.core.ui.navigation.BaseServiceKey
|
|
|
|
import com.husky.project.features.login.view.fragments.LoginFragment
|
|
|
|
import com.husky.project.features.login.view.viewmodel.LoginViewModel
|
2021-11-21 09:21:16 +00:00
|
|
|
import com.zhuinden.simplestack.ServiceBinder
|
|
|
|
import com.zhuinden.simplestackextensions.servicesktx.add
|
|
|
|
import kotlinx.android.parcel.Parcelize
|
|
|
|
|
|
|
|
@Parcelize
|
|
|
|
class LoginKey : BaseServiceKey() {
|
|
|
|
|
|
|
|
override fun instantiateFragment(): Fragment {
|
|
|
|
return LoginFragment()
|
|
|
|
}
|
|
|
|
|
|
|
|
override fun bindServices(serviceBinder: ServiceBinder) {
|
2022-03-31 17:24:52 +00:00
|
|
|
with(serviceBinder) {
|
|
|
|
add(LoginViewModel())
|
|
|
|
}
|
2021-11-21 09:21:16 +00:00
|
|
|
}
|
|
|
|
}
|