92 lines
2.5 KiB
Groovy
92 lines
2.5 KiB
Groovy
apply plugin: 'com.android.application'
|
|
|
|
ext {
|
|
supportLibVersion = '25.0.0'
|
|
}
|
|
|
|
android {
|
|
compileSdkVersion 25
|
|
buildToolsVersion "25.0.0"
|
|
|
|
defaultConfig {
|
|
applicationId "com.mapbox.mapboxsdk.testapp"
|
|
minSdkVersion 15
|
|
targetSdkVersion 25
|
|
versionCode 11
|
|
versionName "5.0.0"
|
|
|
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_7
|
|
targetCompatibility JavaVersion.VERSION_1_7
|
|
}
|
|
|
|
packagingOptions {
|
|
exclude 'META-INF/LICENSE.txt'
|
|
exclude 'META-INF/NOTICE.txt'
|
|
exclude 'LICENSE.txt'
|
|
}
|
|
|
|
lintOptions {
|
|
checkAllWarnings true
|
|
warningsAsErrors true
|
|
disable 'IconDensities'
|
|
disable 'InvalidPackage'
|
|
}
|
|
|
|
testOptions {
|
|
unitTests.returnDefaultValues = true
|
|
}
|
|
|
|
buildTypes {
|
|
debug {
|
|
testCoverageEnabled = true
|
|
}
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compile(project(':MapboxGLAndroidSDK')) {
|
|
transitive = true
|
|
}
|
|
|
|
// Support libraries
|
|
compile "com.android.support:support-annotations:${supportLibVersion}"
|
|
compile "com.android.support:support-v4:${supportLibVersion}"
|
|
compile "com.android.support:appcompat-v7:${supportLibVersion}"
|
|
compile "com.android.support:design:${supportLibVersion}"
|
|
compile "com.android.support:recyclerview-v7:${supportLibVersion}"
|
|
|
|
// Leak Canary
|
|
debugCompile 'com.squareup.leakcanary:leakcanary-android:1.5'
|
|
releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5'
|
|
testCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5'
|
|
|
|
// Mapbox Android Services
|
|
compile('com.mapbox.mapboxsdk:mapbox-android-services:1.3.0@aar') {
|
|
transitive = true
|
|
}
|
|
|
|
// Testing dependencies
|
|
testCompile 'junit:junit:4.12'
|
|
testCompile 'org.mockito:mockito-core:1.10.19'
|
|
androidTestCompile "com.android.support:support-annotations:${supportLibVersion}"
|
|
androidTestCompile 'com.android.support.test:runner:0.5'
|
|
androidTestCompile 'com.android.support.test:rules:0.5'
|
|
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.2'
|
|
androidTestCompile 'com.squareup.spoon:spoon-client:1.6.2'
|
|
}
|
|
|
|
apply from: 'gradle-make.gradle'
|
|
apply from: 'gradle-config.gradle'
|
|
apply from: 'gradle-device-farm.gradle'
|
|
apply from: 'gradle-spoon.gradle'
|
|
|
|
|