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 (callinglparams()
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 tothemedβ¦()
to avoid disambiguation; - β Removed
AnkoLogger(clazz: KClass<*>)
andAnkoLogger(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 forSparseArray
#255; - Reified version for
AnkoLogger
(AnkoLogger<MyClass>()
); isError
andhasValue
toAttemptResult
.
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 toanko-commons
to reflect the naming changes.anko-common
is deprecated; - π
ClassParser
now accepts all primitive types #320; - Synthetic properties (such as
act
orctx
) are nowinline
; lparams
functions are nowinline
#338;- β Removed
TextView.enabled
generated property #245; - Accessing setter-only property values is now forbidden.
π Bugfixes:
- π Coroutines and