123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 |
- 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 30
- buildToolsVersion "30.0.1"
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
- kotlinOptions {
- jvmTarget = "1.8"
- }
- defaultConfig {
- applicationId "fr.forum_thalie.tsumugi"
- minSdkVersion 16
- targetSdkVersion 30
- versionCode 120
- versionName "1.2.0"
- 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.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.2.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
-
- }
|