/* * Copyright (C) 2017 MINDORKS NEXTGEN PRIVATE LIMITED * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://mindorks.com/license/apache-v2 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License */ apply plugin: 'com.android.application' apply from: '../config/quality/quality.gradle' android { compileSdkVersion rootProject.ext.compileSdkVersion buildToolsVersion rootProject.ext.buildToolsVersion defaultConfig { applicationId "com.mindorks.framework.mvvm" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" vectorDrawables.useSupportLibrary = true } buildTypes { debug { buildConfigField("String", "BASE_URL", "\"http://www.mocky.io/v2\"") buildConfigField("String", "API_KEY", "\"ABCXYZ123TEST\"") } release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' buildConfigField("String", "BASE_URL", "\"http://www.mocky.io/v2\"") buildConfigField("String", "API_KEY", "\"ABCXYZ123TEST\"") } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } dataBinding { enabled = true } } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) // android support libraries implementation "com.android.support:appcompat-v7:$rootProject.supportLibraryVersion" implementation "com.android.support:recyclerview-v7:$rootProject.supportLibraryVersion" implementation "com.android.support:cardview-v7:$rootProject.supportLibraryVersion" implementation "com.android.support:design:$rootProject.supportLibraryVersion" implementation "com.android.support:support-vector-drawable:$rootProject.supportLibraryVersion" implementation "com.android.support:animated-vector-drawable:$rootProject.supportLibraryVersion" implementation "com.android.support.constraint:constraint-layout:$rootProject.constraintLayoutVersion" // network implementation "com.amitshekhar.android:rx2-android-networking:$rootProject.rx2FastAndroidNetworking" // database implementation "android.arch.persistence.room:rxjava2:$rootProject.roomDatabase" annotationProcessor "android.arch.persistence.room:compiler:$rootProject.roomDatabase" // font implementation "uk.co.chrisjenx:calligraphy:$rootProject.calligraphyVersion" // image implementation "com.github.bumptech.glide:glide:$rootProject.glideVersion" // parser implementation "com.google.code.gson:gson:$rootProject.gsonVersion" // debug database debugImplementation "com.amitshekhar.android:debug-db:$rootProject.debugDBVersion" // dependency injection implementation "com.google.dagger:dagger:$rootProject.dagger2Version" annotationProcessor "com.google.dagger:dagger-compiler:$rootProject.dagger2Version" annotationProcessor "com.google.dagger:dagger-android-processor:$rootProject.dagger2Version" implementation "com.google.dagger:dagger-android-support:$rootProject.dagger2Version" // reactive implementation "io.reactivex.rxjava2:rxjava:$rootProject.rxjava2Version" implementation "io.reactivex.rxjava2:rxandroid:$rootProject.rxandroidVersion" // swipe view implementation "com.mindorks:placeholderview:$rootProject.placeholderviewVersion" // logger implementation "com.jakewharton.timber:timber:$rootProject.timberVersion" // dependencies for local unit tests testImplementation "junit:junit:$rootProject.ext.junitVersion" testImplementation "org.mockito:mockito-core:$rootProject.mockitoVersion" testAnnotationProcessor "com.google.dagger:dagger-compiler:$rootProject.dagger2Version" // UI Testing androidTestImplementation "com.android.support.test.espresso:espresso-core:$rootProject.espressoVersion" androidTestImplementation "com.android.support.test.espresso:espresso-intents:$rootProject.espressoVersion" androidTestImplementation "org.mockito:mockito-core:$rootProject.mockitoVersion" androidTestAnnotationProcessor "com.google.dagger:dagger-compiler:$rootProject.dagger2Version" // view model implementation "android.arch.lifecycle:extensions:$rootProject.lifecycle" annotationProcessor "android.arch.lifecycle:compiler:$rootProject.lifecycle" } configurations.all { resolutionStrategy.force "com.android.support:support-annotations:$supportLibraryVersion" resolutionStrategy.force 'com.google.code.findbugs:jsr305:1.3.9' }