App for monitoring the best-before date of products
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Best-Before/app/build.gradle

83 lines
2.7 KiB

plugins {
id "com.android.application"
id "org.jetbrains.kotlin.android"
id "org.jetbrains.kotlin.plugin.serialization"
id "kotlin-kapt"
id "dagger.hilt.android.plugin"
}
def version_code = 4
def version_name = "1.02.1"
android {
compileSdk 32
defaultConfig {
applicationId "de.beocode.bestbefore"
minSdk 21
targetSdk 31
versionCode version_code
versionName version_name
resValue "string", "app_version", version_name
resValue "string", "app_code", version_code + ""
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
useSupportLibrary true
}
}
buildTypes {
release {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro"
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs += [
"-opt-in=kotlin.RequiresOptIn"
]
}
buildFeatures {
compose true
}
composeOptions {
kotlinCompilerExtensionVersion "1.3.0"
}
packagingOptions {
resources {
excludes += "/META-INF/{AL2.0,LGPL2.1}"
}
}
namespace "de.beocode.bestbefore"
}
dependencies {
implementation "androidx.core:core-ktx:1.8.0"
implementation "androidx.compose.ui:ui:$compose_version"
implementation "androidx.compose.material:material:$compose_version"
implementation "androidx.compose.material:material-icons-extended:$compose_version"
implementation "androidx.compose.ui:ui-tooling-preview:$compose_version"
implementation "com.google.android.material:material:1.6.1"
implementation "androidx.activity:activity-compose:1.5.1"
implementation "androidx.navigation:navigation-compose:2.5.1"
implementation "androidx.datastore:datastore:1.0.0"
implementation "org.jetbrains.kotlinx:kotlinx-collections-immutable:0.3.5"
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.3"
implementation "com.google.dagger:hilt-android:2.43.2"
kapt "com.google.dagger:hilt-compiler:2.43.2"
testImplementation "junit:junit:4.13.2"
androidTestImplementation "androidx.test.ext:junit:1.1.3"
androidTestImplementation "androidx.test.espresso:espresso-core:3.4.0"
androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_version"
debugImplementation "androidx.compose.ui:ui-tooling:$compose_version"
debugImplementation "androidx.compose.ui:ui-test-manifest:$compose_version"
}