-
Notifications
You must be signed in to change notification settings - Fork 659
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
Update to kotlin 1.6 #4546
Update to kotlin 1.6 #4546
Conversation
Thanks for the heads up! Would you mind verifying all the following example apps are built and run correctly? |
@@ -150,7 +150,7 @@ class PaymentCardTest { | |||
fun isValidExpiry() { | |||
val expDay = "01" | |||
val expMonth = "02" | |||
val expYear = "2022" | |||
val expYear = "2025" |
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.
is it that time already?
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.
I gave you a few extra years this time.
Diffuse output: |
Done and added a note about these in the description. |
Summary
This updates our repo to use kotlin 1.6.10. Most of the required changes were already done in an earlier PR I did here
The biggest thing this PR does is move some
@ExperimentalCoroutinesApi
annotations. We're either required to tag all of the super class methods, interface declarations, abstract class versions of each method with the annotation or we can just add it to the top of the implementing class like I did. Some of the annotations that were failing the build are no longer required, so I removed them.Unfortunately we can't push this yet because it relies on a release candidate for compose. I'm making this PR so we can look at all of the changes I made and have a branch to do sanity tests if desired. I'll come back and change the dependency to a regular release once the compose lib is updated.
edit: compose has now been updated to support 1.6
Motivation
So we can use kotlin 1.6
Testing
ran
./gradlew :paymentsheet:testDebugUnitTest :payments-core:testDebugUnitTest :stripecardscan:testDebugUnitTest :stripe-ui-core:testDebugUnitTest :stripe-core:testDebugUnitTest :link:testDebugUnitTest :identity:testDebugUnitTest :camera-core:testDebugUnitTest
to run tests locally.Tested that example, paymentsheet-example, stripecardscan-example and identity-example build and worked as I would expect them to. I tested basic flows for each of them for a quick sanity check.
Changelog
Added this to the change log.