Releases: DanielMartinus/Konfetti
v2.0.5
Fixes
- (#333) and issue #306 Replace withFrameMillis with withInfiniteAnimationFrameMillis - fixes instrumentation tests with Konfetti-compose implementation in them (
Idling resource timed out: possibly due to compose being busy.
)
Thanks to @crowleysimon and @lupuuss for investigating this issue and @matthewbartos for getting it on my radar
v2.0.4
v2.0.3
Fixes
- (#309) Introducing
applyAlpha
to turn off Alpha forDrawableShapes
. This fixes an issue for non-tinted (DrawableShape, tint = false) when alpha is applied. by @laurentyhuel. - (#301) Fixing an alpha issues for DrawableShapes in the compose SDK causing them to flicker. @dostalleos
Other
- Upgrade AGP, Kotlin and other dependencies @DanielMartinus
v2.0.2
Fixes
- (#287) Lower minSdk for konfetti-compose to api 21
- (#288) Fix Out of Memory exception by @PaulKlauser
- (#295) Improve transitive dependency setup
v2.0.1
This is a patch for the 2.0.0 release. Core classes weren't exposed making the library unusable and it includes some other small fixes that shouldn't have end up in a release.
Fixes
- (#284) Include core classes in
konfetti-xml
andkonfetti-compose
. Thanks @GhislainVerrier for reporting the issue - (2878993) Remove log from core library
- (2da7554) Remove unused compose dependencies and replace them with foundation 8822323
v2.0.0
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 inParty
- 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
, andRotation.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
v1.3.2
This release contains an important fix that addresses showing a different velocity across between low density and high density pixel devices. Thanks to the fix of @cmt218 the pixel density is taken into account.
Important when updating
When migrating to this new version the results of your Konfetti might look different. Please check whether it's still the desired outcome. To opt-out for this change you can set setSpeedDensityIndependent
to false. However, this is a temporary solution. It's advised to test out your Konfetti implementation to see if it still behaves as expected. More information in this PR:
This is the same release as v1.3.0 but includes the correct .aar which caused some issues in v1.3.0
v1.3.0
This release contains an important fix that addresses showing a different velocity across between low density and high density pixel devices. Thanks to the fix of @cmt218 the pixel density is taken into account.
Important when updating
When migrating to this new version the results of your Konfetti might look different. Please check whether it's still the desired outcome. To opt-out for this change you can set setSpeedDensityIndependent
to false. However, this is a temporary solution. It's advised to test out your Konfetti implementation to see if it still behaves as expected. More information in this PR:
v1.2.6
Added
- (#237) Added functionality to expose and control gravity by @akashraghav
Enhancement
- (#224) Fix loss of precision when calculating deltatime by @uwemaurer
- (#226) Optimizations in the rendering loop @learnice
A list of pull requests tagged for v1.2.6 can be found here: https://github.com/DanielMartinus/Konfetti/pulls?q=is%3Apr+is%3Aclosed+milestone%3A1.2.6
v1.2.4
This release adds the option to control the rotation speed of the particles
Use setRotationSpeedMultiplier
to set a multiplier to control the rotation speed of the Confetti
Use setRotationSpeedVariance
to control the randomness of the confetti
Pull request: #189
Issue: #185
Thanks to @carlfindahl for his contribution