mirror of
https://github.com/MatomoCamp/matomocamp-companion-android.git
synced 2024-09-19 16:13:46 +02:00
669f5d1cb0
- Remove all Java code and replace it with Kotlin equivalent - Use KTX versions of all libraries to extend them with Kotlin functionality - Migrate Okio to its latest version which is written in Kotlin.
83 lines
2.8 KiB
Groovy
83 lines
2.8 KiB
Groovy
apply plugin: 'com.android.application'
|
|
apply plugin: 'kotlin-android'
|
|
apply plugin: 'kotlin-android-extensions'
|
|
apply plugin: 'kotlin-kapt'
|
|
|
|
android {
|
|
compileSdkVersion 29
|
|
buildToolsVersion "29.0.2"
|
|
|
|
defaultConfig {
|
|
applicationId "be.digitalia.fosdem"
|
|
minSdkVersion 17
|
|
targetSdkVersion 29
|
|
versionCode 1700200
|
|
versionName "2.0.0"
|
|
// Supported languages
|
|
resConfigs "en"
|
|
vectorDrawables.useSupportLibrary = true
|
|
|
|
javaCompileOptions {
|
|
annotationProcessorOptions {
|
|
arguments = ["room.incremental": "true"]
|
|
}
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled true
|
|
shrinkResources true
|
|
proguardFiles 'proguard-defaults.txt', 'proguard-rules.pro'
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
}
|
|
|
|
packagingOptions {
|
|
exclude 'kotlin/**'
|
|
exclude '**/*.kotlin_metadata'
|
|
exclude 'META-INF/*.kotlin_module'
|
|
exclude 'META-INF/*.version'
|
|
exclude 'META-INF/com.android.tools/**'
|
|
}
|
|
|
|
androidExtensions {
|
|
features = ["parcelize"]
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
def lifecycle_version = "2.2.0"
|
|
def room_version = "2.2.3"
|
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
|
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.3'
|
|
implementation 'androidx.core:core-ktx:1.2.0-rc01'
|
|
implementation 'androidx.fragment:fragment-ktx:1.2.0'
|
|
implementation 'androidx.appcompat:appcompat:1.1.0'
|
|
implementation 'com.google.android.material:material:1.1.0-rc02'
|
|
implementation 'androidx.coordinatorlayout:coordinatorlayout:1.1.0'
|
|
implementation 'androidx.recyclerview:recyclerview:1.1.0'
|
|
implementation 'androidx.viewpager2:viewpager2:1.0.0'
|
|
implementation 'androidx.drawerlayout:drawerlayout:1.1.0-alpha03'
|
|
implementation 'androidx.preference:preference-ktx:1.1.0'
|
|
implementation 'androidx.browser:browser:1.2.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.lifecycle:lifecycle-common-java8:$lifecycle_version"
|
|
implementation 'androidx.paging:paging-runtime-ktx:2.1.1'
|
|
implementation "androidx.room:room-ktx:$room_version"
|
|
kapt "androidx.room:room-compiler:$room_version"
|
|
implementation 'com.squareup.okhttp3:okhttp:3.12.8'
|
|
implementation 'com.squareup.okio:okio:2.4.3'
|
|
implementation 'com.github.chrisbanes:PhotoView:2.3.0'
|
|
}
|