Files
AndroidJetpack/ComposedBarcodes/app/build.gradle
T
coco 723ce1af5c a
2026-07-03 15:12:48 +08:00

66 lines
1.8 KiB
Groovy

plugins {
id 'com.android.application'
id 'kotlin-android'
}
android {
compileSdkVersion 33
//buildToolsVersion '32.0.0'
defaultConfig {
applicationId "com.simonsickle.composedbarcodes"
minSdkVersion 26
targetSdkVersion 33
versionCode 2
versionName "1.0.3"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.toString()
// Allow the use of kotlin 1.5.31 and compose
// freeCompilerArgs += [
// "-P",
// "plugin:androidx.compose.compiler.plugins.kotlin:suppressKotlinVersionCompatibilityCheck=true"
// ]
}
buildFeatures {
compose true
}
composeOptions {
kotlinCompilerExtensionVersion compose_compiler_version
}
}
dependencies {
implementation(project(":composed-barcodes"))
implementation("androidx.appcompat:appcompat:1.5.0")
implementation("com.google.android.material:material:1.6.1")
implementation("androidx.compose.runtime:runtime:$compose_version")
implementation("androidx.compose.ui:ui:$compose_version")
implementation("androidx.compose.foundation:foundation-layout:$compose_version")
implementation("androidx.compose.material:material:$compose_version")
implementation("androidx.compose.ui:ui-tooling:$compose_version")
// Nav components
implementation("androidx.navigation:navigation-compose:2.5.1")
}