Skip to content

Releases: bixlabs/bkotlin

v2.2.0

25 Jun 14:57
Compare
Choose a tag to compare

Breaking Changes

  • Updated Kotlin version to 1.3.40 and Gradle Build Tools to 3.4.1

New Extensions

  • Added Only, an easy way of running tasks
  • Added getLuma, getDarker and toHexString Color extensions
  • Added useAndRecycle extension to TypedArray
  • Added getActivity extension to Views
  • Added verifyMoreThan and verifyLessThan to ObjectValidation

v2.1.0

12 Mar 16:28
Compare
Choose a tag to compare

Breaking changes:

  • Migrated to AndroidX

New extensions:

  • Fix: Made Any.toUnit optional since regardless of the input it should always output Any
  • New: AtomicFile extensions.
  • New: Bitmap extensions.
  • New: Menu extensions.
  • New: Uri extensions.
  • New: View.drawToBitmap extension.

v2.0.0

02 Mar 21:54
Compare
Choose a tag to compare

Breaking changes:

  • Updated to Kotlin 1.3.21, Build Tools 3.3.1 and Gradle 4.10.1
  • BKotlin now supports Android KitKat (SDK 19) and later. Support for minSdk 16 has been officially dropped.

New extensions:

  • Added Number.times extension.
  • Added Any.toUnit extension.
  • Added View.resizeHeight, View.resizeWidth, View.resize, and other View extensions to set the relative padding in a more granular way.

1.8.1

18 Oct 14:33
Compare
Choose a tag to compare
  • Improved attempt documentation and added result method to allow for more fluent attempts

1.8.0

15 Oct 13:02
Compare
Choose a tag to compare
  • BC: Migrated to Android Studio 3.2
  • BC: Updated Build Tools and Support libs to v28
  • Added two new optional Boolean extensions

Please note that 1.x.x will be the last major release supporting Support Libs. We will be moving towards AndroidX starting 2.0.0

v1.7.2

06 Sep 13:25
Compare
Choose a tag to compare
  • Added enterFullscreenMode and exitFullScreenMode Activity extensions

v1.7.1

26 Aug 18:45
Compare
Choose a tag to compare
  • Updated Kotlin dependency to 1.2.61
  • Added ObjectValidation utilities

v1.7.0

11 Aug 20:37
Compare
Choose a tag to compare
  • Updated gradle wrapper to gradle-4.4
  • Updated dependencies and kotlin to version 1.2.60
  • Improved Bundlify to either create or take an incoming Bundle and add properties to it.
  • Added ShowHideIfBuilder and its extensions to View extensions
  • Improved Thread extensions syntax and definitions

v1.5.0

10 Feb 02:30
Compare
Choose a tag to compare
  • Updated dependencies to the latest available and adapted certain methods to match them.
  • Introduced KOptional, a replacement for Java 8 Optional more suitable for Kotlin and available for Android.
  • Added a added a safe version of runDelayedOnUiThread called safeRunDelayedOnUiThread which wraps the block invocation of runDelayedOnUiThread inside an attempt.

Breaking changes:

  • Fragment.getDisplayMetrics() will now return an empty set of Metrics if the fragment isn't attached to an Activity.
  • Context.getDrawableSelectorCompat now returns an optional Drawable. null will be returned if the requested resId isn't found. This is done to comply with ContextCompat.getDrawable definition and prevent possible crashes.
  • Fragment.hideKeyboard() now will not attempt showing the keyboard if the fragment isn't attached to an Activity.

Added String extension containsExact

15 Jan 23:10
Compare
Choose a tag to compare
v1.4.2

Added String extension containsExact