Skip to content

Releases: drewhamilton/InlineDimens

0.7.0

31 May 16:21
Compare
Choose a tag to compare
0.7.0 Pre-release
Pre-release

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

25 Apr 11:39
Compare
Choose a tag to compare
0.6.2 Pre-release
Pre-release

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

23 Feb 17:14
Compare
Choose a tag to compare
0.6.1 Pre-release
Pre-release

Add extension properties on Int and Float for a nice dimen declaration syntax (e.g. 16.dp, 24f.px)

0.6.0

10 Feb 19:16
Compare
Choose a tag to compare
0.6.0 Pre-release
Pre-release

Move to Maven Central. Change group name and package name to dev.drewhamilton.inlinedimens.

0.5.3

07 Oct 15:43
Compare
Choose a tag to compare
0.5.3 Pre-release
Pre-release

Add basic LayoutParams extensions for height, width, and margins.

0.5.2

06 Oct 14:45
Compare
Choose a tag to compare
0.5.2 Pre-release
Pre-release
  • Extensions for TextView
  • Additional extensions for View
  • Primitive array types, e.g. DpIntArray

0.5.1

17 Aug 08:47
Compare
Choose a tag to compare
0.5.1 Pre-release
Pre-release
  • Remove internal Dimen and DimenInt interfaces, which caused unwanted boxing in some functions.
  • Remove @file:JvmName tags, as inline classes are unusable from Java anyway.

0.5.0

16 Aug 18:19
Compare
Choose a tag to compare
0.5.0 Pre-release
Pre-release

Add extensions for public View dimension-related functions.

0.4.0

06 Aug 18:49
Compare
Choose a tag to compare
0.4.0 Pre-release
Pre-release

Add parameter-free conversion methods, e.g. Px.toDp().

0.3.0

04 Aug 19:43
Compare
Choose a tag to compare
0.3.0 Pre-release
Pre-release
  • Add Display extensions
  • Redesign text size extensions
  • Remove BuildConfig