fix(build): compile against SDK 35

This commit is contained in:
Harsh Shandilya 2024-08-08 03:38:03 +05:30
parent 13f6467a16
commit 45dab6d513
3 changed files with 3 additions and 5 deletions

View file

@ -1,5 +1,5 @@
/* /*
* Copyright © 2022-2023 Harsh Shandilya. * Copyright © 2022-2024 Harsh Shandilya.
* Use of this source code is governed by an MIT-style * Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at * license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT. * https://opensource.org/licenses/MIT.
@ -26,7 +26,7 @@ import org.gradle.kotlin.dsl.findByType
class AndroidCommonPlugin : Plugin<Project> { class AndroidCommonPlugin : Plugin<Project> {
private companion object { private companion object {
const val COMPILE_SDK = 34 const val COMPILE_SDK = 35
const val MIN_SDK = 26 const val MIN_SDK = 26
const val TARGET_SDK = 34 const val TARGET_SDK = 34
const val SLIM_TESTS_PROPERTY = "slimTests" const val SLIM_TESTS_PROPERTY = "slimTests"

View file

@ -18,8 +18,6 @@ import androidx.compose.runtime.Composable
import androidx.compose.runtime.CompositionLocalProvider import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.runtime.ProvidedValue import androidx.compose.runtime.ProvidedValue
import androidx.compose.runtime.SideEffect import androidx.compose.runtime.SideEffect
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.toArgb
import androidx.compose.ui.platform.LocalContext import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.platform.LocalView import androidx.compose.ui.platform.LocalView
import androidx.core.view.WindowCompat import androidx.core.view.WindowCompat
@ -106,7 +104,6 @@ fun LobstersTheme(
if (!view.isInEditMode) { if (!view.isInEditMode) {
SideEffect { SideEffect {
val window = (view.context as Activity).window val window = (view.context as Activity).window
window.statusBarColor = Color.Transparent.toArgb()
WindowCompat.getInsetsController(window, view).isAppearanceLightStatusBars = !darkTheme WindowCompat.getInsetsController(window, view).isAppearanceLightStatusBars = !darkTheme
} }
} }

View file

@ -50,6 +50,7 @@ android.disableEarlyManifestParsing=true
# Disable warnings about unsupported features # Disable warnings about unsupported features
android.suppressUnsupportedOptionWarnings=android.dependencyResolutionAtConfigurationTime.disallow,android.disableEarlyManifestParsing,android.suppressUnsupportedOptionWarnings android.suppressUnsupportedOptionWarnings=android.dependencyResolutionAtConfigurationTime.disallow,android.disableEarlyManifestParsing,android.suppressUnsupportedOptionWarnings
android.suppressUnsupportedCompileSdk=35
# Make Spotless default to keeping license headers years in sync # Make Spotless default to keeping license headers years in sync
spotlessSetLicenseHeaderYearsFromGitHistory=true spotlessSetLicenseHeaderYearsFromGitHistory=true