Files
TichuCounter/app/build.gradle
Fabian Zobrist 0e041b79cf
All checks were successful
Build Android / build (push) Successful in 5m7s
Update dependencies and Gradle, Minimum SDK bumped to 23
2026-03-30 18:24:52 +02:00

124 lines
4.9 KiB
Groovy

plugins {
id 'com.android.application'
id 'com.google.dagger.hilt.android'
id 'com.google.devtools.ksp'
id 'org.jetbrains.kotlin.plugin.compose'
}
// Create a variable called keystorePropertiesFile, and initialize it to your
// keystore.properties file, in the rootProject folder.
def keystorePropertiesFile = rootProject.file("keystore.properties")
def versionPropertiesFile = rootProject.file("version.properties")
// Initialize a new Properties() object called keystoreProperties.
def keystoreProperties = new Properties()
def versionProperties = new Properties()
def versionMajor = 2
def versionMinor = 3
// Load your keystore.properties file into the keystoreProperties object.
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
versionProperties.load(new FileInputStream(versionPropertiesFile))
android {
compileSdk 36
defaultConfig {
applicationId "me.zobrist.tichucounter"
minSdkVersion 23
targetSdkVersion 36
versionCode versionProperties["versionCode"].toInteger()
versionName "${versionMajor}.${versionMinor}.${versionProperties["versionCode"].toInteger()}"
resourceConfigurations += ['de', 'en']
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
multiDexEnabled true
vectorDrawables {
useSupportLibrary true
}
javaCompileOptions {
annotationProcessorOptions {
arguments += ["room.schemaLocation": "$projectDir/schemas".toString()]
}
}
}
signingConfigs {
register("release") {
keyAlias = keystoreProperties["keyAlias"]
keyPassword = keystoreProperties["keyPassword"]
storeFile = file(keystoreProperties["storeFile"])
storePassword = keystoreProperties["storePassword"]
}
}
buildTypes {
release {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
signingConfig = signingConfigs.getByName("release")
}
}
buildFeatures {
compose = true
buildConfig true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
namespace 'me.zobrist.tichucounter'
packagingOptions {
resources {
excludes += '/META-INF/{AL2.0,LGPL2.1}'
}
}
}
dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation "org.jetbrains.kotlin:kotlin-stdlib:2.2.10"
implementation 'androidx.core:core-ktx:1.17.0'
implementation 'androidx.appcompat:appcompat:1.7.1'
implementation "androidx.compose.material3:material3:1.4.0"
implementation 'com.google.android.play:review:2.0.2'
implementation 'com.google.android.play:review-ktx:2.0.2'
implementation 'com.google.code.gson:gson:2.13.2'
implementation 'androidx.constraintlayout:constraintlayout:2.2.1'
implementation 'androidx.navigation:navigation-fragment-ktx:2.9.7'
implementation 'androidx.navigation:navigation-ui-ktx:2.9.7'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.10.0'
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.10.0'
implementation 'androidx.fragment:fragment-ktx:1.8.9'
implementation 'androidx.preference:preference-ktx:1.2.1'
implementation 'androidx.recyclerview:recyclerview:1.4.0'
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.10.0'
implementation 'androidx.compose.material:material-icons-extended:1.7.8'
implementation "com.google.accompanist:accompanist-systemuicontroller:0.36.0"
implementation 'androidx.activity:activity-compose:1.12.3'
implementation "androidx.compose.ui:ui:1.10.2"
implementation "androidx.compose.ui:ui-tooling-preview:1.10.2"
implementation "androidx.compose.runtime:runtime-livedata:1.10.2"
implementation "androidx.navigation:navigation-compose:2.9.7"
implementation "androidx.lifecycle:lifecycle-viewmodel-compose:2.10.0"
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.3.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.7.0'
implementation "com.google.dagger:hilt-android:2.59"
androidTestImplementation "androidx.compose.ui:ui-test-junit4:1.10.2"
debugImplementation "androidx.compose.ui:ui-tooling:1.10.2"
debugImplementation "androidx.compose.ui:ui-test-manifest:1.10.2"
ksp "com.google.dagger:hilt-compiler:2.59"
annotationProcessor "androidx.room:room-compiler:2.8.4"
implementation "androidx.room:room-runtime:2.8.4"
ksp "androidx.room:room-compiler:2.8.4"
implementation "androidx.room:room-ktx:2.8.4"
api "androidx.navigation:navigation-fragment-ktx:2.9.7"
}