Releases: bixlabs/bkotlin
Releases · bixlabs/bkotlin
v2.2.0
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
andtoHexString
Color extensions - Added
useAndRecycle
extension to TypedArray - Added
getActivity
extension to Views - Added
verifyMoreThan
andverifyLessThan
toObjectValidation
v2.1.0
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
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
- Improved
attempt
documentation and addedresult
method to allow for more fluentattempt
s
1.8.0
- 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
- Added enterFullscreenMode and exitFullScreenMode Activity extensions
v1.7.1
- Updated Kotlin dependency to 1.2.61
- Added ObjectValidation utilities
v1.7.0
- Updated gradle wrapper to gradle-4.4
- Updated dependencies and kotlin to version 1.2.60
- Improved
Bundlify
to either create or take an incomingBundle
and add properties to it. - Added
ShowHideIfBuilder
and its extensions toView
extensions - Improved
Thread
extensions syntax and definitions
v1.5.0
- Updated dependencies to the latest available and adapted certain methods to match them.
- Introduced
KOptional
, a replacement for Java 8Optional
more suitable for Kotlin and available for Android. - Added a added a safe version of
runDelayedOnUiThread
calledsafeRunDelayedOnUiThread
which wraps the block invocation ofrunDelayedOnUiThread
inside anattempt
.
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 optionalDrawable
.null
will be returned if the requestedresId
isn't found. This is done to comply withContextCompat.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
v1.4.2 Added String extension containsExact