apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' apply plugin: 'dagger.hilt.android.plugin' apply plugin: 'kotlin-kapt' android { compileSdkVersion 30 buildToolsVersion "30.0.3" defaultConfig { applicationId "com.emmanuel.cookey.marvelcomics" minSdkVersion 23 targetSdkVersion 30 versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" renderscriptTargetApi 28 //must match target sdk and build tools renderscriptSupportModeEnabled true } 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' } testOptions { unitTests.returnDefaultValues = true } } dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" implementation 'androidx.core:core-ktx:1.3.2' implementation 'androidx.appcompat:appcompat:1.2.0' implementation 'com.google.android.material:material:1.3.0' implementation 'androidx.constraintlayout:constraintlayout:2.0.4' androidTestImplementation 'androidx.test.ext:junit:1.1.2' androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' testImplementation 'junit:junit:4.13.2' testImplementation 'com.nhaarman:mockito-kotlin-kt1.1:1.5.0' testImplementation "androidx.arch.core:core-testing:2.0.0" androidTestImplementation 'androidx.test.ext:junit:1.1.1' androidTestImplementation 'androidx.test:runner:1.3.0' androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' implementation 'com.facebook.shimmer:shimmer:0.1.0@aar' implementation 'androidx.exifinterface:exifinterface:1.0.0' //Room Components def roomVersion = "2.3.0" //RoomDb kapt "androidx.room:room-compiler:$roomVersion" implementation "androidx.room:room-ktx:$roomVersion" implementation "androidx.room:room-runtime:$roomVersion" implementation 'androidx.recyclerview:recyclerview:1.2.0' //Retrofit + GSON def retrofitVersion = "2.9.0" implementation "com.squareup.retrofit2:retrofit:$retrofitVersion" implementation "com.squareup.retrofit2:converter-gson:$retrofitVersion" // Glide implementation "com.github.bumptech.glide:glide:4.11.0" kapt "com.github.bumptech.glide:compiler:4.11.0" // Coroutines implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.2' //Anko def anko_version = '0.10.1' implementation "org.jetbrains.anko:anko:$anko_version" implementation "org.jetbrains.anko:anko-commons:$anko_version" // LiveData def lifecycle_version = '2.3.0' implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version" implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycle_version" // Dagger Hilt implementation "com.google.dagger:hilt-android:2.31-alpha" kapt "com.google.dagger:hilt-compiler:2.31-alpha" implementation "androidx.hilt:hilt-lifecycle-viewmodel:1.0.0-alpha03" implementation 'androidx.exifinterface:exifinterface:1.0.0' //activity implementation "androidx.activity:activity-ktx:1.2.3" // Fragment implementation 'androidx.fragment:fragment-ktx:1.3.3' implementation 'com.eightbitlab:blurview:1.6.6' } kapt { correctErrorTypes true }