12.0.0
🔨 Breaking Changes
-
GradientBackgroundFactory
class is removed. Should replace usages of:getBackground(context: Context)
--> new "backgroundBrand" gradient.getBackgroundForLoginLoadingScreen(context: Context)
--> Movistar and Telefonica should use "brandHigh" solid color, the rest of them, new "backgroundBrand" gradient.- This should be defined in apps themselves as it is not a mística component. (See next section for applying)
-
colorBackgroundBrand
andcolorBackgroundContainerBrand
can be now a solid color or a gradient.- For xml:
colorBackgroundBrand
has been removed,drawableBackgroundBrand
should be used from now on.colorBackgroundContainerBrand
has been removed,drawableBackgroundContainerBrand
should be used from now on.- IMPORTANT: Instead of plain colors these new attributes are drawables. Ensure drawable is also accepted where used.
- For compose:
MisticaTheme.colors.backgroundBrand
has been removed,MisticaTheme.brushes.backgroundBrand
should be used from now on.MisticaTheme.colors.backgroundContainerBrand
has been removed,MisticaTheme.brushes.backgroundContainerBrand
should be used from now on.- Check Current Mistica Documentation for additional info with examples.
- For xml:
-
MisticaColors
constructor arguments andcopy(...)
method have been removed.- In case you were instantiating one of these, just instantiate the object with no
constructor arguments, and assign specific colors on it afterwards. - If you were using copy method, make use of use of the already available method
updateColorsFrom(other: MisticaColors)
to achieve same behaviour to copy colors from anotherMisticaColors
object.
- In case you were instantiating one of these, just instantiate the object with no
-
Brand
interface has two new propertieslightBrushes
anddrakbrushes
- If you are extending this interface directly, you need to implement these properties accordingly with the brushes required for your brand.
- Mistica brands objects extending from Brand already implement these properties, so you will just usually need to reference the appropriate mistica brand brushes in your app.
-
Min api level support raised to 24
What's Changed
- ANDROID-14558 Mistica Gradients Support & O2New Brand by @dpastor in #352
Full Changelog: 11.8.0...12.0.0