File tree Expand file tree Collapse file tree 4 files changed +0
-6
lines changed
core/datastore/src/main/java/com/google/samples/apps/nowinandroid/core/datastore
feature/settings/src/main/java/com/google/samples/apps/nowinandroid/feature/settings
lint/src/main/java/com/google/samples/apps/nowinandroid/lint/designsystem Expand file tree Collapse file tree 4 files changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -32,15 +32,13 @@ class UserPreferencesSerializer @Inject constructor() : Serializer<UserPreferenc
3232 override suspend fun readFrom (input : InputStream ): UserPreferences =
3333 try {
3434 // readFrom is already called on the data store background thread
35- @Suppress(" BlockingMethodInNonBlockingContext" )
3635 UserPreferences .parseFrom(input)
3736 } catch (exception: InvalidProtocolBufferException ) {
3837 throw CorruptionException (" Cannot read proto." , exception)
3938 }
4039
4140 override suspend fun writeTo (t : UserPreferences , output : OutputStream ) {
4241 // writeTo is already called on the data store background thread
43- @Suppress(" BlockingMethodInNonBlockingContext" )
4442 t.writeTo(output)
4543 }
4644}
Original file line number Diff line number Diff line change @@ -40,7 +40,6 @@ import androidx.compose.material3.Text
4040import androidx.compose.runtime.Composable
4141import androidx.compose.runtime.getValue
4242import androidx.compose.ui.Alignment
43- import androidx.compose.ui.ExperimentalComposeUiApi
4443import androidx.compose.ui.Modifier
4544import androidx.compose.ui.platform.LocalConfiguration
4645import androidx.compose.ui.platform.LocalContext
@@ -83,7 +82,6 @@ fun SettingsDialog(
8382 )
8483}
8584
86- @OptIn(ExperimentalComposeUiApi ::class )
8785@Composable
8886fun SettingsDialog (
8987 settingsUiState : SettingsUiState ,
Original file line number Diff line number Diff line change @@ -32,7 +32,6 @@ import org.jetbrains.uast.UQualifiedReferenceExpression
3232 * A detector that checks for incorrect usages of Compose Material APIs over equivalents in
3333 * the Now in Android design system module.
3434 */
35- @Suppress(" UnstableApiUsage" )
3635class DesignSystemDetector : Detector (), Detector.UastScanner {
3736
3837 override fun getApplicableUastTypes (): List <Class <out UElement >> {
Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ import com.android.tools.lint.detector.api.CURRENT_API
2424 * An issue registry that checks for incorrect usages of Compose Material APIs over equivalents in
2525 * the Now in Android design system module.
2626 */
27- @Suppress(" UnstableApiUsage" )
2827class DesignSystemIssueRegistry : IssueRegistry () {
2928 override val issues = listOf (DesignSystemDetector .ISSUE )
3029
You can’t perform that action at this time.
0 commit comments