mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-15 08:47:03 +05:30
fix(build): upgrade to target SDK 35
This commit is contained in:
parent
d3d4519daa
commit
7506dd5ca9
1 changed files with 4 additions and 11 deletions
|
@ -25,21 +25,14 @@ import org.gradle.kotlin.dsl.findByType
|
||||||
|
|
||||||
class AndroidCommonPlugin : Plugin<Project> {
|
class AndroidCommonPlugin : Plugin<Project> {
|
||||||
|
|
||||||
private companion object {
|
|
||||||
const val COMPILE_SDK = 35
|
|
||||||
const val MIN_SDK = 26
|
|
||||||
const val TARGET_SDK = 34
|
|
||||||
const val SLIM_TESTS_PROPERTY = "slimTests"
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun apply(project: Project) {
|
override fun apply(project: Project) {
|
||||||
project.configureSlimTests()
|
project.configureSlimTests()
|
||||||
project.pluginManager.apply(AndroidCacheFixPlugin::class)
|
project.pluginManager.apply(AndroidCacheFixPlugin::class)
|
||||||
project.extensions.configure<BaseExtension> {
|
project.extensions.configure<BaseExtension> {
|
||||||
compileSdkVersion(COMPILE_SDK)
|
compileSdkVersion(35)
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
minSdk = MIN_SDK
|
minSdk = 26
|
||||||
targetSdk = TARGET_SDK
|
targetSdk = 35
|
||||||
}
|
}
|
||||||
|
|
||||||
packagingOptions {
|
packagingOptions {
|
||||||
|
@ -64,7 +57,7 @@ class AndroidCommonPlugin : Plugin<Project> {
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun Project.configureSlimTests() {
|
private fun Project.configureSlimTests() {
|
||||||
if (!providers.gradleProperty(SLIM_TESTS_PROPERTY).isPresent) {
|
if (!providers.gradleProperty("slimTests").isPresent) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
// Disable unit test tasks on the release build type for Android Library projects
|
// Disable unit test tasks on the release build type for Android Library projects
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue