This repository has been archived by the owner on Jul 13, 2020. It is now read-only.
Releases: Kotlin/anko
Releases · Kotlin/anko
Anko 0.10.8
Anko 0.10.7
What's new
This release has satellite with version number 0.10.7-rc13
. It's built with Kotlin 1.3-RC3
and release kotlinx.coroutines 0.30.1-eap13
. Please try it and feel free to provide any feedback.
- Fixed "Bad lambda receiver type in verticalLayout's" #673
- Satellite release 0.10.7-rc13
Anko 0.10.6
What's new
This release has satellite with version number 0.10.6-eap13
. It's built with Kotlin 1.3-M2
and release kotlinx.coroutines 0.26.0-eap13
. Please try it and feel free to provide any feedback.
Anko 0.10.5
What's new
- Preview plugin compatibility with Android Studio 3.2 C12 & IDEA 181, Kotlin 1.2+ is required now
- Theme attribute resolve for colors, dimensions and "raw" attributes (#144)
- Shared prefs extensions (#531, #532)
doBeforeSdk
helper function (#567)- Allow nullable values for intents in the support package (#520)
- Anko SQLite: Support to foreign key constraint actions (#523)
- XmlConverter: Do not fail with exception when id can't be rendered properly (#564)
- XmlConverter: Function
dp
is unresolved after conversion (#563)
Anko 0.10.4
What's new
- DSL for ConstraintLayout
- Preview plugin compatibility with Android Studio 3.1 C6
Anko 0.10.3
Bugfixes
- Anko support plugin compatibility with Kotlin 1.1.60+
- Fix Xml to Dsl converter (#370)
lparams
forCollapsingToolbarLayout
, now returns correct LayoutParams (#275, #269)Context.clipboardManager
now returns newClipboardManager
instead of deprecated one (#180)- Generate layout wrapper for
CardView
(#269, #357) - Fix ClassParser's Boolean parser when type is Long (#464)
Breaking Changes
- Removed Dsl for classes from
android.support.design.internal.*
as they shouldn't be used outside of support library
Other Changes
TextInputEditText
added to anko-design (#205)- Anko commons dialog extensions now accept
CharSequence
instead ofString
(#422) - Add start and end rules to RelativeLayout.LayoutParams extensions (#497)
- Add
allCaps
andems
properties to TextView (#459) - Add snackbar helpers with indefinite duration (#454)
- Allow nullable values in
createIntent
andstartActivity
(#465) - Add extensions for
View::backgroundColorResource
andTextView::textColorResource
(#254) - Return
ComponentName
fromstartService
methods (#435) - Allow alerts to be cancelable (#405)
- Add intent helpers for stopping services (#509)
- Return toast object in toast helper functions (#512)
Anko 0.10.2
Anko 0.10.1
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.
Bugfixes:
0.10 Beta 2
Breaking changes:
- DSL listeners moved to
anko-<platformName>-listeners
(e.g.anko-sdk15-listeners
) artifacts; - The custom
async()
function introduced in 0.10.0-beta1 was removed (useasync()
from kotlinx.coroutines); AnkoLogger(clazz: KClass<*>)
andAnkoLogger(obj: Any)
functions are removed;
Other changes:
anko-<platformName>-coroutines
(e.g.anko-sdk15-coroutines
) artifacts with the new listener helpers with coroutines support;lparams
functions are nowinline
#338;bg()
function that executes code in a background thread and returnsDeferred<T>
;AnkoLogger
now has the reified version:AnkoLogger<MyClass>()
;