79 lines
3.0 KiB
Groovy
79 lines
3.0 KiB
Groovy
apply plugin: 'com.android.application'
|
|
|
|
apply plugin: 'kotlin-android'
|
|
|
|
apply plugin: 'kotlin-android-extensions'
|
|
|
|
apply plugin: 'kotlin-kapt'
|
|
|
|
apply plugin: 'io.gitlab.arturbosch.detekt'
|
|
|
|
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'
|
|
}
|
|
}
|
|
packagingOptions {
|
|
exclude 'META-INF/atomicfu.kotlin_module'
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
// standard
|
|
implementation 'androidx.appcompat:appcompat:1.1.0'
|
|
implementation 'androidx.core:core-ktx:1.1.0'
|
|
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
|
implementation 'com.google.android.material:material:1.0.0'
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
|
// wrapper
|
|
implementation project(':wrapper')
|
|
// retrofit
|
|
implementation "com.squareup.retrofit2:converter-gson:2.6.2"
|
|
implementation "com.squareup.retrofit2:retrofit:2.6.2"
|
|
// room database
|
|
kapt "androidx.room:room-compiler:$rootProject.roomVersion"
|
|
implementation "androidx.room:room-ktx:$rootProject.roomVersion"
|
|
implementation "androidx.room:room-runtime:$rootProject.roomVersion"
|
|
// lifecycle components
|
|
kapt "androidx.lifecycle:lifecycle-compiler:$rootProject.archLifecycleVersion"
|
|
implementation "androidx.lifecycle:lifecycle-extensions:$rootProject.archLifecycleVersion"
|
|
// viewmode kotlin support
|
|
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$rootProject.archLifecycleVersion"
|
|
// coroutines
|
|
api "org.jetbrains.kotlinx:kotlinx-coroutines-android:$rootProject.coroutines"
|
|
// UI
|
|
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
|
|
implementation 'androidx.cardview:cardview:1.0.0'
|
|
implementation "com.google.android.material:material:$rootProject.materialVersion"
|
|
|
|
// testing
|
|
testImplementation "com.squareup.okhttp3:mockwebserver:4.2.1"
|
|
testImplementation "io.mockk:mockk:1.9.3"
|
|
testImplementation 'junit:junit:4.12'
|
|
|
|
// android testing
|
|
androidTestImplementation "androidx.arch.core:core-testing:$rootProject.androidxArchVersion"
|
|
androidTestImplementation "androidx.arch.core:core-testing:$rootProject.coreTestingVersion"
|
|
androidTestImplementation "androidx.room:room-testing:$rootProject.roomVersion"
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-contrib:3.2.0'
|
|
androidTestImplementation 'androidx.test:runner:1.2.0'
|
|
androidTestImplementation 'androidx.test:rules:1.2.0'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
|
|
|
|
// detekt
|
|
detektPlugins "io.gitlab.arturbosch.detekt:detekt-formatting:1.2.2"
|
|
}
|