Created
September 6, 2022 18:38
-
-
Save odhiambo123/17f45e7f888c048ba780c16ff22ce11d to your computer and use it in GitHub Desktop.
dependencies gradle app level
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugins { | |
id 'com.android.application' | |
id 'org.jetbrains.kotlin.android' | |
id 'kotlin-kapt' | |
id 'kotlin-android-extensions' | |
id 'com.google.dagger.hilt.android' | |
} | |
android { | |
compileSdk 32 | |
defaultConfig { | |
applicationId "com.davidodhiambo.bestshows" | |
minSdk 21 | |
targetSdk 32 | |
versionCode 1 | |
versionName "1.0" | |
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" | |
} | |
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 | |
} | |
} | |
dependencies { | |
implementation 'androidx.core:core-ktx:1.8.0' | |
implementation 'androidx.appcompat:appcompat:1.5.0' | |
implementation 'com.google.android.material:material:1.6.1' | |
implementation 'androidx.constraintlayout:constraintlayout:2.1.4' | |
implementation 'com.google.dagger:dagger:2.43.2' | |
testImplementation 'junit:junit:4.13.2' | |
androidTestImplementation 'androidx.test.ext:junit:1.1.3' | |
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' | |
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.0-alpha01' | |
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.6.0-alpha01' | |
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.6.0-alpha01' | |
implementation 'androidx.lifecycle:lifecycle-viewmodel-savedstate:2.6.0-alpha01' | |
// Retrofit | |
implementation 'com.squareup.retrofit2:retrofit:2.9.0' | |
implementation 'com.google.code.gson:gson:2.9.0' | |
implementation 'com.squareup.retrofit2:converter-gson:2.9.0' | |
// Hilt | |
implementation 'com.google.dagger:hilt-android:2.43.2' | |
kapt 'com.google.dagger:hilt-compiler:2.43.2' | |
// For instrumentation tests | |
androidTestImplementation 'com.google.dagger:hilt-android-testing:2.43.2' | |
kaptAndroidTest 'com.google.dagger:hilt-compiler:2.43.2' | |
// For local unit tests | |
testImplementation 'com.google.dagger:hilt-android-testing:2.43.2' | |
kaptTest 'com.google.dagger:hilt-compiler:2.43.2' | |
// Lifecycle | |
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1" | |
implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.5.1" | |
implementation "androidx.lifecycle:lifecycle-livedata-ktx:2.5.1" | |
// Activity ViewModels | |
implementation "androidx.activity:activity-ktx:1.5.1" | |
// Coil Image Loading | |
implementation("io.coil-kt:coil:2.2.0") | |
} | |
kapt { | |
correctErrorTypes true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment