Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android build is failed for Kotlin 1.7.10 because of enum switch in 4.3.0 version #470

Closed
KostyaRolique opened this issue Feb 7, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@KostyaRolique
Copy link

KostyaRolique commented Feb 7, 2023

Flutter build is failed with this error:
/opt/homebrew/Caskroom/flutter/3.3.4/flutter/.pub-cache/hosted/pub.dartlang.org/device_calendar-4.3.0/android/src/main/kotlin/com/builttoroam/devicecalendar/CalendarDelegate.kt: (784, 9): ‘when’ expression must be exhaustive, add necessary ‘DAILY’, ‘HOURLY’, ‘MINUTELY’, ‘SECONDLY’ branches or ‘else’ branch instead

During the research I found out that android source code for release 4.3.0 isn't published (especially the file CalendarDelegate.kt):
https://github.com/builttoroam/device_calendar/releases/tag/4.3.0
https://pub.dev/packages/device_calendar/versions

@KostyaRolique KostyaRolique added the bug Something isn't working label Feb 7, 2023
@felix9ia
Copy link

felix9ia commented Feb 11, 2023

#457
Looks like we'll just have to wait for the 5.0 release
the way to temporarily solve this problem, can downgrading koltlin solve it.

in android/build.gradle, to change kotlin version:

  ext.kotlin_version = '1.6.20'

@thomassth
Copy link
Contributor

thomassth commented Feb 12, 2023

I think this deserves a .1 release

Will approve if someone can make it

(To "release" branch for prerelease)

@hichaudh
Copy link

any ideas on when the pub release of 4.3.1 might occur?

@IVLIVS-III
Copy link
Contributor

@hichaudh the prerelease version 4.3.1-4217521123 is already released and available on pub.dev.
The full release of 4.3.1 should occur about 1-2 weeks after the prerelease, i.e. within 4-11 days.

@IVLIVS-III
Copy link
Contributor

@thomassth it has been almost 3 weeks since the pre-release and no issues have been reported. Can we release version 4.3.1?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants