Files
AntennaPod/app-wearos/build.gradle
Hans-Peter Lehmann c19b3d7223 Upgrade to gradle plugin 9.0 (#8302)
### Description

Upgrade to gradle plugin 9.0. This adds support for Java 25

### Checklist
<!-- 
To help us keep the issue tracker clean and work as efficient as
possible,
  please make sure that you have done all of the following.
You can tick the boxes below by placing an x inside the brackets like
this: [x]
-->
- [x] I have read the contribution guidelines:
https://github.com/AntennaPod/AntennaPod/blob/develop/CONTRIBUTING.md#submit-a-pull-request
- [x] I have performed a self-review of my code, going through my
changes line by line and carefully considering why this line change is
necessary
- [x] I have run the automated code checks using `./gradlew checkstyle
spotbugsPlayDebug spotbugsDebug :app:lintPlayDebug`
- [x] My code follows the style guidelines of the AntennaPod project:
https://antennapod.org/contribute/develop/app/code-style
- [x] I have mentioned the corresponding issue and the relevant keyword
(e.g., "Closes: #xy") in the description (see
https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue)
- [x] If it is a core feature, I have added automated tests
2026-08-01 10:02:41 +02:00

81 lines
2.4 KiB
Groovy

plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.kotlin.compose)
alias(libs.plugins.ktlint)
}
apply from: "../common.gradle"
apply from: "../playFlavor.gradle"
android {
namespace "de.danoeh.antennapod.wearos"
enableKotlin true
defaultConfig {
applicationId "de.danoeh.antennapod"
minSdk 25
targetSdk 36
versionCode 1
versionName "1.0"
}
signingConfigs {
releaseConfig {
enableV1Signing true
enableV2Signing true
storeFile file(project.getProperties().getOrDefault("releaseStoreFile", "keystore"))
storePassword project.getProperties().getOrDefault("releaseStorePassword", "password")
keyAlias project.getProperties().getOrDefault("releaseKeyAlias", "alias")
keyPassword project.getProperties().getOrDefault("releaseKeyPassword", "password")
}
}
buildTypes {
debug {
applicationIdSuffix ".debug"
}
release {
minifyEnabled true
shrinkResources true
signingConfig signingConfigs.releaseConfig
proguardFiles getDefaultProguardFile("proguard-android-optimize.txt"), "proguard.cfg"
}
}
buildFeatures {
compose true
}
lint {
disable "UnusedResources"
}
}
afterEvaluate {
tasks.named('lint').configure {
dependsOn ktlintCheck
}
}
dependencies {
implementation project(":model")
implementation project(":ui:common")
implementation project(":ui:notifications")
implementation project(":net:sync:wear-interface")
// NOTE: DO NOT INCLUDE a dependency on androidx.compose.material:material, the watch version is a replacement
implementation libs.androidx.wear
implementation libs.google.play.services.wearable
implementation libs.androidx.wear.compose.foundation
implementation libs.androidx.wear.compose.material3
implementation libs.androidx.compose.ui
implementation libs.androidx.compose.runtime
implementation libs.androidx.lifecycle.runtime.compose
implementation libs.androidx.lifecycle.viewmodel.ktx
implementation libs.androidx.core.ktx
implementation libs.kotlinx.coroutines.play.services
implementation libs.androidx.activity.compose
implementation libs.androidx.appcompat
testImplementation libs.junit
}