apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' apply plugin: 'kotlin-kapt' configurations.all { resolutionStrategy.eachDependency { DependencyResolveDetails details -> def requested = details.requested if (requested.group == "androidx") { if (!requested.name.startsWith("multidex")) { details.useVersion "${targetSdk}.+" } } } } android { compileSdkVersion 29 buildToolsVersion "29.0.2" compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } kotlinOptions { jvmTarget = "1.8" } defaultConfig { applicationId "fr.forum_thalie.tsumugi" minSdkVersion 16 targetSdkVersion 29 versionCode 113 versionName "1.1.3" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" vectorDrawables.useSupportLibrary = true } // Note: I noticed that enabling these make the release app crash on API19-. // So I'll disable it as of now for maximum compatibility, even if the app size is a tad bigger. /* buildTypes { release { minifyEnabled true shrinkResources true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } */ } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) /* implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version" implementation 'androidx.appcompat:appcompat:1.1.0' implementation 'androidx.core:core-ktx:1.1.0' implementation 'com.google.android.material:material:1.0.0' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' implementation 'androidx.navigation:navigation-fragment-ktx:2.1.0' implementation 'androidx.navigation:navigation-ui-ktx:2.1.0' implementation 'androidx.vectordrawable:vectordrawable:1.1.0' implementation 'androidx.lifecycle:lifecycle-extensions:2.1.0' implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.1.0' testImplementation 'junit:junit:4.12' androidTestImplementation 'androidx.test.ext:junit:1.1.1' androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' */ implementation "androidx.media:media:1.1.0" //implementation 'com.google.android.exoplayer:exoplayer:2.11.1' implementation project(':exoplayer-library') // uses local ExoPlayer clone, from dev-v2 branch (fixes ISO-8859-1 ICY metadata implementation 'androidx.lifecycle:lifecycle-extensions:2.1.0' implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.1.0' implementation 'androidx.recyclerview:recyclerview:1.1.0' implementation 'androidx.preference:preference:1.1.0' // jsoup HTML parser library @ https://jsoup.org/ // implementation 'org.jsoup:jsoup:1.12.1' // RSS parser library @ https://github.com/prof18/RSS-Parser implementation 'com.prof.rssparser:rssparser:2.0.4' // new implems implementation deps.kotlin.stdlib implementation deps.support.app_compat implementation deps.support.design implementation deps.support.core_ktx implementation deps.constraint_layout implementation deps.arch_core.runtime // Navigation implementation deps.navigation.runtime_ktx implementation deps.navigation.fragment_ktx implementation deps.navigation.ui_ktx // Android Testing Support Library's runner and rules /* androidTestImplementation deps.atsl.runner androidTestImplementation deps.atsl.rules androidTestImplementation deps.room.testing androidTestImplementation deps.arch_core.testing */ // Espresso UI Testing androidTestImplementation deps.espresso.core androidTestImplementation deps.espresso.contrib androidTestImplementation deps.espresso.intents }