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

Make our Collector APIs available in guava-android. #7194

Merged
1 commit merged into from
Apr 30, 2024
Merged

Conversation

copybara-service[bot]
Copy link
Contributor

Make our Collector APIs available in guava-android.

(for example, ImmutableList.toImmutableList())

For now, we're making them @Beta just in case users encounter enough problems that we find it less disruptive to revert this change than to keep it. However, we plan to remove @Beta soon, at which point we'll be committed to this APIs. If you use Guava under Android, please test with Guava 33.0.0 or higher, ideally with 34.0.0 or higher (which will contain this commit), and report any problems.

Our expectation is that this commit should not cause problems, even for users who don't use enable library desugaring. But we will see what happens in wild.

Of course, if you want to actually use these APIs, then you'll need to enable library desugaring or target a new enough version of Android, just as with any other Stream-based APIs.

(progress toward #6567)

RELNOTES=collect: Made our Collector APIs (e.g., ImmutableList.toImmutableList()) available in guava-android.

(for example, `ImmutableList.toImmutableList()`)

For now, we're making them `@Beta` just in case users encounter enough problems that we find it less disruptive to revert this change than to keep it. However, we plan to remove `@Beta` soon, at which point we'll be committed to this APIs. If you use Guava under Android, please [test with Guava 33.0.0 or higher](https://groups.google.com/g/guava-announce/c/9-dw_C6G_NM), ideally with 34.0.0 or higher (which will contain this commit), and [report any problems](https://github.com/google/guava/issues/new?assignees=&labels=type%3Ddefect&projects=&template=bug_report.yaml).

Our expectation is that this commit should not cause problems, even for users who don't use enable [library desugaring](https://developer.android.com/studio/write/java11-default-support-table). But we will see what happens in wild.

Of course, if you want to actually _use_ these APIs, then you'll need to [enable library desugaring](https://developer.android.com/studio/write/java8-support#library-desugaring) or target a [new enough version of Android](https://developer.android.com/reference/java/util/stream/Stream), just as with any other `Stream`-based APIs.

(progress toward #6567)

RELNOTES=`collect`: Made our `Collector` APIs (e.g., `ImmutableList.toImmutableList()`) available in `guava-android`.
PiperOrigin-RevId: 629491350
@copybara-service copybara-service bot closed this pull request by merging all changes into master in 96fca0b Apr 30, 2024
@copybara-service copybara-service bot closed this Apr 30, 2024
@copybara-service copybara-service bot deleted the test_629191336 branch April 30, 2024 19:22
@cpovirk
Copy link
Member

cpovirk commented May 1, 2024

ideally with 34.0.0 or higher

Sorry, that will be 33.2.0, not 34.0.0.

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

1 participant