/* * Copyright 2024 David Takač * * This file is part of Bura. * * Bura is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. * * Bura is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along with Bura. If not, see . */ plugins { id("com.android.application") id("org.jetbrains.kotlin.android") } android { namespace = "com.davidtakac.bura" compileSdk = 34 defaultConfig { applicationId = "com.davidtakac.bura" minSdk = 28 targetSdk = 34 versionCode = 14 versionName = "1.6.0" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" resourceConfigurations.addAll( listOf( "en", "es", "fr", "hr", "vi", "zh-rCN", "de", "ru", "pl", "sv", "nl", ) ) } buildTypes { debug { applicationIdSuffix = ".debug" } release { isShrinkResources = true isMinifyEnabled = true proguardFiles( getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro" ) } } buildFeatures { compose = true } composeOptions { kotlinCompilerExtensionVersion = "1.5.11" } kotlin { jvmToolchain(17) } kotlinOptions { // Source: https://developer.android.com/jetpack/compose/performance/stability/fix#configuration-file // Replaced project.absolutePath with rootDir. freeCompilerArgs += listOf( "-P", "plugin:androidx.compose.compiler.plugins.kotlin:stabilityConfigurationPath=$rootDir/compose-stability-conf.txt" ) } } dependencies { // Core Android implementation("androidx.core:core-ktx:1.13.1") implementation("androidx.appcompat:appcompat:1.7.0") // Compose implementation(platform("androidx.compose:compose-bom:2024.06.00")) implementation("androidx.compose.material3:material3") implementation("androidx.navigation:navigation-compose:2.7.7") // Previews implementation("androidx.compose.ui:ui-tooling") debugImplementation("androidx.compose.ui:ui-tooling-preview") // Testing testImplementation("junit:junit:4.13.2") testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.7.3") }