- DSL for ConstraintLayout
- Preview plugin compatibility with Android Studio 3.1 C6
- 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)
- Removed Dsl for classes from
android.support.design.internal.*as they shouldn't be used outside of support library
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)
- Fixed Anko Support IDE plugin compatibility with Android Studio 3.0 RC1
Fragment.indeterminateProgressDialognow shows indeterminate progress dialog instead of classic (#487)- Added methods for creating and dropping a index for SQLiteDatabase (#472)
- Fix assertion in the Anko Support IDE plugin (#387);
- Update
kotlinx.coroutines.androiddependency (the old one fails to resolve in Android Studio 3.0) )#381); - Fix inconsistency between
hasNext()andnext()inchildrenRecursiveSequence()(#388).
- Coroutines and
DslMarkerannotation support; - Anko Support IDE plugin updated for Android Studio 2.4.
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).
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.
- 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.
- Fix
NoSuchMethodErroron accessingactproperty from the support Fragment #311; - Fix compatibility with Proguard #235;
- Require the relative view
idto be set inRelativeViewhelpers #363.
- 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;
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>();
Anko 0.10 requires Kotlin 1.1.
- View DSL functions that accept the
themeparameter are renamed tothemed…()to avoid disambiguation; DslMarkersupport (lparamsinside the View lambda are now forbidden);
- Add
anko-coroutinesartifact with the Kotlin 1.1 coroutines support (async/bg); - New Android SDK target:
sdk-25; - Android Support library dependencies updated;
AlertBuilderinterface with core and app-compat implementations.AlertDialogBuilderis deprecated;ClassParsernow accepts all primitive types #320;- New artifacts:
anko-support-v4-commonandanko-appcompat-v7-common(with basic helpers, without the DSL functionality) #158; - Synthetic properties (such as
actorctx) are nowinline; TextView.enabledgenerated property is removed #245;- Accessing setter-only property values is forbidden;
- SAM View listener setter functions are now
inline; - Add
isErrorandhasValuetoAttemptResult; - Fix
NoSuchMethodErroron accessingactproperty from the support Fragment #311.
- Allow to use
AnkoLoggeras an instance #262; FOREIGN_KEYnow returnsPair<String, SqlType>#258 #219;- Fix
SparseArrayas 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.
- 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()forFragmentandContext; - Add
AnkoAsyncContext.onComplete()#181; uiThread()now returnsfalseif code was not executed;- Ability to add an exception handler to
doAsync()#182; - Add
newTaskparameter tobrowse()#186; - Add
sendSMS()#171; - Add
makeStyle()#132; - Add
Activity.contentViewproperty #157; - Add
horizontalProgressBar()#23; - Add
doFromSdk()anddoIfSdk()#118; - Add
alignStart()andalignEnd()toRelativeLayout.LayoutParamsextensions; AlertDialogBuilder: make thedialogproperty 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
forEachReversedtoforEachReversedByIndex(); - Rename
style()toapplyRecursively(); - Allow the database to be pluggable for query builders #187;
- Fix
NOT_NULLSQL type modifier #175; - Fix
startActivityForResultcalled on wrong object (for Fragments) #76; - Fix
includedoesn't set LayoutParams from the XML #149; View.backgroundDrawableis nullable now #169;classParserhas always not accessible constructor #136 #145.
Built for Kotlin 1.0.
- Remove deprecated
android.support.v4.Fragment.addView()function.
Built for Kotlin 1.0 RC.
forEachChild(),forEachChildWithIndex(),firstChild(),firstChildOrNull()are inlined now #134;Int.withAlpha#125;ContextWrapperis now supported byAnkoContext;- Anko library size and method count was slightly reduced.
Built for Koltin Beta 3 (1.0.0-beta-3595).
- SQLite helpers are moved to
anko-sqliteartifact; - Fixed "Implicit setContentView in onCreate doesn't work in 0.8" #114;
- Fixed "Anko DSL Preview plugin 0.8 crashes" #115;
- Add intention:
0xffefefef.toInt()→0xef.gray.opaque; - Add
forEachChild(),firstChild(),firstChildOrNull()helpers.
Built for Kotlin Beta 2 (1.0.0-beta-2423).
AnkoComponentinterface for writing reusable components;- New DSL preview plugin: much more fast and stable 🚀;
- Add
TextView.gravity#96 andImageView.imageResource#102 properties; Cancelis the default negative button name #112;- Fix
AnkoLogger.wtf; - Remove deprecated
__dslAddViewfunctions.
Built for Kotlin Beta Candidate (1.0.0-beta-1103).
Built for Kotlin Beta Candidate.
Built for Kotlin M14 (0.14.449).
- #86 New: Allow getting MenuItems as a Sequence.
- New: Added
findOptional<T>forView,ActivityandFragment. - Fix: An exception in DSL Preview plugin in Android Studio 1.4.
Built for Kotlin M13 (0.13.1513).
- Anko is now split to several components:
anko-commoncontains some basic helpers (such asasync,toastor SQLite parsers). Does not contain any of view DSL).anko-sdk15(also19,21,23) contains DSL bindings for the corresponding Android SDK version.anko-support-v4,anko-appcompat-v7and others - additional DSL bindings for the Android support library widgets.
- #78 Changed
asynclogic. - Most of extension properties for Views are removed because Kotlin now supports this seamlessly.
- #74 New: Ability to iterate children views lazily using sequences.
- #77 New: Extension functions for the optimized Android collections and arrays.
layoutParamsproperty is renamed tolparams(due to the clash withView.getLayoutParams).
Built for Kotlin M12.1 (0.12.613).
- New: Tinted (appcompat) widgets support.
- Deprecated extension properties for
RSSurfaceView,RSTextureView,WebVieware removed. - Intentions for
Toast.makeText(...).show()andfindViewById()in IDEA plugin. - #54 Fix: LayoutParams resolving for some widgets.
- #60 Support more types in
intentFor. - #65 Fix:
AnkoLoggercan't now be used as a delegate. - Fix:
InterfaceWorkaroundsfields. - DSL Preview plugin is updated to Robolectric 3.0 rc3.
- DSL generator refactoring.
Built for Kotlin M12 (0.12.200).
- Sensible listener argument names.
- Some listener arguments and properties are now not-null.
- New: Added
bundleOffunction. - New: Added
getBuilderinAlertDialogBuilder. - #42 New: Added
Context.startServiceextension. - #46 Fix:
IllegalArgumentExceptioninAnkoLogger. - #44 Fix: Wrong return type for
include. - #42 Fix:
INTEGERSqlTypeinstead ofINT. - #31 Fix: Added
withArgumentsforandroid.support.v4.Fragment. - #45 Fix:
SingleColumnParserandScalarColumnParser. - #38 Fix:
SQLiteDatabase.dropTablesignature.
Built for Kotlin M11 (0.11.91.4).
- #30 Fix: Arguments in
intentFor. - #29 New:
android.support.v4.app.Fragment.withArgumentsfunction. - #26 New: More extension properties (including
emptyViewforAdapterView). - #21 Fix: Supported String resources with
progressDialogandindeterminateProgressDialog.
Built for Kotlin M11 (0.11.91.2).
- Breaking: package name change (kotlinx.android.anko → org.jetbrains.anko).
- Breaking: new syntax for multi-method listeners.
- New: Supported Configuration qualifiers.
- New: Custom views creation.
- New: Supported
appcompat.v7views and properties. - Top-level DSL functions for simple views are removed.
- New:
startActivityForResult,dimenextension functions. - New:
uiThreadproperty forContextandFragment.
Built for Koltin M11 (0.11.91.1).
- Rebranding: Koan → Anko! ✨
- Preview plugin is available for IntelliJ IDEA and Android Studio.