Skip to content

Commit ea0af87

Browse files
cpovirkGoogle Java Core Libraries
authored andcommitted
Bump docs and compatibility checking for API Level 24.
This initial CL doesn't take advantage of that by changing `guava-android` to expose more APIs that use types `Function` or `Stream`. That said, we have already been exposing _some_ such APIs for a while now. We are likely to expose more in the future. This `minSdkVersion` bump follows [other Google foundational libraries](https://issuetracker.google.com/issues/474169350), and we expect the bump itself to have no practical impact on users. RELNOTES=Our Android `minSdkVersion` is now 24 (Nougat). This follows the minimum of Google's foundational Android libraries, and we expect it to have no practical impact on users. PiperOrigin-RevId: 953524131
1 parent f05ab57 commit ea0af87

5 files changed

Lines changed: 9 additions & 10 deletions

File tree

‎README.md‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,7 @@ class by appending the class name to guava.dev. For example,
127127
6. For the mainline flavor, we test the libraries using a range of OpenJDK
128128
versions on Linux and Windows. Some features, especially in
129129
`com.google.common.io`, may not work correctly in non-Linux environments.
130-
For the Android flavor, our unit tests also run on API level 23
131-
(Marshmallow).
130+
For the Android flavor, our unit tests also run on API level 24 (Nougat).
132131

133132
[guava-snapshot-api-docs]: https://guava.dev/releases/snapshot-jre/api/docs/
134133
[guava-snapshot-api-diffs]: https://guava.dev/releases/snapshot-jre/api/diffs/

‎android/guava/src/com/google/common/util/concurrent/Runnables.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
@GwtCompatible
2525
public final class Runnables {
2626
/*
27-
* If we inline this, it's not longer a singleton under Android (at least under the Marshmallow
28-
* version that we're testing under) or J2CL.
27+
* If we inline this, it's no longer a singleton under Android (at least as recently as Android 17)
28+
* or J2CL.
2929
*
3030
* That's not necessarily a real-world problem, but it does break our tests.
3131
*/

‎android/pom.xml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
<error_prone_core.version>2.50.0</error_prone_core.version>
6464
<exec-maven-plugin.version>3.5.0</exec-maven-plugin.version>
6565
<failureaccess.version>1.0.3</failureaccess.version>
66-
<gummy-bears-api-23-version>0.12.0</gummy-bears-api-23-version>
66+
<gummy-bears-api-24-version>0.15.0</gummy-bears-api-24-version>
6767
<gwt-maven-plugin.version>1.1.0</gwt-maven-plugin.version>
6868
<gwt.version>2.13.0</gwt.version>
6969
<j2objc.version>3.1</j2objc.version>
@@ -435,8 +435,8 @@
435435
<checkTestClasses>true</checkTestClasses>
436436
<signature>
437437
<groupId>com.toasttab.android</groupId>
438-
<artifactId>gummy-bears-api-23</artifactId>
439-
<version>${gummy-bears-api-23-version}</version>
438+
<artifactId>gummy-bears-api-24</artifactId>
439+
<version>${gummy-bears-api-24-version}</version>
440440
</signature>
441441
<ignores>
442442
<!-- Unsafe isn't part of the documented Android API, but it is available.

‎guava/src/com/google/common/util/concurrent/Runnables.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
@GwtCompatible
2525
public final class Runnables {
2626
/*
27-
* If we inline this, it's not longer a singleton under Android (at least under the Marshmallow
28-
* version that we're testing under) or J2CL.
27+
* If we inline this, it's no longer a singleton under Android (at least as recently as Android 17)
28+
* or J2CL.
2929
*
3030
* That's not necessarily a real-world problem, but it does break our tests.
3131
*/

‎pom.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
<error_prone_core.version>2.50.0</error_prone_core.version>
6565
<exec-maven-plugin.version>3.5.0</exec-maven-plugin.version>
6666
<failureaccess.version>1.0.3</failureaccess.version>
67-
<gummy-bears-api-23-version>0.12.0</gummy-bears-api-23-version>
67+
<gummy-bears-api-24-version>0.15.0</gummy-bears-api-24-version>
6868
<gwt-maven-plugin.version>1.1.0</gwt-maven-plugin.version>
6969
<gwt.version>2.13.0</gwt.version>
7070
<j2objc.version>3.1</j2objc.version>

0 commit comments

Comments
 (0)