This repository has been archived by the owner on Jul 13, 2020. It is now read-only.
Anko 0.10
🐧 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.