Releases: drewhamilton/InlineDimens
0.7.0
Update to Kotlin 1.4.32. This causes binary incompatibilities with 0.6.x because the Kotlin name-mangling logic has changed since Kotlin 1.3.72.
Remove the deprecated to*Float
and to*Int
functions for all 3 unit types and all 3 unit-int types.
Add WindowMetrics.boundsPx
extension. Deprecate the extensions this replaces, Display.getSize
and Display.getRectSize
.
0.6.2
Add operator functions to all dimension types, so arithmetic can be performed with them.
Deprecate toDpFloat
and toDpInt
in favor of more precisely named exact
and toOffset
,
respectively. Add toSize
with similar rounding functionality to Android's
Resources.getDimensionPixelSize
.
Update to Kotlin 1.3.72.
0.6.1
Add extension properties on Int and Float for a nice dimen declaration syntax (e.g. 16.dp
, 24f.px
)
0.6.0
Move to Maven Central. Change group name and package name to dev.drewhamilton.inlinedimens
.
0.5.3
Add basic LayoutParams extensions for height, width, and margins.
0.5.2
- Extensions for TextView
- Additional extensions for View
- Primitive array types, e.g. DpIntArray
0.5.1
- Remove internal
Dimen
andDimenInt
interfaces, which caused unwanted boxing in some functions. - Remove
@file:JvmName
tags, as inline classes are unusable from Java anyway.
0.5.0
Add extensions for public View
dimension-related functions.
0.4.0
Add parameter-free conversion methods, e.g. Px.toDp()
.
0.3.0
- Add
Display
extensions - Redesign text size extensions
- Remove
BuildConfig