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

Add a ViewModel to Dessert Clicker: Android Basics in Compose #60

Open
stevoie opened this issue Dec 30, 2024 · 0 comments
Open

Add a ViewModel to Dessert Clicker: Android Basics in Compose #60

stevoie opened this issue Dec 30, 2024 · 0 comments

Comments

@stevoie
Copy link

stevoie commented Dec 30, 2024

Starter kit for this practice lesson references build.gradle.kts which needs modifications to the sample code snippets to work:

build.gradle.kts (project)

buildscript {
    extra.apply{
        set("lifecycle_version", "2.5.1")
    }
}

build.gradle.kts (app)

val lifecycleVersion = rootProject.extra.get("lifecycle_version") as String
...
implementation("androidx.lifecycle:lifecycle-viewmodel-compose:$lifecycleVersion")
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

No branches or pull requests

1 participant