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

Add multipart subscriptions test #4738

Merged
merged 3 commits into from
Mar 8, 2023

Conversation

martinbonnin
Copy link
Contributor

No description provided.

@martinbonnin martinbonnin requested a review from BoD as a code owner March 7, 2023 21:10
@netlify
Copy link

netlify bot commented Mar 7, 2023

Deploy Preview for apollo-android-docs canceled.

Name Link
🔨 Latest commit b7e8983
🔍 Latest deploy log https://app.netlify.com/sites/apollo-android-docs/deploys/64085be03209d30008536cc1

@martinbonnin martinbonnin force-pushed the subscriptions-over-multipart-test branch from 7bca2f8 to 2a179ea Compare March 7, 2023 21:11
Copy link
Contributor

@BoD BoD left a comment

Choose a reason for hiding this comment

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

👍

private companion object {
private const val EMPTY = 0
private const val PAYLOAD = 1
private const val OTHER = 2
Copy link
Contributor Author

Choose a reason for hiding this comment

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

TIL: you still need those fields to be private even if the companion itself is private. I'm guessing because there are JVM static fields on HttpNetworkTransport, not sure...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For the record, this is not a binary-compatibility-validator issue. Adding const makes the static field public:

class Test {
  private companion object {
    // generates a `public static final String toto = "Hello";`
    const val field = "Hello"
  }
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@martinbonnin martinbonnin merged commit 70cbe6d into main Mar 8, 2023
@martinbonnin martinbonnin deleted the subscriptions-over-multipart-test branch March 8, 2023 13:20
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

2 participants