| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- plugins {
- id 'com.android.application'
- id 'kotlin-android'
- id 'kotlin-kapt'
- id 'dagger.hilt.android.plugin'
- }
- android {
- compileSdkVersion 30
- defaultConfig {
- applicationId "com.mrozon.currencyconverter"
- minSdkVersion 21
- targetSdkVersion 30
- 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'
- }
- }
- dependencies {
- implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
- implementation 'androidx.core:core-ktx:1.5.0'
- implementation 'androidx.appcompat:appcompat:1.3.0'
- implementation 'com.google.android.material:material:1.3.0'
- implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
- //Dagger Hilt
- implementation "com.google.dagger:hilt-android:$hilt_version"
- kapt "com.google.dagger:hilt-compiler:$hilt_version"
- //Network
- implementation "com.squareup.okhttp3:logging-interceptor:$okHttpLogging_version"
- implementation "com.squareup.retrofit2:converter-gson:$retrofit_version"
- implementation "com.squareup.retrofit2:retrofit:$retrofit_version"
- implementation "com.google.code.gson:gson:$gson_version"
- //Coroutines
- implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutines_version"
- implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version"
- //Room
- kapt "androidx.room:room-compiler:$kapt_room_version"
- implementation "androidx.room:room-runtime:$room_version"
- implementation "androidx.room:room-ktx:$room_version"
- testImplementation 'junit:junit:4.13.2'
- testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutines_version"
- testImplementation "androidx.arch.core:core-testing:2.1.0"
- androidTestImplementation "androidx.arch.core:core-testing:2.1.0"
- androidTestImplementation 'androidx.test.ext:junit:1.1.2'
- androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
- //testing network
- testImplementation 'org.mockito:mockito-core:2.19.0'
- testImplementation "com.squareup.retrofit2:retrofit-mock:$retrofit_version"
- }
|