Skip to content

Releases: tobykurien/Xtendroid

v0.13

23 Mar 12:14
Compare
Choose a tag to compare
  • New active annotation: @AndroidJsonized automatically creates a Json parsing bean automatically from a given sample of JSON text.
  • Fixes and enhancements to @AndroidParcelable and @BundleProperty now allows very easy passing of data models to fragments
  • Updated to work with Android Studio 2 (beta)
  • Bug fixes

v0.12.1

05 Aug 07:09
Compare
Choose a tag to compare
  • Asynchronous saving of shared preferences
  • bug fix: resolved Class.forName errors during compilation

v0.12.0

24 Jul 13:12
Compare
Choose a tag to compare
  • New @AndroidDialogFragment annotation to making dialogs easier
  • Added AsyncBuilder and deprecated BgTask for much cleaner and more flexible multi-threading code
  • Added support for using from Android Studio
  • Added support for Xtend 2.8
  • various bug fixes

v0.11

08 Dec 19:06
Compare
Choose a tag to compare

Main changes:

  • @AndroidViewHolder annotation added to make the View Holder pattern trivial to implement.
  • AlertUtils.runOnUiThread() added. It takes a context, allowing you to Toast, etc. from any context.
  • Many bug fixes
  • Updated documentation, including main README.
  • Updated build scripts to use latest plugin versions and latest Gradle
  • Added Sample1 example to the main Gradle build

For commit log, see #60

v0.10.1

20 Aug 12:22
Compare
Choose a tag to compare
  • Changes to build config and AndroidManifest.xml to make building from Gradle using maven repository possible
  • Updated documentation to include details on using Gradle to build Xtendroid-using project

v0.10

18 Aug 12:00
Compare
Choose a tag to compare

Major release with many contributions from @Buggaboo and @svenefftinge

  • @AndroidActivity now takes a default value, so that instead of specifying @AndroidActivity(layout=R.layout...), you can leave out the layout= part: AndroidActivity(R.layout...). This feature has been applied to other annotations as well.
  • @AndroidFragment now has all the features of @AndroidActivity, including the ability to use @OnCreate
  • @AndroidPreference has been updated to be class-level, and removes the previous boilerplate needed for a settings class
  • Many new annotations: @AndroidJson (replaces @JsonProperty), @AndroidParcelable, @BundleProperty, @AndroidAdapter, @AndroidLoader, @AndroidDatabase, @AddLogTag, @EnumProperty, @CustomView, @CustomViewGroup. See updated documentation for details.
  • Deprecated annotations: @AndroidView, @JsonProperty. They will still be available in future releases though.
  • Major updates to the XtendroidTest app, which is now a demo of the Xtendroid API, as well as a test app for the test cases in XtendroidTestCases.
  • enhanced gradle build
  • Code updated for the upcoming Xtend v2.7 release (but still compiles on v2.6)
  • Lots of bug fixes and code cleanups
  • Documentation much improved, and includes documentation on work-in-progress annotations that are included in this release

v0.9

28 May 11:06
Compare
Choose a tag to compare
  • Compiled with Xtend v2.6. You may get compile errors using @androidactivity from older releases with Xtend v2.6
  • Added @JsonProperty for creating JSON beans.
  • Fixed lambda signature for AlertUtils.confirm() so that a null return value is no longer required. This will break old code - you will get a compiler error asking you to remove the null return value.
  • Reduced boilerplate for sub-classing BasePreferences
  • Removed the equals operator from TimeUtils as it broke when Date objects were null.

v0.8

05 May 17:10
Compare
Choose a tag to compare
  • many more TimeUtils operators to allow adding/subtracting milliseconds to java.util.Date and comparing Dates with other Dates and milliseconds
  • added LazyList, BaseDbService.lazyFindAll() and BaseDbService.lazyFindByFields() to allow querying very large amounts of data (up to Integer.MAX_VALUE items) and retrieve them in a batched and object-pooled way
  • modified BeanAdapter to accept the LazyList so that very large amounts of data can be displayed in a ListView or other component.

v0.7

27 Apr 12:59
Compare
Choose a tag to compare
  • many bug fixes and removal of null return values
  • added tests to start test coverage. Currently tests BaseDbService. More tests coming.
  • Added TimeUtils class which allows code like:
var yesterday = 24.hours.ago
var tomorrow = 24.hours.fromNow
var futureDate = new Date(System.currentTimeMillis + 48.days + 20.hours + 2.seconds)
  • changed handling of persistance of java.util.Date values: now stores the long time value instead of string. This may break backwards compatability (although SQLite can treat dates as strings or numbers)
  • contribution from @xfer - @AndroidView now handles custom views
  • Added generic types to BaseDbService.findByXXX() methods, meaning return values are now typed correctly
  • BaseDbService.findByFields() now accepts a limit and offset (skip), allowing paging of data
  • You can now specify an operator for each field value passed to BaseDbService.findByFields()

v0.6

27 Mar 15:47
Compare
Choose a tag to compare
  • BgTask no longer requires the UI task, allowing a shorthand way to use it:
  new BgTask<Void>.runInBg [|
    // do background stuff
  ]
  • Major changes to ABatisService to improve performance, and allow passing SQL strings in
  • Added findXXX() methods to BaseDbService, which avoids the need to create SELECT SQL statements: findById, findByFields, findAll
  • Fixed handling of boolean columns
  • Better handling of Preferences cache