Skip to content

Flutter SDK 4.0.0

Choose a tag to compare

@ABTastyAdel ABTastyAdel released this 08 Oct 16:46
· 164 commits to main since this release

Changed

  • The Flag getFlag<T>(String key) is the new signature for the getFlag method .
  • The func value<T>(defaultValue:T?,visitorExposed: Bool = true)->T? is the new signature for flag.value() method .
  • Signature newVisitor method builder changed to VisitorBuilder newVisitor({required String visitorId, required bool hasConsented, Instance instanceType = Instance.SINGLE_INSTANCE}).
  • hasConsented parameter is mandatory on visitor creation instance.
  • Enum SDK status FSSdkStatus has replaced FStatus.
  • withStatusListener renamed to onSdkStatusChanged.

For further information, see migration code.

Added

  • Flag status
  • Visitor status
  • getFlags() new method to get all flags in one collection as FSFlagCollection
  • FlagCollection is a collection of flag Map<String, Flag>
    For further information, see 4.0.0 reference.

Removed

Deprecated methods:

- synchronizeModifications
- getModification
- getModificationInfo 
- activateModification
- userExposed