Comments (8)
FYI: In version 2.6.0, I will remove desugar requirement from the library (while keeping the current min sdk). All the calendar logic live in the core
and data
modules which are pure java/kotlin modules hence no need for desugar there. I have also seen that I can remove the requirement from the view
and compose
library modules as well, without changes to the min sdk.
There is already a snapshot published with this feature if you'd like to test that everything works as expected:
repositories {
google()
mavenCentral()
// Add the snapshot repository
maven("https://s01.oss.sonatype.org/content/repositories/snapshots/")
}
dependencies {
implementation("com.kizitonwose.calendar:view:2.6.0-SNAPSHOT")
implementation("com.kizitonwose.calendar:compose:2.6.0-SNAPSHOT")
}
from calendar.
Most things can be done using the Kotlin standard library and avoiding using JDK apis that require core library desugaring.
This may be true, but the java.time
APIs are much easier to work with. No point reinventing the wheel which will end up making the library usage even more difficult because you have to figure out how to do everything with the standard library. The increased build time is a small price IMO.
from calendar.
Thoughts on making this library minSdk=26
, which would allow using java.time
without core library desugaring?
from calendar.
I also use this in some projects, and they are all minSdk=24
, I would not bump the min sdk for the sole purpose of dropping desugar. In the future, I'd consider splitting it into a separate module, but it is not a priority right now.
from calendar.
The latest 2.6.0-SNAPSHOT
worked for me without enabling coreLibraryDesugaringEnabled true
(minSdk 34), thanks for the fix! Tested with compose compiler gradle plugin 2.0.0
on compose-bom:2024.05.00
. I was getting build failures with com.kizitonwose.calendar:compose:2.5.1
and com.kizitonwose.calendar:compose:2.6.0-beta01
.
from calendar.
@kizitonwose Any timeline/estimate for a beta/stable release with not desugar requirement? :)
from calendar.
@MarcLFJ I was thinking to release it in version 2.6.0 with Compose UI 1.7, so I don't have to do a version bump twice. But maybe it makes sense to release it already.
from calendar.
Related Issues (20)
- Crash using Compose BOM 2024-02-00 HOT 1
- Don't want to show extra adjusted start and end dates in WeekCalender HOT 1
- Range Date Picker selector in WeekCalendar HOT 1
- Add Grid Calendar
- Preload view in MonthDayBinder HOT 3
- Home Sample Sample Inquiry HOT 1
- Calendar DaysView
- Single Selection in Vertical Calendar HOT 1
- can not implement single selection HOT 1
- Show week numbers HOT 1
- from example1 to exapmle8,i can't find this example HOT 1
- help HOT 1
- how can i show the lunar calendar's bellow the number? HOT 2
- Consider multiple platforms? HOT 1
- Exception after updating dependencies Compose 1.7.0-beta01 Kotlin 1.9.24 HOT 2
- Bug with WeekCalendar
- Desugaring required even if the min sdk is set to 28 (MultiModule project) HOT 4
- [Compose] Add spacing between Day composables in HorizontalCalendar without affecting container edges HOT 2
- For compose Calendar, Is that possible to implement that toggle week/month mode? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from calendar.