Releases: RedMadRobot/gears-android
Releases · RedMadRobot/gears-android
gears-kotlin 0.1.0
Added
T.applyIf
- Applies the given block of modifications to the T if the condition is trueT.applyIfNotNull
- Applies the given block of modifications to the T if the value is not null
Full Changelog: 5522370...daf5c33
gears-compose 0.1.0
Added
FixedFontScaleContainer
- A container that fixes the font scale, ignoring values that are set in the phone's system settings
Full Changelog: 9d63294...e67924a
resultflow 0.1.0
Initial public release
Full Changelog: 9ada442...resultflow-v0.1.0
fragment-args-ktx 1.3.6-1
Changes
- Breaking change!
Removeddefault
parameters implementation from delegates to prevent mistakes when a value was not written before reading (#37).
IllegalStateException
will be thrown by default if you're trying to read a value that wasn't written before.
If you need to return the default value instead, specify thedefault
parameter manually. - Added parameter
key: String
todefault
lambda.
core-ktx 1.6.0-2
Fixed
- SharedPreferences delegates: added ability to use delegate in local and top-level properties
resources-ktx 1.3.1-0
Added
- Context: added type checks to extensions
resolveColor
- Context: new extensions
resolveDimension
,resolveDimensionPixelSize
andresolveDimensionPixelOffset
- Context: new extensions
resolveBoolean
,resolveInt
,resolveFloat
andresolveString
- Fragment: new extensions
getQuantityString
- View: new extensions
getQuantityString
Fixed
Inline
modifier added back to all resource accessors
Dependencies
- androidx.appcompat 1.3.0 -> 1.3.1
- androidx.core 1.5.0 -> 1.6.0
- androidx.fragment 1.3.5 -> 1.3.6
- kotlin-stdlib 1.5.20 -> 1.5.31
core-ktx 1.6.0-1
Added
- Canvas: new extensions
withClipOut
Changed
- Potentially breaking change!
Removeddefault
parameter from*Nullable
delegates, it will always return null by default.
Fixed
- Added
inline
modifier to Keyboard extensions - Default value in
SharedPreferences
delegate should not be evaluated before it needed (similar to #31)
Dependencies
- kotlin-stdlib 1.5.20 -> 1.5.31
fragment-args-ktx 1.3.6-0
Changes
- Potentially breaking change!
Parameterdefault
removed from*Nullable
delegates.- In case you want to return a non-null value by default, you should use the non-nullable version of delegate,
- If you want to return
null
it is the default behavior, - If you want to return either
null
or non-null value depending on some condition you should do it in the place where you read the value from the delegate.
Fixes
- Default value will be evaluated only if given key is not present in the bundle or value associated with the key is
null
(#31)
Dependencies
- androidx.fragment 1.3.5 -> 1.3.6
- kotlin-stdlib 1.5.20 -> 1.5.31
viewbinding-ktx 4.2.1-0
Dependencies
- kotlin-stdlib-jdk8 1.4.32 -> kotlin-stdlib 1.5.20
- androidx.databinding:viewbinding 4.1.2 -> 4.2.1
- androidx.fragment 1.3.0 -> 1.3.5
- androidx.lifecycle 2.3.0 -> 2.3.1
resources-ktx 1.3.0-0
Dependencies
- kotlin-stdlib-jdk8 1.4.32 -> kotlin-stdlib 1.5.20
- androidx.appcompat 1.2.0 -> 1.3.0
- androidx.annotation 1.1.0 -> 1.2.0
- androidx.core 1.3.0 -> 1.5.0
- androidx.fragment 1.3.0 -> 1.3.5
Added
- Wrapper
Text
to make it possible to work with plainString
andStringRes
in the same way.