2021-05-14 21:47:10 +02:00
|
|
|
plugins {
|
|
|
|
id 'com.android.application'
|
|
|
|
id 'kotlin-android'
|
|
|
|
id 'kotlin-parcelize'
|
|
|
|
id 'kotlin-kapt'
|
|
|
|
id 'dagger.hilt.android.plugin'
|
|
|
|
}
|
2014-12-10 22:46:27 +01:00
|
|
|
|
|
|
|
android {
|
2022-09-24 13:03:39 +02:00
|
|
|
namespace 'be.digitalia.fosdem'
|
|
|
|
compileSdkVersion 33
|
|
|
|
buildToolsVersion "33.0.0"
|
2014-12-10 22:46:27 +01:00
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
applicationId "be.digitalia.fosdem"
|
2022-01-01 18:03:15 +01:00
|
|
|
minSdkVersion 19
|
2022-09-06 22:31:25 +02:00
|
|
|
targetSdkVersion 32
|
2021-12-31 18:01:18 +01:00
|
|
|
multiDexEnabled = true
|
2022-02-11 13:04:23 +01:00
|
|
|
versionCode 1900210
|
|
|
|
versionName "2.1.0"
|
2016-05-20 00:10:08 +02:00
|
|
|
// Supported languages
|
|
|
|
resConfigs "en"
|
2016-10-26 15:00:24 +02:00
|
|
|
vectorDrawables.useSupportLibrary = true
|
2014-12-20 17:20:08 +01:00
|
|
|
}
|
|
|
|
|
2020-11-29 12:57:08 +01:00
|
|
|
sourceSets {
|
|
|
|
main {
|
2020-12-25 17:26:12 +01:00
|
|
|
res.srcDirs += 'src/main/res-override'
|
2020-11-29 12:57:08 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-12-10 22:46:27 +01:00
|
|
|
buildTypes {
|
|
|
|
release {
|
2019-11-06 01:57:00 +01:00
|
|
|
minifyEnabled true
|
|
|
|
shrinkResources true
|
|
|
|
proguardFiles 'proguard-defaults.txt', 'proguard-rules.pro'
|
2020-02-25 15:30:58 +01:00
|
|
|
|
|
|
|
kotlinOptions {
|
|
|
|
freeCompilerArgs = [
|
|
|
|
'-Xno-param-assertions',
|
|
|
|
'-Xno-call-assertions',
|
|
|
|
'-Xno-receiver-assertions'
|
|
|
|
]
|
|
|
|
}
|
2020-11-11 13:03:47 +01:00
|
|
|
|
|
|
|
packagingOptions {
|
2022-07-15 16:39:06 +02:00
|
|
|
resources.excludes += [
|
|
|
|
'androidsupportmultidexversion.txt',
|
|
|
|
'DebugProbesKt.bin',
|
|
|
|
'kotlin-tooling-metadata.json'
|
|
|
|
]
|
2020-11-11 13:03:47 +01:00
|
|
|
}
|
2014-12-10 22:46:27 +01:00
|
|
|
}
|
|
|
|
}
|
2019-04-04 01:31:10 +02:00
|
|
|
|
|
|
|
compileOptions {
|
2021-12-31 18:01:18 +01:00
|
|
|
coreLibraryDesugaringEnabled true
|
2019-04-04 01:31:10 +02:00
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
}
|
2020-01-28 23:47:38 +01:00
|
|
|
|
|
|
|
kotlinOptions {
|
2021-10-10 15:50:18 +02:00
|
|
|
freeCompilerArgs = [
|
2022-07-15 16:39:06 +02:00
|
|
|
'-opt-in=kotlin.RequiresOptIn'
|
2021-10-10 15:50:18 +02:00
|
|
|
]
|
2020-01-28 23:47:38 +01:00
|
|
|
jvmTarget = "1.8"
|
|
|
|
}
|
|
|
|
|
|
|
|
packagingOptions {
|
2022-02-12 14:39:59 +01:00
|
|
|
resources.excludes += [
|
|
|
|
'kotlin/**',
|
|
|
|
'META-INF/*.kotlin_module',
|
|
|
|
'META-INF/*.version'
|
|
|
|
]
|
2020-01-28 23:47:38 +01:00
|
|
|
}
|
2014-12-10 22:46:27 +01:00
|
|
|
}
|
|
|
|
|
2022-01-09 17:26:07 +01:00
|
|
|
afterEvaluate {
|
|
|
|
// Update configuration of the R8 tasks to optimize desugaring shrinker
|
|
|
|
def originalSetting = "\"support_all_callbacks_from_library\": true"
|
|
|
|
def replacementSetting = "\"support_all_callbacks_from_library\": false"
|
2022-01-28 13:23:12 +01:00
|
|
|
tasks.forEach { task ->
|
|
|
|
def taskSimpleName = task.getClass().getSimpleName()
|
|
|
|
if (taskSimpleName.startsWith("R8Task")) {
|
|
|
|
task.configure {
|
|
|
|
def patchedDesugarConfig = coreLibDesugarConfig.getProvider().map {
|
|
|
|
it.replace(originalSetting, replacementSetting)
|
|
|
|
}
|
|
|
|
coreLibDesugarConfig.set(patchedDesugarConfig)
|
2022-01-09 17:26:07 +01:00
|
|
|
}
|
2022-01-28 13:23:12 +01:00
|
|
|
} else if (taskSimpleName.startsWith("L8DexDesugarLibTask")) {
|
|
|
|
task.configure {
|
|
|
|
def patchedDesugarConfig = libConfiguration.getProvider().map {
|
|
|
|
it.replace(originalSetting, replacementSetting)
|
|
|
|
}
|
|
|
|
libConfiguration.set(patchedDesugarConfig)
|
2022-01-09 17:26:07 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-12-10 22:46:27 +01:00
|
|
|
dependencies {
|
2022-09-06 22:31:25 +02:00
|
|
|
def lifecycle_version = "2.5.1"
|
|
|
|
def room_version = "2.4.3"
|
2021-02-06 01:36:25 +01:00
|
|
|
def okhttp_version = "3.12.13"
|
2019-01-28 13:30:07 +01:00
|
|
|
|
2022-09-24 13:03:39 +02:00
|
|
|
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.2.2'
|
2021-12-31 18:01:18 +01:00
|
|
|
|
2021-11-06 19:31:02 +01:00
|
|
|
implementation "androidx.multidex:multidex:2.0.1"
|
2021-05-14 21:47:10 +02:00
|
|
|
implementation "com.google.dagger:hilt-android:$hilt_version"
|
|
|
|
kapt "com.google.dagger:hilt-compiler:$hilt_version"
|
2022-07-15 16:39:06 +02:00
|
|
|
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4'
|
2022-09-24 13:03:39 +02:00
|
|
|
implementation 'androidx.core:core-ktx:1.9.0'
|
|
|
|
implementation 'androidx.activity:activity-ktx:1.6.0'
|
|
|
|
implementation 'androidx.fragment:fragment-ktx:1.5.3'
|
|
|
|
implementation 'androidx.appcompat:appcompat:1.5.1'
|
2022-07-15 16:39:06 +02:00
|
|
|
implementation 'com.google.android.material:material:1.6.1'
|
2022-01-21 10:32:47 +01:00
|
|
|
implementation 'androidx.coordinatorlayout:coordinatorlayout:1.2.0'
|
2021-06-19 15:46:26 +02:00
|
|
|
implementation 'androidx.recyclerview:recyclerview:1.2.1'
|
2021-10-10 14:29:55 +02:00
|
|
|
implementation 'androidx.viewpager2:viewpager2:1.1.0-beta01'
|
2022-09-24 13:03:39 +02:00
|
|
|
implementation 'androidx.drawerlayout:drawerlayout:1.2.0-alpha01'
|
2022-01-28 13:23:12 +01:00
|
|
|
implementation 'androidx.preference:preference-ktx:1.2.0'
|
2021-11-06 17:04:36 +01:00
|
|
|
implementation 'androidx.browser:browser:1.4.0'
|
2020-01-28 23:47:38 +01:00
|
|
|
implementation "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycle_version"
|
|
|
|
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version"
|
2022-03-11 17:18:29 +01:00
|
|
|
implementation 'androidx.paging:paging-runtime:3.1.1'
|
2020-01-28 23:47:38 +01:00
|
|
|
implementation "androidx.room:room-ktx:$room_version"
|
2022-02-03 17:30:55 +01:00
|
|
|
implementation "androidx.room:room-paging:$room_version"
|
2021-11-22 19:44:02 +01:00
|
|
|
implementation "androidx.datastore:datastore-preferences:1.0.0"
|
2020-01-28 23:47:38 +01:00
|
|
|
kapt "androidx.room:room-compiler:$room_version"
|
2020-11-10 23:50:58 +01:00
|
|
|
implementation "com.squareup.okhttp3:okhttp:$okhttp_version"
|
2022-01-09 17:26:07 +01:00
|
|
|
implementation("com.squareup.okhttp3:okhttp-tls:$okhttp_version") {
|
2020-11-10 23:50:58 +01:00
|
|
|
exclude group: 'org.bouncycastle', module: 'bcprov-jdk15on'
|
|
|
|
}
|
2022-07-15 16:39:06 +02:00
|
|
|
implementation 'com.squareup.okio:okio:3.2.0'
|
2022-09-24 13:03:39 +02:00
|
|
|
implementation 'com.squareup.moshi:moshi:1.14.0'
|
2018-12-13 04:19:20 +01:00
|
|
|
implementation 'com.github.chrisbanes:PhotoView:2.3.0'
|
2014-12-10 22:46:27 +01:00
|
|
|
}
|