2024-03-17 14:50:15 +01:00
|
|
|
plugins {
|
|
|
|
id 'com.android.application'
|
|
|
|
id 'org.jetbrains.kotlin.android'
|
2024-08-10 00:07:09 +00:00
|
|
|
id 'org.jetbrains.kotlin.plugin.serialization' version '2.0.10'
|
2024-03-17 14:50:15 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
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
|
|
|
|
2024-06-15 00:05:06 +00:00
|
|
|
implementation 'androidx.camera:camera-lifecycle:1.3.4'
|
2024-06-16 00:03:56 +00:00
|
|
|
implementation 'androidx.camera:camera-view:1.3.4'
|
2024-06-13 00:02:43 +00:00
|
|
|
runtimeOnly 'androidx.camera:camera-camera2:1.3.4'
|
2024-03-24 13:00:22 +01:00
|
|
|
|
2024-05-20 00:02:26 +00:00
|
|
|
implementation 'com.google.code.gson:gson:2.11.0'
|
2024-05-03 00:02:26 +00:00
|
|
|
implementation 'com.google.android.material:material:1.12.0'
|
2024-03-17 14:50:15 +01:00
|
|
|
implementation 'com.google.zxing:core:3.5.3'
|
|
|
|
}
|