Anko v0.10 Release Notes

Release Date: 2017-05-17 // almost 7 years ago
  • 🍱 🐧 Notable changes:

    • πŸ‘ Coroutines and DslMarker annotation support;
    • ⚑️ Anko Support IDE plugin updated for Android Studio 2.4.

    All changes:

    πŸ’₯ Breaking changes:

    • πŸ‘ DslMarker annotation support (calling lparams() inside View blocks is finally forbidden);
    • 🚚 DSL listeners moved to anko-<platformName>-listeners artifacts (e.g. anko-sdk25-listeners);
    • View blocks with the theme parameter renamed to themed…() to avoid disambiguation;
    • βœ‚ Removed AnkoLogger(clazz: KClass<*>) and AnkoLogger(obj: Any).

    πŸ†• New API:

    • πŸ‘ anko-<platformName>-coroutines (e.g. anko-sdk25-coroutines) artifacts with the new listener helpers with coroutines support;
    • bg() function that executes code in background (wrapper on top of kotlinx.coroutines);
    • AlertBuilder interface with core and appcompat implementations. AlertDialogBuilder is deprecated;
    • Snackbar helpers #203;
    • Dialog.find() method #351;
    • πŸ“œ foreach() extensions for SparseArray #255;
    • Reified version for AnkoLogger (AnkoLogger<MyClass>());
    • isError and hasValue to AttemptResult.

    Other changes:

    • πŸ”Œ Anko Support IDE plugin upated in order to support Android Studio 2.4;
    • βž• Added meta-artifact org.jetbrains.anko:anko;
    • Added Anko Commons artifacts for Android support libraries (anko-support-v4-commons, anko-appcompat-v7-commons) #158;
    • πŸ†• New Android SDK target: sdk-25;
    • ⚑️ Updated Android Support library dependencies;
    • πŸ—„ anko-common artifact renamed to anko-commons to reflect the naming changes. anko-common is deprecated;
    • πŸ“œ ClassParser now accepts all primitive types #320;
    • Synthetic properties (such as act or ctx) are now inline;
    • lparams functions are now inline #338;
    • βœ‚ Removed TextView.enabled generated property #245;
    • Accessing setter-only property values is now forbidden.

    πŸ›  Bugfixes:

    • πŸ›  Fix NoSuchMethodError on accessing act property from the support Fragment #311;
    • πŸ›  Fix compatibility with Proguard #235;
    • Require the relative view id to be set in RelativeView helpers #363.