keepass-fidelity/app/build.gradle

84 lines
2.2 KiB
Groovy
Raw Normal View History

2024-03-17 14:50:15 +01:00
plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
id 'org.jetbrains.kotlin.plugin.serialization' version '1.9.23'
}
2024-03-24 10:23:30 +01:00
def keystorePropertiesFile = rootProject.file("app/keystore.properties")
def keystoreProperties = new Properties()
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
2024-03-17 14:50:15 +01:00
android {
namespace 'net.helcel.fidelity'
compileSdk 34
defaultConfig {
applicationId 'net.helcel.fidelity'
2024-03-24 10:23:30 +01:00
resValue "string", "app_name", "Keepass Fidelity"
2024-03-17 14:50:15 +01:00
minSdk 28
targetSdk 34
}
2024-03-24 10:23:30 +01:00
signingConfigs {
create("release") {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile file(keystoreProperties['storeFile'])
storePassword keystoreProperties['storePassword']
}
}
2024-03-17 14:50:15 +01:00
buildTypes {
2024-03-23 13:50:35 +01:00
debug {
debuggable true
2024-04-06 19:24:36 +02:00
signingConfig = signingConfigs.getByName("release")
2024-03-23 13:50:35 +01:00
}
2024-03-17 14:50:15 +01:00
release {
2024-03-23 13:50:35 +01:00
minifyEnabled true
shrinkResources false
2024-03-17 14:50:15 +01:00
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
2024-03-24 10:23:30 +01:00
signingConfig = signingConfigs.getByName("release")
2024-03-17 14:50:15 +01:00
}
}
2024-03-23 13:50:35 +01:00
2024-03-17 14:50:15 +01:00
compileOptions {
2024-03-23 13:50:35 +01:00
coreLibraryDesugaringEnabled true
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
encoding 'utf-8'
2024-03-17 14:50:15 +01:00
}
2024-03-23 13:50:35 +01:00
2024-03-17 14:50:15 +01:00
kotlinOptions {
2024-03-23 13:50:35 +01:00
jvmTarget = JavaVersion.VERSION_17
2024-03-17 14:50:15 +01:00
}
2024-03-23 13:50:35 +01:00
2024-03-17 14:50:15 +01:00
buildFeatures {
viewBinding true
}
2024-03-24 15:41:26 +01:00
dependenciesInfo {
// Disables dependency metadata when building APKs.
includeInApk = false
// Disables dependency metadata when building Android App Bundles.
includeInBundle = false
}
2024-03-17 14:50:15 +01:00
}
dependencies {
2024-03-23 13:50:35 +01:00
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs_nio:2.0.4'
2024-03-24 13:29:13 +01:00
implementation 'androidx.camera:camera-lifecycle:1.3.3'
2024-03-17 14:50:15 +01:00
implementation 'androidx.camera:camera-view:1.3.2'
runtimeOnly 'androidx.camera:camera-camera2:1.3.3'
2024-03-24 13:00:22 +01:00
2024-03-17 14:50:15 +01:00
implementation 'com.google.code.gson:gson:2.10.1'
implementation 'com.google.android.material:material:1.11.0'
implementation 'com.google.zxing:core:3.5.3'
}