Nick9500/ministocks

View on GitHub
build.gradle

Summary

Maintainability
Test Coverage
buildscript {
    repositories {
        mavenCentral()
        google()
    }
    dependencies {
        // Check supported Gradle version at the URL below before changing the below
        // https://repo1.maven.org/maven2/com/android/tools/build/gradle/
        classpath 'com.android.tools.build:gradle:2.3.0'
    }
}

apply plugin: 'com.android.application'

android {
    compileSdkVersion 25
    buildToolsVersion '25.0.2'

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_7
        targetCompatibility JavaVersion.VERSION_1_7
    }

    buildTypes {
        debug{
            buildConfigField 'String', 'EmailSecID', EmailID
            buildConfigField 'String', 'EmailSecPass', EmailPass
            buildConfigField 'String', 'AlphaVantageSecKey', AlphaVantageAPIKey
        }

        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            buildConfigField 'String', 'EmailSecID', EmailID
            buildConfigField 'String', 'EmailSecPass', EmailPass
            buildConfigField 'String', 'AlphaVantageSecKey', AlphaVantageAPIKey
        }
    }

    lintOptions {
        abortOnError false
    }

    testOptions {
        unitTests.returnDefaultValues = true
    }

    defaultConfig {
        testInstrumentationRunner 'android.support.test.runner.AndroidJUnitRunner'
    }
}

configurations.all {
    resolutionStrategy.force 'com.android.support:support-annotations:23.1.0'
}

dependencies {
    compile fileTree(include: '*.jar', dir: 'libs')
    compile 'com.google.guava:guava:19.0'
    compile 'com.android.support:percent:25.0.0'
    compile 'com.google.code.gson:gson:2.8.2'
    compile files('libs/Simple-Rss2-Android.jar')
    testCompile 'junit:junit:4.12'
    testCompile 'org.mockito:mockito-core:1.10.19'
    testCompile 'org.json:json:20160810'
    testCompile 'org.robolectric:robolectric:3.1.2'
    testCompile 'org.mockito:mockito-core:1.10.19'
    androidTestCompile 'com.android.support.test.uiautomator:uiautomator-v18:2.1.1'
    androidTestCompile 'com.android.support:support-annotations:23.1.0'
    androidTestCompile 'com.android.support.test:runner:0.4.1'
    androidTestCompile 'com.android.support.test:rules:0.4.1'
}

allprojects {
    repositories {
        jcenter()
        google()
    }
}