Skip to content

Conversation

@thebino
Copy link
Member

@thebino thebino commented Nov 16, 2022

πŸ“‘ What does this PR do?

Load test resources per platform. See this blogpost for implementation details: https://developer.squareup.com/blog/kotlin-multiplatform-shared-test-resources/

βœ… Checklist

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

πŸ§ͺ How can this PR been tested?

🧾 Tasks Remaining: (List of tasks remaining to be implemented)

πŸ–ΌοΈ Screenshots (if applicable):

@thebino thebino marked this pull request as ready for review November 17, 2022 09:27
@thebino thebino requested a review from blvckcoded as a code owner December 6, 2022 05:47
Copy link
Contributor

@blvckcoded blvckcoded left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good πŸ‘ seems CI is failing for iOS target, not sure if it's related to changes in this PR or random failure. Often rerunning has fixed previous failures for me.

actual fun readBinaryResource(resourcePath: String): ByteArray {
val path = resourcePath.substringBeforeLast(".")
val fileType = resourcePath.substringAfterLast(".")
println("resourcePath=$resourcePath, path=$path, fileType=$fileType")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although it's just test, probably can remove debug print statements in this file

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left it for debugging since it is not due to a flaky CI. It is currently not working for iOS / native.
I read there is another gradle task needed to copy the assets into the build directory.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mean the copy task from the article or a different one?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I think I haven't added it already.

@digitalbuddha
Copy link
Contributor

what is the status of this pr?

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.

5 participants