google-developer-training / advanced-android-kotlin-notifications

Other
114 stars 314 forks source link

Advanced Android in Kotlin: Notifications 1.1 [Step #][description] #61

Open Wavey1287 opened 1 year ago

Wavey1287 commented 1 year ago

EggTimerFragment.kt

val viewModel = ViewModelProviders.of(this).get(EggTimerViewModel::class.java)

ViewModelProviders is DEPRECATED

Updating the Fragment to use current methods for initializing the ViewModel requires different dependencies. Using these dependencies, however, breaks the app. Google, please keep your codelabs up to date. You shouldn't be teaching with deprecated classes or dependencies.

Wolf00Bomber commented 1 year ago

Why isn't this Repo being updated to reflect the fast paced changes in Android ? Its like every time something new gets added by Google into Android, this breaks!

Something new comes, Google doesn't make its responsibility to update the Repo. Current Culture is making us mad.

Facing new Issues:

  1. When updating to newer SDK versions like 31-33, it give us MUTABILITY Flag (PendingIntent Related) issue.
  2. Say we want to send a parcel inside the Intent with some user info, this doesn't work.

Why doesn't the Repo come to Realistic requirement which people face, is a thing God only can Know.(Go See the Anime!)