-
Notifications
You must be signed in to change notification settings - Fork 195
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
Migrate to Instant from Date #150
base: master
Are you sure you want to change the base?
Conversation
Nice! We would want to really make sure this works with pre-23 devices before shipping, since I have seen cases where the code will compile and show no issues, but then when you get it on an actual device, it crashes at runtime. |
@@ -15,6 +15,7 @@ android { | |||
aarMetadata { | |||
minCompileSdk = rootProject.ext.compileSdkVersion | |||
} | |||
multiDexEnabled true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This shouldn't be needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I see! I forgot this project was using minSdk 14. It should probably be bumped to 21 😅
This is a pretty large API change that affects all downstream users, so @kaushikgopal would need to really think about if this is worth the "breaking" change. I do like the benefits that |
thanks @Sorikoff thank you for the PR 🙏🏽 . some initial thoughts:
Curious what you folks think |
@kaushikgopal 👋 |
Hh |
Vbdbjjdbjjsv I |
I actually like tbr desugaring solution 🤔. Not to mention Kotlin provides a bunch of solutions too as part of their time library. I can revisit this again. |
This supports recent major overhaul of code by replacing legacy
Date
with modern date and time API (Instant
in this case). Older Android versions are supported with help of Java 8 desugaring.