SV gradle update: app/build.gradle

Créé Le diff n'expire jamais
14 suppressions
183 lignes
23 ajouts
192 lignes
buildscript {
buildscript {
repositories {
repositories {
maven { url 'https://maven.fabric.io/public' }
maven { url 'https://maven.fabric.io/public' }
}
}

dependencies {
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
classpath 'io.fabric.tools:gradle:1.+'
}
}
}
}

apply plugin: 'com.android.application'
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android'
apply plugin: 'io.fabric'
apply plugin: 'io.fabric'
repositories {
repositories {
maven { url 'https://maven.fabric.io/public' }
maven { url 'https://maven.fabric.io/public' }
mavenCentral()
mavenCentral()
}
}


apply plugin: 'android-apt'
apply plugin: 'realm-android'
apply plugin: 'realm-android'
apply plugin: 'me.tatarka.retrolambda'
apply plugin: 'me.tatarka.retrolambda'
android {
android {


compileSdkVersion 25
compileSdkVersion 25
buildToolsVersion "25.0.1"
buildToolsVersion '25.0.3'
defaultConfig {
defaultConfig {
applicationId "com.example.myapp"
applicationId "com.example.myapp"
minSdkVersion 21
minSdkVersion 21
targetSdkVersion 25
targetSdkVersion 25
versionCode 1
versionCode 1
versionName "1.0"
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true
multiDexEnabled true
}
}


buildTypes {
buildTypes {
release {
release {
minifyEnabled false
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}


// Build type when we are generating build for clients, so it should be pretty stable
// Build type when we are generating build for clients, so it should be pretty stable
// build, properly tested (through the tests build type)
// build, properly tested (through the tests build type)
release {
release {
debuggable true
debuggable true
}
}


// Build type used locally (on development)
// Build type used locally (on development)
debug {
debug {
applicationIdSuffix '.devel'
applicationIdSuffix '.devel'
versionNameSuffix '-DEVEL'
versionNameSuffix '-DEVEL'
debuggable true
debuggable true
testCoverageEnabled true
testCoverageEnabled true
}
}
}
}


dataBinding {
dataBinding {
enabled = true
enabled = true
}
}


compileOptions {
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}


packagingOptions {
packagingOptions {
// prevents duplicate file error when building APK,
// prevents duplicate file error when building APK,
// (started occurring after 'com.google.android.gms' version update)
// (started occurring after 'com.google.android.gms' version update)
exclude 'META-INF/rxjava.properties'
exclude 'META-INF/rxjava.properties'
}
}


// prevents a gradle version conflict
// https://stackoverflow.com/questions/37347326/errorconflict-with-dependency-com-google-code-findbugsjsr305
configurations.all {
resolutionStrategy.force 'com.google.code.findbugs:jsr305:3.0.1'
}

}
}


dependencies {
dependencies {

compile fileTree(dir: 'libs', include: ['*.jar'])
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
exclude group: 'com.android.support', module: 'support-annotations'
})
})


androidTestCompile('com.android.support.test.espresso:espresso-contrib:2.2') {
androidTestCompile('com.android.support.test.espresso:espresso-contrib:2.2') {
// Necessary to avoid version conflicts
// Necessary to avoid version conflicts
exclude group: 'com.android.support', module: 'appcompat'
exclude group: 'com.android.support', module: 'appcompat'
exclude group: 'com.android.support', module: 'support-v4'
exclude group: 'com.android.support', module: 'support-v4'
exclude group: 'com.android.support', module: 'support-annotations'
exclude group: 'com.android.support', module: 'support-annotations'
exclude module: 'recyclerview-v7'
exclude module: 'recyclerview-v7'
}
}


// firebase
// firebase
compile 'com.google.firebase:firebase-core:11.0.0'
compile 'com.google.firebase:firebase-core:11.0.0'
compile 'com.google.firebase:firebase-messaging:11.0.0'
compile 'com.google.firebase:firebase-messaging:11.0.0'


// Caligraphy dependency, allowing us to use custom fonts in the application
// Caligraphy dependency, allowing us to use custom fonts in the application
compile 'uk.co.chrisjenx:calligraphy:2.2.0'
compile 'uk.co.chrisjenx:calligraphy:2.2.0'


testCompile 'junit:junit:4.12'
testCompile 'junit:junit:4.12'


// ButterKnife library
// ButterKnife library
compile 'com.jakewharton:butterknife:8.4.0'
compile 'com.jakewharton:butterknife:8.7.0'

annotationProcessor 'com.jakewharton:butterknife-compiler:8.7.0'
apt 'com.jakewharton:butterknife-compiler:8.4.0'