Skip to content

Releases: Telefonica/mistica-android

13.0.1

25 Jun 07:14
b50e2eb
Compare
Choose a tag to compare

What's Changed

Full Changelog: 13.0.0...13.0.1

13.0.0

24 Jun 13:34
38f8064
Compare
Choose a tag to compare

What's Changed

🔨 Breaking Changes

A new optional parameter has been added to the Snackbar builder. This parameter allows including a custom content description in the action button.

If you are using the Snackbar from Java code, you must include this new parameter (you can pass null) when calling withAction because Java doesn't support the optional parameters. Example:

Before:
.withAction(R.string.retry, (v) -> retryAction.run())

After:
.withAction(R.string.retry, null, (v) -> retryAction.run())

Full Changelog: 12.3.0...13.0.0

12.3.0

06 Jun 11:53
a2513ff
Compare
Choose a tag to compare

What's Changed

Full Changelog: 12.2.0...12.3.0

12.2.0

06 Jun 10:01
f654c69
Compare
Choose a tag to compare

What's Changed

Full Changelog: 12.1.2...12.2.0

12.1.2

24 May 08:36
b1dcc54
Compare
Choose a tag to compare

What's Changed

  • ANDROID-14711 Allow setting colors from outside now that copy method has been deleted from MisticaColors and MisticaBrushes by @dpastor in #357

Full Changelog: 12.1.1...12.1.2

12.1.1

23 May 12:00
7554604
Compare
Choose a tag to compare

What's Changed

Full Changelog: 12.1.0...12.1.1

12.1.0

23 May 06:01
1ff1103
Compare
Choose a tag to compare

What's Changed

Full Changelog: 12.0.0...12.1.0

12.0.0

09 May 14:18
f404f11
Compare
Choose a tag to compare

🔨 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

11.8.0

08 May 10:09
1872455
Compare
Choose a tag to compare

What's Changed

Full Changelog: 11.7.0...11.8.0

11.7.0

26 Apr 11:55
69ba5f5
Compare
Choose a tag to compare

What's Changed

Full Changelog: 11.6.0...11.7.0