diff --git a/constants.gradle b/constants.gradle index 7805a8dfb9..0a31d96cce 100644 --- a/constants.gradle +++ b/constants.gradle @@ -13,7 +13,7 @@ // limitations under the License. project.ext { releaseVersion = '1.0.0-alpha01' - releaseVersionCode = 1000000 + releaseVersionCode = 1000000001 minSdkVersion = 16 appTargetSdkVersion = 29 // Upgrading this requires [Internal ref: b/193254928] to be fixed, or some diff --git a/libraries/common/src/main/java/androidx/media3/common/MediaLibraryInfo.java b/libraries/common/src/main/java/androidx/media3/common/MediaLibraryInfo.java index 0fe428c1d2..a8170b3df7 100644 --- a/libraries/common/src/main/java/androidx/media3/common/MediaLibraryInfo.java +++ b/libraries/common/src/main/java/androidx/media3/common/MediaLibraryInfo.java @@ -27,7 +27,7 @@ public final class MediaLibraryInfo { /** A tag to use when logging library information. */ public static final String TAG = "AndroidXMedia3"; - /** The version of the library expressed as a string, for example "1.2.3". */ + /** The version of the library expressed as a string, for example "1.2.3" or "1.2.3-beta01". */ // Intentionally hardcoded. Do not derive from other constants (e.g. VERSION_INT) or vice versa. public static final String VERSION = "1.0.0-alpha01"; @@ -36,14 +36,18 @@ public final class MediaLibraryInfo { public static final String VERSION_SLASHY = "AndroidXMedia3/1.0.0-alpha01"; /** - * The version of the library expressed as an integer, for example 1002003. + * The version of the library expressed as an integer, for example 1002003300. * - *

Three digits are used for each component of {@link #VERSION}. For example "1.2.3" has the - * corresponding integer version 1002003 (001-002-003), and "123.45.6" has the corresponding - * integer version 123045006 (123-045-006). + *

Three digits are used for each of the first three components of {@link #VERSION}, then a + * single digit represents the cycle of this version: alpha (0), beta (1), rc (2) or stable (3). + * Finally two digits are used for the cycle number (always 00 for stable releases). + * + *

For example "1.2.3-alpha05" has the corresponding integer version 1002003005 + * (001-002-003-0-05), and "123.45.6" has the corresponding integer version 123045006300 + * (123-045-006-3-00). */ // Intentionally hardcoded. Do not derive from other constants (e.g. VERSION) or vice versa. - public static final int VERSION_INT = 1000000; + public static final int VERSION_INT = 1000000001; /** Whether the library was compiled with {@link Assertions} checks enabled. */ public static final boolean ASSERTIONS_ENABLED = true;