91 lines
No EOL
2.6 KiB
Kotlin
91 lines
No EOL
2.6 KiB
Kotlin
plugins {
|
|
id("com.android.application")
|
|
id("org.jetbrains.kotlin.android")
|
|
}
|
|
|
|
android {
|
|
namespace = "com.henryhiles.qscan"
|
|
compileSdk = 33
|
|
|
|
signingConfigs {
|
|
create("release") {
|
|
storeFile = file("${rootDir}/keystore.jks")
|
|
keyPassword = System.getenv("KEY_PASSWORD")
|
|
keyAlias = "key0"
|
|
storePassword = System.getenv("STORE_PASSWORD")
|
|
}
|
|
}
|
|
|
|
defaultConfig {
|
|
applicationId = "com.henryhiles.qscan"
|
|
minSdk = 29
|
|
targetSdk = 33
|
|
versionCode = 1
|
|
versionName = "1.0"
|
|
|
|
vectorDrawables {
|
|
useSupportLibrary = true
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
named("release") {
|
|
isMinifyEnabled = true
|
|
isShrinkResources = true
|
|
signingConfig = signingConfigs.getByName("release")
|
|
setProguardFiles(
|
|
listOf(
|
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
"proguard-rules.pro"
|
|
)
|
|
)
|
|
}
|
|
named("debug") {
|
|
applicationIdSuffix = ".debug"
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
}
|
|
buildFeatures {
|
|
compose = true
|
|
buildConfig = true
|
|
}
|
|
composeOptions {
|
|
kotlinCompilerExtensionVersion = "1.4.3"
|
|
}
|
|
packagingOptions {
|
|
resources {
|
|
excludes += "/META-INF/{AL2.0,LGPL2.1}"
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation("androidx.core:core-ktx:1.9.0")
|
|
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.6.1")
|
|
implementation("androidx.activity:activity-compose:1.7.0")
|
|
implementation("androidx.compose.material3:material3:1.1.0-beta01")
|
|
|
|
val accompanistVersion = "0.30.0"
|
|
implementation("com.google.accompanist:accompanist-permissions:$accompanistVersion")
|
|
|
|
val composeVersion = "1.4.0"
|
|
implementation("androidx.compose.ui:ui:$composeVersion")
|
|
implementation("androidx.compose.ui:ui-tooling-preview:$composeVersion")
|
|
implementation("androidx.compose.material:material-icons-extended:$composeVersion")
|
|
debugImplementation("androidx.compose.ui:ui-tooling:$composeVersion")
|
|
debugImplementation("androidx.compose.ui:ui-test-manifest:$composeVersion")
|
|
|
|
val cameraVersion = "1.2.2"
|
|
implementation("androidx.camera:camera-camera2:$cameraVersion")
|
|
implementation("androidx.camera:camera-lifecycle:$cameraVersion")
|
|
implementation("androidx.camera:camera-view:$cameraVersion")
|
|
|
|
implementation("com.google.zxing:core:3.3.3")
|
|
|
|
} |