Skip to content

v2.0.0

Compare
Choose a tag to compare
@DanielMartinus DanielMartinus released this 29 Dec 15:11
· 129 commits to main since this release

Migrating from 1.x.x to 2.x.x? Read on how to migrate here

Be aware that the path to include Konfetti in Gradle has changed:

// old
implementation 'nl.dionsegijn:konfetti:1.3.2'

// new
implementation 'nl.dionsegijn:konfetti-compose:2.0.0'
implementation 'nl.dionsegijn:konfetti-xml:2.0.0'

What changed?

  • Support for compose
  • New and improved API using Party for configuring Confetti
  • Add more options for customization and randomness
  • Improved animation using damping which is configurable in Party
  • Beisdes using absolute position with Position.Absolute(x,y) there's now also a way to set the relative position with Position.Relative(x, y) and randomize spawn point chaining two positions with between with: Position.Relative(x,y).between(Position.Relative(x,y))
  • Easily configure Party with Presets such as Angle.TOP, Spread.Wide, and Rotation.disabled()
  • Simplified and improved core implementation
  • Decoupled core code to decouple core code from rendering
  • Modularized core - compose - xml
  • Add more sample projects and simplified existing sample projects
  • Updated readme with details on the new API
  • Releasing with blog post as migration guide to v2.0.0 https://dionsegijn.dev/konfetti-migration-guide-v2.0.0