Fork of localizely_sdk 2.7.1, kept
only until the upstream package can be used again.
Flutter 3.35's flutter_localizations pins intl to 0.20.2. In intl 0.20 the
second parameter of MessageLookup.addLocale changed type from Function to
MessageLookupByLibrary? Function(String), so localizely_sdk 2.7.1 and earlier
no longer compile:
lib/src/ota/proxy/proxy.dart:21:42: Error: The argument type 'Function' can't be
assigned to the parameter type 'MessageLookupByLibrary? Function(String)'.
Upstream fixed this in 2.7.2, but from that version on localizely_sdk depends on
build: ^3.0.0, which cannot coexist with freezed 2.x (build: ^2.3.1). Until
kg-flutter migrates to freezed 3/4, neither the old nor the new upstream version
is usable, so this fork carries only the signature fix.
Two addLocale overrides now declare the intl 0.20 parameter type:
lib/src/ota/proxy/proxy.dartlib/src/in_context_editing/proxy/in_context_editing_proxy.dart
Nothing else is modified.
Once kg-flutter is on freezed 3 or later, drop this fork and depend on
localizely_sdk: ^2.7.2 from pub.dev again.