Skip to content
This repository has been archived by the owner on Jul 13, 2020. It is now read-only.

Anko 0.10

Compare
Choose a tag to compare
@yanex yanex released this 17 May 18:35
· 163 commits to master since this release

🐧 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.