plugins { id 'com.android.application' id 'kotlin-android' id 'kotlin-kapt' id 'androidx.navigation.safeargs.kotlin' id("dagger.hilt.android.plugin") } def appPackageId = 'com.yogeshpaliyal.keypass' android { compileSdkVersion 31 buildToolsVersion "30.0.3" defaultConfig { applicationId appPackageId minSdkVersion 22 targetSdkVersion 31 versionCode 1407 versionName "1.4.7" testInstrumentationRunner "com.yogeshpaliyal.keypass.CustomTestRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } kotlinOptions { jvmTarget = '1.8' } buildFeatures{ viewBinding = true dataBinding = true } flavorDimensions "default" productFlavors { production { } staging { applicationIdSuffix ".staging" } } sourceSets { main { res { srcDirs 'src\\main\\res', 'src\\staging\\res' } } } lintOptions{ abortOnError true } testOptions.unitTests.includeAndroidResources = true } dependencies { implementation project(":common") implementation "org.jetbrains.kotlin:kotlin-stdlib:${kotlin_version}" implementation 'androidx.core:core-ktx:1.7.0' implementation 'androidx.appcompat:appcompat:1.4.1' implementation 'com.google.android.material:material:1.7.0-alpha01' implementation 'androidx.constraintlayout:constraintlayout:2.1.3' implementation 'androidx.preference:preference-ktx:1.1.1' testImplementation 'junit:junit:4.13.2' androidTestImplementation 'androidx.test:core-ktx:1.4.0' androidTestImplementation 'androidx.test.ext:junit-ktx:1.1.3' androidTestImplementation 'androidx.test.ext:junit:1.1.3' androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' implementation ('androidx.appcompat:appcompat:1.4.1') implementation "androidx.documentfile:documentfile:1.0.1" // ViewModel implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version" // LiveData implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycle_version" implementation "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycle_version" implementation "androidx.navigation:navigation-fragment-ktx:$navigation_version" implementation "androidx.navigation:navigation-ui-ktx:$navigation_version" implementation "androidx.room:room-runtime:$room_version" androidTestImplementation 'androidx.test:rules:1.4.0' kapt "androidx.room:room-compiler:$room_version" implementation "androidx.room:room-ktx:$room_version" implementation 'com.yogeshpaliyal:universal-adapter:3.0.1' implementation "androidx.biometric:biometric:1.1.0" // dependency injection implementation("com.google.dagger:hilt-android:$hilt_version") kapt("com.google.dagger:hilt-android-compiler:$hilt_version") implementation("androidx.hilt:hilt-work:1.0.0") // When using Kotlin. kapt("androidx.hilt:hilt-compiler:1.0.0") // zxing library // implementation "com.googl.ezxing:android-core:3.4.1" implementation 'com.journeyapps:zxing-android-embedded:4.3.0' // For instrumented tests. androidTestImplementation("com.google.dagger:hilt-android-testing:2.41") // ...with Kotlin. kaptAndroidTest("com.google.dagger:hilt-android-compiler:2.40") // For Robolectric tests. testImplementation("com.google.dagger:hilt-android-testing:2.40.5") // ...with Kotlin. kaptTest("com.google.dagger:hilt-android-compiler:2.40") // jetpack compose implementation 'androidx.compose.ui:ui:1.1.1' implementation 'com.google.code.gson:gson:2.9.0' implementation 'androidx.compose.ui:ui-tooling:1.1.1' // Foundation (Border, Background, Box, Image, Scroll, shapes, animations, etc.) implementation 'androidx.compose.foundation:foundation:1.1.1' // Material Design implementation 'androidx.compose.material:material:1.1.1' // Material design icons implementation 'androidx.compose.material:material-icons-core:1.1.1' implementation 'androidx.compose.material:material-icons-extended:1.1.1' // Integration with activities implementation 'androidx.activity:activity-compose:1.4.0' // Integration with ViewModels implementation 'androidx.lifecycle:lifecycle-viewmodel-compose:2.4.1' // Integration with observables implementation 'androidx.compose.runtime:runtime-livedata:1.1.1' implementation "androidx.datastore:datastore-preferences:1.0.0" }