Files
donext/app/build.gradle
BONNEVILLE Geoffroy cc09397ba2 Implementing Room library for database
Creating a repository for abstraction
2018-11-15 18:37:19 +01:00

66 lines
2.3 KiB
Groovy

apply plugin: 'com.android.application'
android {
compileSdkVersion 28
buildToolsVersion '28.0.3'
defaultConfig {
applicationId "com.wismna.geoffroy.donext"
minSdkVersion 19
targetSdkVersion 28
versionCode 28
versionName "1.7"
javaCompileOptions {
annotationProcessorOptions {
arguments = ["room.schemaLocation": "$projectDir/schemas".toString()]
}
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
zipAlignEnabled true
}
}
}
sonarqube {
properties {
property 'sonar.host.url', '#{sonar.host.url}'
property 'sonar.login', '#{sonar.login}'
property 'sonar.organization', '#{sonar.organization}'
property 'sonar.projectKey', '#{sonar.projectkey}'
property 'sonar.branch', 'master'
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'com.google.android.material:material:1.1.0-alpha01'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.percentlayout:percentlayout:1.0.0'
implementation 'androidx.recyclerview:recyclerview:1.0.0'
implementation 'androidx.browser:browser:1.0.0'
implementation 'net.danlew:android.joda:2.9.7'
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-alpha2'
testImplementation 'junit:junit:4.12'
// App Center
def appCenterSdkVersion = '1.9.0'
implementation "com.microsoft.appcenter:appcenter-analytics:${appCenterSdkVersion}"
implementation "com.microsoft.appcenter:appcenter-crashes:${appCenterSdkVersion}"
// Room components
def roomVersion = "2.1.0-alpha02"
implementation "androidx.room:room-runtime:$roomVersion"
annotationProcessor "androidx.room:room-compiler:$roomVersion"
testImplementation "androidx.room:room-testing:$roomVersion"
// Lifecycle components
def archLifecycleVersion = '2.0.0'
implementation "android.arch.lifecycle:extensions:$archLifecycleVersion"
annotationProcessor "android.arch.lifecycle:compiler:$archLifecycleVersion"
}