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 32 compileOptions { sourceCompatibility JavaVersion.VERSION_11 targetCompatibility JavaVersion.VERSION_11 } kotlinOptions { jvmTarget = "11" } defaultConfig { applicationId "fr.riff_app.riff" minSdkVersion 16 targetSdkVersion 32 multiDexEnabled true versionCode 121 versionName "1.2.1" 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 { def multidex_version = "2.0.1" implementation "androidx.multidex:multidex:$multidex_version" 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.5.0" //noinspection GradleDependency implementation 'com.google.android.exoplayer:exoplayer:2.11.3' //implementation project(':exoplayer-library') // uses local ExoPlayer clone, from dev-v2 branch (fixes ISO-8859-1 ICY metadata implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0' implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.4.1' implementation 'androidx.recyclerview:recyclerview:1.2.1' implementation 'androidx.preference:preference-ktx:1.2.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 }