maxkeppeler / sheets-compose-dialogs

✨ Enhancing Android UIs: A Jetpack Compose Library supporting a wide range of common use-cases with Material Design 3 Dialogs, Popups, and Bottom Sheets. ✨
https://maxkeppeler.github.io/sheets-compose-dialogs/
Apache License 2.0
780 stars 32 forks source link

[Question] Min version SDK. #60

Closed eugene-bes closed 1 year ago

eugene-bes commented 1 year ago

Where I can find information about min version sdk? In AndroidManifest.xml I saw min 21 but for LocalData from java package you need min 26. How it's can work for api 21?

eugene-bes commented 1 year ago

Run app on Android 5 (emulator) java.lang.NoClassDefFoundError: Failed resolution of: Ljava/time/LocalDate; at com.maxkeppeler.sheets.calendar.utils.Constants.<clinit>(Constants.kt:28) at com.maxkeppeler.sheets.calendar.models.CalendarConfig.<init>(CalendarConfig.kt:40)

eugene-bes commented 1 year ago

We use threetenbp it has API like Java DateTime but for threetenbp need min sdk 21. What do you think about supporting sdk 21? @maxkeppeler

Nek-12 commented 1 year ago

You should probably just use desugaring to support Java 8 apis

maxkeppeler commented 1 year ago

Nek-12 is right. For the modules that use Java Time, you have to use desugaring.

eugene-bes commented 1 year ago

@Nek-12 @maxkeppeler Thanks guys! Really work and for me it's something new!!! I'm a shok)))