Releases: stoyan-vuchev/squircle-shape
Releases · stoyan-vuchev/squircle-shape
Release v3.0.1
Bumped dependency & lib versions.
- Bumped Compose Version to
1.7.3
. - Bumped Kotlin Version to
2.1.0
. - Bumped Library Version to
3.0.1
.
Release v3.0.0
I'm excited to announce the release of version 3.0.0, packed with new features, improvements, and breaking changes to enhance functionality and flexibility. This major release focuses on improved integration, customization, and alignment with the Jetpack Compose ecosystem.
✨ New Features
1. Integration with MaterialTheme
- The
SquircleBasedShape
class now extendsCornerBasedShape
, enabling seamless integration withandroidx.compose.material3.Shapes
.- You can now define squircle shapes at the theme level and use them across your Compose components.
2. Corner Smoothing Support
- Added support for
cornerSmoothing
directly within theSquircleBasedShape
constructor.- Smoothly transition corners for a delightful squircle effect.
- Works with both
MaterialTheme
shapes and custom shapes.
3. Enhanced RTL Support
- Improved handling of layout direction with proper adjustments for top-start, top-end, bottom-start, and bottom-end corner radii.
- Fully compatible with both
LayoutDirection.Ltr
andLayoutDirection.Rtl
.
- Fully compatible with both
🛠 Improvements
- Code Simplification: The
createSquircleShapeOutline
function now uses thecornerSmoothing
parameter more efficiently, eliminating the need for overloaded methods. - Performance Optimization: Ensured corner radii are clamped efficiently to fit the size constraints, enhancing rendering performance.
⚠️ Breaking Changes
1. SquircleBasedShape
API Changes
SquircleBasedShape
now directly extendsCornerBasedShape
. This change might require updates in your existing usage of the class, particularly if you were relying on custom implementations.
2. Removal of Overloaded Methods
- Overloaded versions of methods such as
createOutline()
andcopy()
have been replaced with streamlined usage of thecornerSmoothing
field in the base class.
🚀 How to Upgrade
- Update your dependency version to
3.0.0
. - Review the breaking changes section and update your code accordingly.
- Leverage the new
SquircleBasedShape
integration withMaterialTheme
for enhanced customization.
I'm grateful for your continued support and feedback. This release is a big step forward in making squircle shapes more accessible and customizable. Feel free to report issues, share suggestions, or contribute to future improvements.
🎉 Happy Coding! 🎉
Release v2.1.0
Support for iOS targets is finally here! 🎉
- Bumped Kotlin version to 2.0.21.
- Bumped Compose version to 1.7.1.
- Bumped other dependency versions.
- Bumped library version to v2.1.0.
- Other fixes & improvements.
Release v2.0.10
Added WasmJS support, updated Compose Multiplatform version to 1.7.0 and library version to 2.0.10.
- Bumped Kotlin version to v2.0.20.
- Bumped Compose Multiplatform version to v1.7.0.
- Bumped other dependencies version.
- Bumped library version to v2.0.10.
- Added support for WasmJS targets.
Release v2.0.0
Added support for Compose Multiplatform.
- Bumped Kotlin version to 2.0.0
- Bumped Compose version to 1.6.11
- Bumped other dependencies version
- Bumped library version to v2.0.0
Release v1.0.8
- Bumped Kotlin version to 1.9.23
- Bumped Compose version to 1.6.6
- Bumped Compose Compiler version to 1.5.12
- Bumped other dependencies version
- Bumped library version to v1.0.8
Release v1.0.7
- Bumped Kotlin version to 1.9.22
- Bumped Compose version to 1.6.1
- Bumped Compose Compiler version to 1.5.9
- Bumped other dependencies version
- Bumped library version to v1.0.7
Release v1.0.6
- Bumped Kotlin version to 1.9.20
- Bumped Compose version to 1.5.4
- Bumped Compose Compiler version to 1.5.4
- Bumped other dependencies version
- Bumped library version to 1.0.6
Release v1.0.5
- Bumped Kotlin version to 1.9.10
- Bumped Compose version to 1.5.1
- Bumped Compose Compiler version to 1.5.3
- Bumped other dependencies version
- Bumped library version to 1.0.5
- Updated README.md
Release v1.0.4
- Bumped library version to 1.0.4.
- Bumped Kotlin version to 1.9.0.
- Bumped Jetpack Compose version to 1.5.0.
- Bumped Jetpack Compose compiler version to 1.5.1.
- Bumped compileSdk to 34.
- Bumped sourceCompatibility & targetCompatibility Java version to 17.
- Replaced kotlinOptions.jvmTarget = "1.8" with kotlin { jvmToolchain(17) }.