plugins { id 'com.android.application' id 'org.jetbrains.kotlin.android' id 'com.google.dagger.hilt.android' id 'kotlin-kapt' } android { compileSdkVersion 32 defaultConfig { applicationId "com.appttude.h_mal.easycc" minSdkVersion 21 targetSdkVersion 32 versionCode 5 versionName "4.1" testInstrumentationRunner "com.appttude.h_mal.easycc.application.TestRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } kotlinOptions { jvmTarget = '1.8' } buildFeatures { viewBinding true } } dependencies { implementation 'androidx.core:core-ktx:1.8.0' implementation 'androidx.appcompat:appcompat:1.4.2' implementation 'com.google.android.material:material:1.6.1' implementation 'androidx.annotation:annotation:1.4.0' implementation 'androidx.constraintlayout:constraintlayout:2.1.4' implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.5.1' implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1' implementation 'androidx.activity:activity-ktx:1.5.1' testImplementation 'junit:junit:4.13.2' androidTestImplementation 'androidx.test.ext:junit:1.1.3' androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' androidTestImplementation 'androidx.test:rules:1.4.0' //Retrofit and GSON def retrofit_ver = "2.8.1" implementation "com.squareup.retrofit2:retrofit:$retrofit_ver" implementation "com.squareup.retrofit2:converter-gson:$retrofit_ver" implementation "com.squareup.okhttp3:logging-interceptor:4.9.0" // ViewModel and LiveData implementation "androidx.lifecycle:lifecycle-extensions:2.2.0" //New Material Design implementation 'com.google.android.material:material:1.6.1' // Hilt dependency injection def hilt_ver = "2.43.2" implementation "com.google.dagger:hilt-android:$hilt_ver" kapt "com.google.dagger:hilt-compiler:$hilt_ver" androidTestImplementation "com.google.dagger:hilt-android-testing:$hilt_ver" kaptAndroidTest "com.google.dagger:hilt-android-compiler:$hilt_ver" //mockito and livedata testing testImplementation 'org.mockito:mockito-inline:2.13.0' testImplementation 'androidx.arch.core:core-testing:2.1.0' implementation "androidx.preference:preference-ktx:1.2.0" //mock websever for testing retrofit responses testImplementation "com.squareup.okhttp3:mockwebserver:4.6.0" testImplementation "com.nhaarman.mockitokotlin2:mockito-kotlin:2.2.0" }