2019-11-24 17:48:40 +00:00
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
|
|
|
|
apply plugin: 'kotlin-android'
|
|
|
|
|
|
|
|
apply plugin: 'kotlin-android-extensions'
|
|
|
|
|
2019-11-30 10:51:09 +00:00
|
|
|
apply plugin: 'kotlin-kapt'
|
|
|
|
|
2019-12-12 17:50:54 +00:00
|
|
|
apply plugin: 'io.gitlab.arturbosch.detekt'
|
|
|
|
|
2019-11-24 17:48:40 +00:00
|
|
|
android {
|
|
|
|
compileSdkVersion 29
|
|
|
|
buildToolsVersion "29.0.2"
|
|
|
|
defaultConfig {
|
|
|
|
applicationId "it.unisannio.ding.ids.wedroid.app"
|
|
|
|
minSdkVersion 24
|
|
|
|
targetSdkVersion 29
|
|
|
|
versionCode 1
|
|
|
|
versionName "1.0"
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
}
|
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
minifyEnabled false
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
|
|
}
|
|
|
|
}
|
2019-11-30 10:51:09 +00:00
|
|
|
packagingOptions {
|
|
|
|
exclude 'META-INF/atomicfu.kotlin_module'
|
|
|
|
}
|
2019-11-24 17:48:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2019-12-16 11:14:40 +00:00
|
|
|
|
2019-11-30 10:51:09 +00:00
|
|
|
// standard
|
2019-11-24 17:48:40 +00:00
|
|
|
implementation project(':wrapper')
|
2019-12-12 18:08:52 +00:00
|
|
|
detektPlugins "io.gitlab.arturbosch.detekt:detekt-formatting:1.2.2"
|
2019-11-24 17:48:40 +00:00
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
|
|
|
implementation 'androidx.appcompat:appcompat:1.1.0'
|
|
|
|
implementation 'androidx.core:core-ktx:1.1.0'
|
|
|
|
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
2019-11-30 10:51:09 +00:00
|
|
|
implementation 'com.google.android.material:material:1.0.0'
|
|
|
|
// wrapper
|
|
|
|
implementation project(':wrapper')
|
|
|
|
// retrofit
|
|
|
|
implementation "com.squareup.retrofit2:retrofit:2.6.2"
|
|
|
|
implementation "com.squareup.retrofit2:converter-gson:2.6.2"
|
|
|
|
// room database
|
|
|
|
implementation "androidx.room:room-runtime:$rootProject.roomVersion"
|
|
|
|
implementation "androidx.room:room-ktx:$rootProject.roomVersion"
|
|
|
|
kapt "androidx.room:room-compiler:$rootProject.roomVersion"
|
|
|
|
// lifecycle components
|
|
|
|
implementation "androidx.lifecycle:lifecycle-extensions:$rootProject.archLifecycleVersion"
|
|
|
|
//noinspection LifecycleAnnotationProcessorWithJava8
|
|
|
|
kapt "androidx.lifecycle:lifecycle-compiler:$rootProject.archLifecycleVersion"
|
|
|
|
// ViewModel Kotlin support
|
|
|
|
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$rootProject.archLifecycleVersion"
|
|
|
|
// Coroutines
|
|
|
|
api "org.jetbrains.kotlinx:kotlinx-coroutines-android:$rootProject.coroutines"
|
|
|
|
// UI
|
|
|
|
implementation "com.google.android.material:material:$rootProject.materialVersion"
|
2019-12-01 18:39:41 +00:00
|
|
|
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
|
|
|
|
|
2019-11-30 10:51:09 +00:00
|
|
|
|
|
|
|
// TESTING
|
2019-11-24 17:48:40 +00:00
|
|
|
testImplementation 'junit:junit:4.12'
|
2019-12-03 17:03:18 +00:00
|
|
|
testImplementation "io.mockk:mockk:1.9.3"
|
|
|
|
testImplementation "com.squareup.okhttp3:mockwebserver:4.2.1"
|
2019-11-24 17:48:40 +00:00
|
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
|
|
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
|
2019-12-28 18:39:25 +00:00
|
|
|
androidTestImplementation 'androidx.test:runner:1.2.0'
|
|
|
|
androidTestImplementation 'androidx.test:rules:1.2.0'
|
|
|
|
|
|
|
|
|
2019-12-02 11:49:05 +00:00
|
|
|
|
2019-11-26 16:41:00 +00:00
|
|
|
implementation "com.squareup.retrofit2:retrofit:2.6.2"
|
|
|
|
implementation "com.squareup.retrofit2:converter-gson:2.6.2"
|
2019-12-02 11:49:05 +00:00
|
|
|
|
2019-11-30 10:51:09 +00:00
|
|
|
androidTestImplementation "androidx.room:room-testing:$rootProject.roomVersion"
|
|
|
|
androidTestImplementation "androidx.arch.core:core-testing:$rootProject.androidxArchVersion"
|
|
|
|
androidTestImplementation "androidx.arch.core:core-testing:$rootProject.coreTestingVersion"
|
2019-11-24 17:48:40 +00:00
|
|
|
}
|