Skip to content

Instantly share code, notes, and snippets.

@vikasmain
Created January 13, 2022 12:15
Show Gist options
  • Save vikasmain/4150751f6748a35d2b9ca9a3fb459400 to your computer and use it in GitHub Desktop.
Save vikasmain/4150751f6748a35d2b9ca9a3fb459400 to your computer and use it in GitHub Desktop.
plugins {
id 'com.android.application'
id 'kotlin-android'
id "kotlin-android-extensions"
id 'kotlin-kapt'
}
android {
compileSdk 31
defaultConfig {
applicationId "com.app.coroutinesmvp"
minSdk 21
targetSdk 31
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
testOptions {
unitTests.all {
useJUnitPlatform()
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
buildFeatures {
viewBinding = true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
}
dependencies {
implementation 'androidx.core:core-ktx:1.7.0'
implementation 'androidx.appcompat:appcompat:1.4.0'
implementation 'com.google.android.material:material:1.4.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.2'
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.9.0'
implementation 'com.github.bumptech.glide:glide:4.12.0'
testImplementation 'org.junit.jupiter:junit-jupiter'
annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.squareup.okhttp3:logging-interceptor:4.8.1'
def dagger_version = "2.35.1"
implementation "com.google.dagger:dagger:$dagger_version"
kapt "com.google.dagger:dagger-compiler:$dagger_version"
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.3'
implementation 'com.android.support:multidex:1.0.3'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.3'
testImplementation 'junit:junit:4.+'
testImplementation 'org.jetbrains.kotlin:kotlin-test'
testImplementation("org.junit.platform:junit-platform-launcher:1.7.1")
testImplementation("junit:junit:4.13.2")
testImplementation('androidx.test:core:1.4.0')
testImplementation("org.mockito:mockito-core:3.10.0")
testImplementation("org.mockito.kotlin:mockito-kotlin:3.2.0")
testImplementation "org.powermock:powermock-module-junit4:2.0.2"
testImplementation 'org.mockito:mockito-inline:3.10.0'
testImplementation 'org.mockito:mockito-core:3.10.0'
testImplementation 'com.nhaarman.mockitokotlin2:mockito-kotlin:2.2.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment