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

Update to kotlin 1.6 #4546

Merged
merged 6 commits into from
Feb 10, 2022
Merged

Update to kotlin 1.6 #4546

merged 6 commits into from
Feb 10, 2022

Conversation

skyler-stripe
Copy link
Contributor

@skyler-stripe skyler-stripe commented Feb 2, 2022

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

  • Added tests
  • Modified tests
  • Manually verified

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.

@ccen-stripe
Copy link
Collaborator

Thanks for the heads up! Would you mind verifying all the following example apps are built and run correctly?
example, paymentsheet-example, stripecardscan-example and identity-example

@@ -150,7 +150,7 @@ class PaymentCardTest {
fun isValidExpiry() {
val expDay = "01"
val expMonth = "02"
val expYear = "2022"
val expYear = "2025"
Copy link
Collaborator

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?

Copy link
Contributor Author

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.

@skyler-stripe skyler-stripe changed the title [Don't merge] Update to kotlin 1.6 [Don't merge/WIP] Update to kotlin 1.6 Feb 2, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Feb 2, 2022

Diffuse output:

@skyler-stripe
Copy link
Contributor Author

Thanks for the heads up! Would you mind verifying all the following example apps are built and run correctly? example, paymentsheet-example, stripecardscan-example and identity-example

Done and added a note about these in the description.

@skyler-stripe skyler-stripe self-assigned this Feb 2, 2022
@skyler-stripe skyler-stripe changed the title [Don't merge/WIP] Update to kotlin 1.6 [Don't merge] Update to kotlin 1.6 Feb 2, 2022
@skyler-stripe skyler-stripe changed the title [Don't merge] Update to kotlin 1.6 Update to kotlin 1.6 Feb 10, 2022
@skyler-stripe skyler-stripe merged commit e132f0e into master Feb 10, 2022
@skyler-stripe skyler-stripe deleted the kt1.6 branch February 10, 2022 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants