plugins { id 'com.android.application' id 'org.jetbrains.kotlin.android' id 'org.jetbrains.kotlin.plugin.serialization' version '1.9.23' } def keystorePropertiesFile = rootProject.file("app/keystore.properties") def keystoreProperties = new Properties() keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) android { namespace 'net.helcel.fidelity' compileSdk 34 defaultConfig { applicationId 'net.helcel.fidelity' resValue "string", "app_name", "Keepass Fidelity" minSdk 28 targetSdk 34 versionCode 1 versionName "1.0" } signingConfigs { create("release") { keyAlias keystoreProperties['keyAlias'] keyPassword keystoreProperties['keyPassword'] storeFile file(keystoreProperties['storeFile']) storePassword keystoreProperties['storePassword'] } } buildTypes { debug { debuggable true } release { minifyEnabled true shrinkResources false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' signingConfig = signingConfigs.getByName("release") } } compileOptions { coreLibraryDesugaringEnabled true sourceCompatibility JavaVersion.VERSION_17 targetCompatibility JavaVersion.VERSION_17 encoding 'utf-8' } kotlinOptions { jvmTarget = JavaVersion.VERSION_17 } buildFeatures { viewBinding true } } dependencies { coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs_nio:2.0.4' implementation 'androidx.appcompat:appcompat:1.6.1' implementation 'androidx.core:core-ktx:1.12.0' implementation 'androidx.preference:preference-ktx:1.2.1' implementation 'androidx.constraintlayout:constraintlayout:2.1.4' implementation 'androidx.camera:camera-camera2:1.3.2' implementation 'androidx.camera:camera-lifecycle:1.3.2' implementation 'androidx.camera:camera-view:1.3.2' 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' implementation 'com.google.mlkit:barcode-scanning:17.2.0' }