mirror of
https://github.com/MatomoCamp/matomocamp-companion-android.git
synced 2024-09-19 16:13:46 +02:00
97 lines
2.9 KiB
Groovy
97 lines
2.9 KiB
Groovy
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 21
|
|
targetSdkVersion 31
|
|
versionCode 1800000
|
|
versionName "3.0.0"
|
|
// Supported languages
|
|
resConfigs "en", "de", "fr"
|
|
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 room_version = "2.3.0"
|
|
|
|
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.2'
|
|
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-beta01'
|
|
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:2.3.1"
|
|
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1"
|
|
implementation "androidx.lifecycle:lifecycle-livedata-ktx:2.3.1"
|
|
implementation 'androidx.paging:paging-runtime-ktx:3.0.1'
|
|
implementation "androidx.room:room-ktx:$room_version"
|
|
kapt "androidx.room:room-compiler:$room_version"
|
|
implementation "com.squareup.okhttp3:okhttp:4.9.0"
|
|
implementation 'com.squareup.okio:okio:2.10.0'
|
|
implementation 'com.squareup.moshi:moshi:1.12.0'
|
|
}
|