This repository was 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)
doBeforeSdkhelper 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
dpis 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)
lparamsforCollapsingToolbarLayout, now returns correct LayoutParams (#275, #269)Context.clipboardManagernow returns newClipboardManagerinstead 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
TextInputEditTextadded to anko-design (#205)- Anko commons dialog extensions now accept
CharSequenceinstead ofString(#422) - Add start and end rules to RelativeLayout.LayoutParams extensions (#497)
- Add
allCapsandemsproperties to TextView (#459) - Add snackbar helpers with indefinite duration (#454)
- Allow nullable values in
createIntentandstartActivity(#465) - Add extensions for
View::backgroundColorResourceandTextView::textColorResource(#254) - Return
ComponentNamefromstartServicemethods (#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
DslMarkerannotation support; - Anko Support IDE plugin updated for Android Studio 2.4.
All changes:
Breaking changes:
DslMarkerannotation support (callinglparams()inside View blocks is finally forbidden);- DSL listeners moved to
anko-<platformName>-listenersartifacts (e.g.anko-sdk25-listeners); - View blocks with the
themeparameter 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);AlertBuilderinterface with core and appcompat implementations.AlertDialogBuilderis deprecated;Snackbarhelpers #203;Dialog.find()method #351;foreach()extensions forSparseArray#255;- Reified version for
AnkoLogger(AnkoLogger<MyClass>()); isErrorandhasValuetoAttemptResult.
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-commonartifact renamed toanko-commonsto reflect the naming changes.anko-commonis deprecated;ClassParsernow accepts all primitive types #320;- Synthetic properties (such as
actorctx) are nowinline; lparamsfunctions are nowinline#338;- Removed
TextView.enabledgenerated 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;lparamsfunctions are nowinline#338;bg()function that executes code in a background thread and returnsDeferred<T>;AnkoLoggernow has the reified version:AnkoLogger<MyClass>();