|
| 1 | +apply plugin: 'com.android.application' |
| 2 | +apply plugin: 'kotlin-android' |
| 3 | +apply plugin: 'kotlin-android-extensions' |
| 4 | +apply plugin: 'kotlin-kapt' |
| 5 | +apply plugin: 'dagger.hilt.android.plugin' |
| 6 | + |
| 7 | +android { |
| 8 | + compileSdkVersion 29 |
| 9 | + buildToolsVersion "29.0.3" |
| 10 | + |
| 11 | + defaultConfig { |
| 12 | + applicationId "com.mindorks.framework.mvvm" |
| 13 | + minSdkVersion 16 |
| 14 | + targetSdkVersion 29 |
| 15 | + versionCode 1 |
| 16 | + versionName "1.0" |
| 17 | + |
| 18 | + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" |
| 19 | + |
| 20 | + buildConfigField 'String', 'BASE_URL', "\"https://5e510330f2c0d300147c034c.mockapi.io/\"" |
| 21 | + |
| 22 | + } |
| 23 | + |
| 24 | + buildTypes { |
| 25 | + release { |
| 26 | + minifyEnabled false |
| 27 | + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' |
| 28 | + } |
| 29 | + } |
| 30 | + compileOptions { |
| 31 | + sourceCompatibility JavaVersion.VERSION_1_8 |
| 32 | + targetCompatibility JavaVersion.VERSION_1_8 |
| 33 | + } |
| 34 | + // work-runtime-ktx 2.1.0 and above now requires Java 8 |
| 35 | + kotlinOptions { |
| 36 | + jvmTarget = "1.8" |
| 37 | + } |
| 38 | + |
| 39 | +} |
| 40 | + |
| 41 | +dependencies { |
| 42 | + implementation fileTree(dir: 'libs', include: ['*.jar']) |
| 43 | + implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" |
| 44 | + implementation 'androidx.appcompat:appcompat:1.1.0' |
| 45 | + implementation 'androidx.core:core-ktx:1.3.0' |
| 46 | + implementation 'androidx.constraintlayout:constraintlayout:1.1.3' |
| 47 | + testImplementation 'junit:junit:4.13' |
| 48 | + androidTestImplementation 'androidx.test.ext:junit:1.1.1' |
| 49 | + androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' |
| 50 | + |
| 51 | + // Added Dependencies |
| 52 | + implementation "androidx.recyclerview:recyclerview:1.1.0" |
| 53 | + implementation 'android.arch.lifecycle:extensions:1.1.1' |
| 54 | + implementation 'com.github.bumptech.glide:glide:4.11.0' |
| 55 | + implementation 'androidx.activity:activity-ktx:1.1.0' |
| 56 | + |
| 57 | + |
| 58 | + //Dagger |
| 59 | + implementation 'com.google.dagger:hilt-android:2.28-alpha' |
| 60 | + kapt 'com.google.dagger:hilt-android-compiler:2.28-alpha' |
| 61 | + implementation 'androidx.hilt:hilt-lifecycle-viewmodel:1.0.0-alpha01' |
| 62 | + kapt 'androidx.hilt:hilt-compiler:1.0.0-alpha01' |
| 63 | + |
| 64 | + |
| 65 | + // Networking |
| 66 | + implementation "com.squareup.retrofit2:converter-moshi:2.6.2" |
| 67 | + implementation "com.squareup.retrofit2:retrofit:2.8.1" |
| 68 | + implementation "com.squareup.okhttp3:okhttp:4.7.2" |
| 69 | + implementation "com.squareup.okhttp3:logging-interceptor:4.7.2" |
| 70 | + |
| 71 | + //Coroutine |
| 72 | + implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.6" |
| 73 | + implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.6" |
| 74 | + |
| 75 | +} |
0 commit comments