* fix episode count in MediaFragement * fix tmdb language tag * update media type detection to use the episode field as episodeNumber may be messinging from certain episodes of tv shows
91 lines
3.3 KiB
Groovy
91 lines
3.3 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
id 'kotlin-android'
|
|
id 'org.jetbrains.kotlin.plugin.serialization' version "$kotlin_version"
|
|
}
|
|
|
|
android {
|
|
compileSdkVersion 33
|
|
buildToolsVersion "30.0.3"
|
|
|
|
defaultConfig {
|
|
applicationId "org.mosad.teapod"
|
|
minSdkVersion 23
|
|
targetSdkVersion 33
|
|
versionCode 100991 //01.00.000
|
|
versionName "1.1.0-beta2"
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
resValue "string", "build_time", buildTime()
|
|
setProperty("archivesBaseName", "teapod-$versionName")
|
|
}
|
|
|
|
buildFeatures {
|
|
viewBinding true
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled true
|
|
shrinkResources true
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = '1.8'
|
|
kotlin.sourceSets.all {
|
|
languageSettings.optIn("kotlin.RequiresOptIn")
|
|
}
|
|
}
|
|
namespace 'org.mosad.teapod'
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: "libs", include: ["*.jar"])
|
|
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
|
|
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4'
|
|
implementation 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.0'
|
|
|
|
implementation 'androidx.core:core-ktx:1.10.0'
|
|
implementation 'androidx.core:core-splashscreen:1.0.0'
|
|
implementation 'androidx.appcompat:appcompat:1.6.1'
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
|
implementation 'androidx.navigation:navigation-fragment-ktx:2.5.3'
|
|
implementation 'androidx.navigation:navigation-ui-ktx:2.5.3'
|
|
implementation 'androidx.security:security-crypto:1.1.0-alpha05'
|
|
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
|
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.6.1'
|
|
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.1'
|
|
|
|
implementation 'com.google.android.material:material:1.8.0'
|
|
implementation "com.google.android.exoplayer:exoplayer-core:$exo_version"
|
|
implementation "com.google.android.exoplayer:exoplayer-hls:$exo_version"
|
|
implementation "com.google.android.exoplayer:exoplayer-dash:$exo_version"
|
|
implementation "com.google.android.exoplayer:exoplayer-ui:$exo_version"
|
|
implementation "com.google.android.exoplayer:extension-mediasession:$exo_version"
|
|
|
|
implementation 'com.facebook.shimmer:shimmer:0.5.0'
|
|
|
|
implementation 'com.github.bumptech.glide:glide:4.15.1'
|
|
implementation 'jp.wasabeef:glide-transformations:4.3.0'
|
|
|
|
implementation "io.ktor:ktor-client-core:$ktor_version"
|
|
implementation "io.ktor:ktor-client-android:$ktor_version"
|
|
implementation "io.ktor:ktor-client-content-negotiation:$ktor_version"
|
|
implementation "io.ktor:ktor-serialization-kotlinx-json:$ktor_version"
|
|
|
|
testImplementation 'junit:junit:4.13.2'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
|
|
|
|
}
|
|
|
|
static def buildTime() {
|
|
return new Date().format("yyyy-MM-dd", TimeZone.getTimeZone("UTC"))
|
|
}
|