This repository has been archived by the owner on Jul 13, 2020. It is now read-only.
Releases: Kotlin/anko
Releases · Kotlin/anko
0.10 Beta 1
Anko 0.10 requires Kotlin 1.1.
Repository: https://bintray.com/jetbrains/anko/anko/0.10.0-beta-1
Breaking changes:
- View DSL functions that accept the
theme
parameter are renamed tothemed…()
to avoid disambiguation; DslMarker
support (lparams
inside the View lambda are now forbidden);
Other changes:
- Add
anko-coroutines
artifact with the Kotlin 1.1 coroutines support (async
/bg
); - New Android SDK target:
sdk-25
; - Android Support library dependencies updated;
AlertBuilder
interface with core and app-compat implementations.AlertDialogBuilder
is deprecated;ClassParser
now accepts all primitive types #320;- New artifacts:
anko-support-v4-common
andanko-appcompat-v7-common
(with basic helpers, without the DSL functionality) #158; - Synthetic properties (such as
act
orctx
) are nowinline
; TextView.enabled
generated property is removed #245;- Accessing setter-only property values is forbidden;
- SAM View listener setter functions are now
inline
; - Add
isError
andhasValue
toAttemptResult
; - Fix
NoSuchMethodError
on accessingact
property from the support Fragment #311.
Anko 0.9.1
- Allow to use
AnkoLogger
as an instance #262; FOREIGN_KEY
now returnsPair<String, SqlType>
#258 #219;- Fix
SparseArray
as sequence returns list which doesn't match its size #243 #240; - Allow ManagedSQLiteOpenHelper to accept null for database name #228;
- Fix ProGuard warning (can't find referenced method 'int getThemeResId()' in library class android.view.ContextThemeWrapper). #206;
- Add
LayoutParams.baselineOf()
#213; - Allow nullable values in
intentFor
#211; - Migrate Anko build to Gradle.
Anko 0.9
- Update to Kotlin 1.0.2 and IDEA 2016.1 #161 #177;
- Support styles in DSL #16 #143;
- Add KDoc comments for most of Anko utilities #168;
- Rename
async()
todoAsync()
,onUiThread()
torunOnUiThread()
forFragment
andContext
; - Add
AnkoAsyncContext.onComplete()
#181; uiThread()
now returnsfalse
if code was not executed;- Ability to add an exception handler to
doAsync()
#182; - Add
newTask
parameter tobrowse()
#186; - Add
sendSMS()
#171; - Add
makeStyle()
#132; - Add
Activity.contentView
property #157; - Add
horizontalProgressBar()
#23; - Add
doFromSdk()
anddoIfSdk()
#118; - Add
alignStart()
andalignEnd()
toRelativeLayout.LayoutParams
extensions; AlertDialogBuilder
: make thedialog
property public #140;- Add
okButton()
,yesButton()
,cancelButton()
,noButton()
toAlertDialogBuilder
; - Add nullable values to SQLite helpers #154;
- Add
editText()
with input constraints #25; - Add
attempt()
#182; - Change semantics of
Intent.clearTask()
and similar functions, now add flags, not set (replace old) #173; - Rename
forEachReversed
toforEachReversedByIndex()
; - Rename
style()
toapplyRecursively()
; - Allow the database to be pluggable for query builders #187;
- Fix
NOT_NULL
SQL type modifier #175; - Fix
startActivityForResult
called on wrong object (for Fragments) #76; - Fix
include
doesn't set LayoutParams from the XML #149; View.backgroundDrawable
is nullable now #169;classParser
has always not accessible constructor #136 #145.
Anko 0.8.3
Built for Kotlin 1.0.
- Remove deprecated
android.support.v4.Fragment.addView()
function.
Anko 0.8.2
Anko 0.8.1
Built for Kotlin Beta 3 (1.0.0-beta-3595).
Anko 0.8
Built for Koltin Beta 2 (1.0.0-beta-2423).
Changes:
AnkoComponent
interface for writing reusable components (please see this example);- New DSL preview plugin: much more fast and stable 🚀;
- Add
TextView.gravity
#96 andImageView.imageResource
#102 properties; Cancel
is the default negative button name #112;- Fix
AnkoLogger.wtf
; - Remove deprecated
__dslAddView
functions.
Anko 0.7.3
Built for Kotlin Beta Candidate (1.0.0-beta-1103
).
Anko 0.7.2
Built for Koltin Beta Candidate.
Anko 0.7.1
Built for Koltin M14 (0.14.449).
Changes:
- Allow getting
MenuItem
s as aSequence
#86; findOptional<T>()
;- An exception in DSL Preview plugin is fixed (Android Studio 1.4).