# IdleKit Upgrade Notes

## Version 2.1.0 2022-03-16
# 2.1.0 Upgrade
* Please check the CHANGELOG file for further notes on what's changed in this release.

## Version 2.0.0 2021-12-13
# 2.0.0 Upgrade
* If you are upgrading from a L.5.x version of IdleKit - the upgrade should be simple as there are minimal code changes between those version.
* If you are upgradeing from 1.4.1 version of IdleKit - please contact the IdleKit support team, as this upgrade is much more involved than can be explained in this document.

## Version L.5.0 2021-10-25
# Promo Duration
* A `PromoData` now has a `_duration` field which determines how long the promo will stay active after becoming active. If the duration is set to 0 and the promo has no triggers, then it will run from the defined start time to the defined end time. However, if the promo has triggers and its duration is set to 0, then IdleKit will produce a warning, so make sure to update your promo data.

## Version L.4.0, 2021-08-09
# General
* All IdleKit repositories apart from documentation, idlekit-showcase, and idlekit-layoutui-showcase have been consolidated into one repository - `idlekit`. While the folders inside `idlekit` are still named after the previously existing repositories, we have removed most of the assembly definition files from the project, so it is easier to reference IdleKit classes just by using namespaces and the single asmdef file called `IdleKit.asmdef` which is at the root of the package. Please change all your asmdef references to the new `IdleKit.asmdef`  file. 
* Beamable has been set to production version 0.11.0 in the manifest. Please use your production Beamable portal and realms with this version of IdleKit

# Events
* Beamable's API for event phases has changed. Now instead of using a `List<EventPhase>` in the `EventSettings` entity and its related data classes, a custom Beamable `PhaseList` is used

# Analytics
* All `BigCurrency` in/out and `CurrencyEvent` in/out analytics events have been refactored into a `CurrencyEvent` class
* `Quest` begin/end analytics events have been refactored into a `QuestProgression` event

For changes made in previous versions of IdleKit please refer to `UPGRADENOTES.md` files inside each of the folders in the package.
