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

Updated gradle dependencies, with version specific code changes in the Kotlin class #3

Merged
merged 1 commit into from Sep 13, 2021
Merged

Updated gradle dependencies, with version specific code changes in the Kotlin class #3

merged 1 commit into from Sep 13, 2021

Conversation

prokash-sarkar
Copy link
Contributor

The current repository has some compatibility issues with Android Studio Arctic Fox. This issue won't allow the project to build and run. I've updated all dependencies to the latest stable version and made version-specific changes in the Kotlin classes.

Changes in Gradle:

  • Updated build:gradle 7.0.0-alpha05 -> 7.0.2
  • Updated compose 1.0.0-beta01 -> 1.0.2
  • Updated hilt-android-gradle-plugin 2.28-alpha -> 2.38.1
  • Updated core-ktx 1.3.2 -> 1.6.0
  • Updated appcompat 1.2.0 -> 1.3.1
  • Updated material 1.2.1 -> 1.4.0
  • Updated constraintlayout 2.0.4 -> 2.1.0
  • Updated constraintlayout-compose 1.0.0-alpha03 -> 1.0.0-beta02
  • Updated activity-compose 1.3.0-alpha03 -> 1.3.1
  • Updated navigation-fragment-ktx 2.3.2 -> 2.3.5
  • Updated hilt-android 2.28-alpha -> 2.37
  • Updated hilt-lifecycle-viewmodel 1.0.0-alpha01 -> 1.0.0-alpha03

Changes in Kotlin Class:

di

  • AppModile
  • NetworkModule
  • RepositoryModule

ApplicationComponent is Deprecated in Dagger Version 2.30 and removed in Dagger Version 2.31. Alternatively, SingletonComponent should be used instead of ApplicationComponent

presentation -> ui -> recipe

  • RecipeViewModel
  • RecipeListViewModel

In HILT alpha03, @ViewModelInject is deprecated and replaced by @HiltViewModel. We need to add the @HiltViewModel annotation at the class level, and the @Inject annotation at the constructor. Additionally, we don't need the @Assisted annotation anymore.

@mitchtabian mitchtabian merged commit 913dbbf into mitchtabian:master Sep 13, 2021
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.

None yet

2 participants