Anko Versions Save

Pleasant Android application development

v0.10.0-beta1

7 years ago

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 to themed…() 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 and anko-appcompat-v7-common (with basic helpers, without the DSL functionality) #158;
  • Synthetic properties (such as act or ctx) are now inline;
  • TextView.enabled generated property is removed #245;
  • Accessing setter-only property values is forbidden;
  • SAM View listener setter functions are now inline;
  • Add isError and hasValue to AttemptResult;
  • Fix NoSuchMethodError on accessing act property from the support Fragment #311.

v0.9.1

7 years ago
  • Allow to use AnkoLogger as an instance #262;
  • FOREIGN_KEY now returns Pair<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.

v0.9

7 years ago
  • 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() to doAsync(), onUiThread() to runOnUiThread() for Fragment and Context;
  • Add AnkoAsyncContext.onComplete() #181;
  • uiThread() now returns false if code was not executed;
  • Ability to add an exception handler to doAsync() #182;
  • Add newTask parameter to browse() #186;
  • Add sendSMS() #171;
  • Add makeStyle() #132;
  • Add Activity.contentView property #157;
  • Add horizontalProgressBar() #23;
  • Add doFromSdk() and doIfSdk() #118;
  • Add alignStart() and alignEnd() to RelativeLayout.LayoutParams extensions;
  • AlertDialogBuilder: make the dialog property public #140;
  • Add okButton(), yesButton(), cancelButton(), noButton() to AlertDialogBuilder;
  • 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 to forEachReversedByIndex();
  • Rename style() to applyRecursively();
  • 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.

v0.8.3

8 years ago

Built for Kotlin 1.0.

  • Remove deprecated android.support.v4.Fragment.addView() function.

v0.8.2

8 years ago

Built for Kotlin 1.0 RC.

  • forEachChild(), forEachChildWithIndex(), firstChild(), firstChildOrNull() are inlined now #134;
  • Int.withAlpha #125;
  • ContextWrapper is now supported by AnkoContext;
  • Anko library size and method count was slightly reduced.

v0.8.1

8 years ago

Built for Kotlin Beta 3 (1.0.0-beta-3595).

  • SQLite helpers are moved to anko-sqlite artifact;
  • 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.

v0.8

8 years ago

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 :rocket:;
  • Add TextView.gravity #96 and ImageView.imageResource #102 properties;
  • Cancel is the default negative button name #112;
  • Fix AnkoLogger.wtf;
  • Remove deprecated __dslAddView functions.

v0.7.3

8 years ago

Built for Kotlin Beta Candidate (1.0.0-beta-1103).

v0.7.2

8 years ago

Built for Koltin Beta Candidate.

v0.7.1

8 years ago

Built for Koltin M14 (0.14.449).

Changes:

  • Allow getting MenuItems as a Sequence #86;
  • findOptional<T>();
  • An exception in DSL Preview plugin is fixed (Android Studio 1.4).