Skip to content

12.0.0

Compare
Choose a tag to compare
@dpastor dpastor released this 09 May 14:18
· 40 commits to main since this release
f404f11

🔨 Breaking Changes

  1. 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)
  2. colorBackgroundBrand and colorBackgroundContainerBrand 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.
  3. MisticaColors constructor arguments and copy(...) 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 another MisticaColors object.
  4. Brand interface has two new properties lightBrushes and drakbrushes

    • 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.
  5. Min api level support raised to 24

What's Changed

Full Changelog: 11.8.0...12.0.0