plugins { id 'com.android.application' id 'kotlin-android' id 'kotlin-parcelize' id 'kotlin-kapt' id 'dagger.hilt.android.plugin' } android { compileSdkVersion 31 buildToolsVersion "30.0.3" defaultConfig { applicationId "org.matomocamp.fosdem" minSdkVersion 17 targetSdkVersion 31 versionCode 1700205 versionName "2.0.5" // Supported languages resConfigs "en" vectorDrawables.useSupportLibrary = true javaCompileOptions { annotationProcessorOptions { arguments += ["room.incremental": "true"] } } } sourceSets { main { res.srcDirs += 'src/main/res-override' } } buildTypes { release { minifyEnabled true shrinkResources true proguardFiles 'proguard-defaults.txt', 'proguard-rules.pro' kotlinOptions { freeCompilerArgs = [ '-Xno-param-assertions', '-Xno-call-assertions', '-Xno-receiver-assertions' ] } packagingOptions { exclude 'DebugProbesKt.bin' } } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } kotlinOptions { jvmTarget = "1.8" } packagingOptions { exclude 'kotlin/**' exclude 'META-INF/*.kotlin_module' exclude 'META-INF/*.version' } } dependencies { def lifecycle_version = "2.3.1" def room_version = "2.3.0" def okhttp_version = "3.12.13" implementation "com.google.dagger:hilt-android:$hilt_version" kapt "com.google.dagger:hilt-compiler:$hilt_version" implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.1' implementation 'androidx.core:core-ktx:1.6.0' implementation 'androidx.fragment:fragment-ktx:1.3.6' implementation 'androidx.appcompat:appcompat:1.3.1' implementation 'com.google.android.material:material:1.4.0' implementation 'androidx.coordinatorlayout:coordinatorlayout:1.1.0' implementation 'androidx.recyclerview:recyclerview:1.2.1' implementation 'androidx.viewpager2:viewpager2:1.1.0-alpha01' implementation 'androidx.drawerlayout:drawerlayout:1.1.1' implementation 'androidx.preference:preference-ktx:1.1.1' implementation 'androidx.browser:browser:1.3.0' implementation "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycle_version" implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version" implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycle_version" implementation 'androidx.paging:paging-runtime-ktx:2.1.2' implementation "androidx.room:room-ktx:$room_version" kapt "androidx.room:room-compiler:$room_version" implementation "com.squareup.okhttp3:okhttp:$okhttp_version" implementation ("com.squareup.okhttp3:okhttp-tls:$okhttp_version") { exclude group: 'org.bouncycastle', module: 'bcprov-jdk15on' } implementation 'com.squareup.okio:okio:2.10.0' implementation 'com.squareup.moshi:moshi:1.12.0' }