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

Issue #553: Add AndroidX ViewModel integration as separate module #598

Closed
wants to merge 16 commits into from

Conversation

Al-F
Copy link

@Al-F Al-F commented Sep 15, 2023

Description

...

Check list

  • I have updated CHANGELOG.md if required.
  • I have updated documentation if required.

utils/viewmodel/build.gradle.kts Outdated Show resolved Hide resolved
utils/viewmodel/build.gradle.kts Outdated Show resolved Hide resolved
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.launch

class MyViewModel : IntegrationPointViewModel() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's move it to samples otherwise this code will be shipped

Copy link
Collaborator

Choose a reason for hiding this comment

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

Additionally, let's create a proper sample in the demo modules

settings.gradle.kts Outdated Show resolved Hide resolved
lifecycle = AndroidLifecycle(LocalLifecycleOwner.current.lifecycle),
integrationPoint = appyxV2IntegrationPoint,
) {
node(buildContext = it) { modifier ->
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we should create an example where we use ViewModelNode

@KovalevAndrey KovalevAndrey force-pushed the androidx-viewmodel-artifact branch from 25a0dba to 7206271 Compare October 30, 2023 16:22

@ExperimentalUnitApi
@ExperimentalAnimationApi
@ExperimentalComposeUiApi
class MainActivity : NodeActivity() {
class MainActivity : ViewModelNodeActivity() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I should revert this

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.

3 participants