Skip to content

1.0.1

Choose a tag to compare

@skydoves skydoves released this 10 Jan 18:01
2fddd8c

Released version 1.0.1.

  • The lifecycle related to lifecycleAware functionalities receives the parameter as applied.
    So we can omit the it receiver.
Before
private val balloon: Balloon by lifecycleAware { BalloonUtils.getProfileBalloon(baseContext) }
    .onCreate { it.showAlignTop(button) }
    .onDestroy { it.dismiss() }
    .lazy()
After
private val balloon: Balloon by lifecycleAware { BalloonUtils.getProfileBalloon(baseContext) }
    .onCreate { showAlignTop(button) }
    .onDestroy { dismiss() }
    .lazy()
  • Implemented LifecycleAwareProperty's kotlin dsl way for observing.
private val lifecycleAwareProperty = lifecycleAware(getDarkThemeDialog())
    .observe {
      onCreate { show() }
      onResume { restart() }
      onDestroy { dismiss() }
    }