(#) androidx.compose.runtime:runtime-android Name : Compose Runtime Description : Tree composition support for code generated by the Compose compiler : plugin and corresponding public API License : [The Apache Software License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt) Vendor : Jetpack Compose Identifier : androidx.compose.runtime Feedback : https://issuetracker.google.com/issues/new?component=612128 Min : Lint 8.0 and 8.1 Compiled : Lint 8.0 and 8.1 Artifact : androidx.compose.runtime:runtime-android:1.8.0-alpha07 (##) Included Issues |Issue Id |Issue Description | |--------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------| |[AutoboxingStateValueProperty](AutoboxingStateValueProperty.md.html) |State access causes value to be autoboxed | |[AutoboxingStateCreation](AutoboxingStateCreation.md.html) |`State` will autobox values assigned to this state. Use a specialized state type instead.| |[CoroutineCreationDuringComposition](CoroutineCreationDuringComposition.md.html)|Calls to `async` or `launch` should happen inside a LaunchedEffect and not composition | |[FlowOperatorInvokedInComposition](FlowOperatorInvokedInComposition.md.html) |Flow operator functions should not be invoked within composition | |[ComposableLambdaParameterNaming](ComposableLambdaParameterNaming.md.html) |Primary composable lambda parameter not named `content` | |[ComposableLambdaParameterPosition](ComposableLambdaParameterPosition.md.html) |Non-trailing primary composable lambda parameter | |[ComposableNaming](ComposableNaming.md.html) |Incorrect naming for @Composable functions | |[StateFlowValueCalledInComposition](StateFlowValueCalledInComposition.md.html) |StateFlow.value should not be called within composition | |[CompositionLocalNaming](CompositionLocalNaming.md.html) |CompositionLocal properties should be prefixed with `Local` | |[MutableCollectionMutableState](MutableCollectionMutableState.md.html) |Creating a MutableState object with a mutable collection type | |[ProduceStateDoesNotAssignValue](ProduceStateDoesNotAssignValue.md.html) |produceState calls should assign `value` inside the producer lambda | |[RememberReturnType](RememberReturnType.md.html) |`remember` calls must not return `Unit` | |[OpaqueUnitKey](OpaqueUnitKey.md.html) |Passing an expression which always returns `Unit` as a key argument | |[UnrememberedMutableState](UnrememberedMutableState.md.html) |Creating a state object during composition without using `remember` | (##) Including !!! This is not a built-in check. To include it, add the below dependency to your project. ``` // build.gradle.kts implementation("androidx.compose.runtime:runtime-android:1.8.0-alpha07") // build.gradle implementation 'androidx.compose.runtime:runtime-android:1.8.0-alpha07' // build.gradle.kts with version catalogs: implementation(libs.runtime.android) # libs.versions.toml [versions] runtime-android = "1.8.0-alpha07" [libraries] # For clarity and text wrapping purposes the following declaration is # shown split up across lines, but in TOML it needs to be on a single # line (see https://github.com/toml-lang/toml/issues/516) so adjust # when pasting into libs.versions.toml: runtime-android = { module = "androidx.compose.runtime:runtime-android", version.ref = "runtime-android" } ``` 1.8.0-alpha07 is the version this documentation was generated from; there may be newer versions available. NOTE: These lint checks are **also** made available separate from the main library. You can also use `androidx.compose.runtime:runtime-lint:1.8.0-alpha07`. (##) Changes * 1.5.0: First version includes AutoboxingStateCreation, AutoboxingStateValueProperty, ComposableLambdaParameterNaming, ComposableLambdaParameterPosition, ComposableNaming, CompositionLocalNaming, CoroutineCreationDuringComposition, FlowOperatorInvokedInComposition, MutableCollectionMutableState, OpaqueUnitKey, ProduceStateDoesNotAssignValue, RememberReturnType, StateFlowValueCalledInComposition, UnrememberedMutableState. (##) Version Compatibility There are multiple older versions available of this library: | Version | Date | Issues | Compatible | Compiled | Requires | |-------------------:|----------|-------:|------------|--------------:|---------:| | 1.8.0-alpha07|2024/12/11| 14| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.8.0-alpha06|2024/11/13| 14| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.8.0-alpha05|2024/10/30| 14| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.8.0-alpha04|2024/10/16| 14| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.8.0-alpha03|2024/10/02| 14| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.8.0-alpha02|2024/09/18| 14| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.8.0-alpha01|2024/09/04| 14| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.7.6|2024/12/11| 14| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.7.5|2024/10/30| 14| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.7.4|2024/10/16| 14| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.7.3|2024/10/02| 14| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.7.2|2024/09/18| 14| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.7.1|2024/09/10| 14| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.7.0|2024/09/04| 14| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.6.8|2024/06/12| 14| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.6.7|2024/05/01| 14| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.6.6|2024/04/17| 14| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.6.5|2024/04/03| 14| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.6.4|2024/03/20| 14| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.6.3|2024/03/06| 14| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.6.2|2024/02/21| 14| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.6.1|2024/02/07| 14| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.6.0|2024/01/24| 14| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.5.4|2023/10/18| 14| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.5.3|2023/10/04| 14| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.5.2|2023/09/27| 14| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.5.1|2023/09/06| 14| Yes| 8.0 and 8.1|8.0 and 8.1| | 1.5.0|2023/08/09| 14| Yes| 8.0 and 8.1|8.0 and 8.1|