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

Breaking ProcessLifecycle Events #90

Open
ilyasdirin opened this issue Feb 16, 2022 · 0 comments
Open

Breaking ProcessLifecycle Events #90

ilyasdirin opened this issue Feb 16, 2022 · 0 comments

Comments

@ilyasdirin
Copy link

Between version 1.0.5 (working) and [1.1.0-1.1.4] ProcessLifecycle is broken for all LifecycleObserver, DefaultLifecycleObserver and LifecycleEventObserver interfaces.

From 1.1.0 it pushed lifecycle dependencies to update and causes the issue probably.

lifecycle-process:2.2.0 -> 2.4.0
lifecycle-runtime:2.0.0 -> 2.3.1

Android Studio Bumblebee 2021.1.1 Patch 1

ext.kotlin_version = '1.6.10'
ext.android_gradle_plugin = '7.1.1'
ext.dokkaVersion = '0.9.18'
ext.hiltVersion = '2.38.1'
ext.compose_version = '1.1.0'

Reproduce step:

  1. add a process lifecyle
    implement LifecycleObserver
    ProcessLifecycleOwner.get().lifecycle.addObserver(this)
    @OnLifecycleEvent(Lifecycle.Event.ON_RESUME)
    fun onApplicationResume() {
    ....
    }

  2. try with
    api "com.google.android.material:compose-theme-adapter:1.0.5" (be sure that life cycle event called)
    api "com.google.android.material:compose-theme-adapter:1.1.0" (life cycle event not called, deprecates lifecycle annotation and suggests use DefaultLifecycleObserver and LifecycleEventObserver interfaces instead but none of them are called.)

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