2021-12-04 19:55:26 +01:00
plugins {
id 'com.android.application'
id 'kotlin-android'
id 'kotlin-android-extensions'
id 'org.jetbrains.kotlin.plugin.serialization' version "$kotlin_version"
}
2020-10-08 22:20:20 +02:00
android {
2022-03-19 22:09:47 +01:00
compileSdkVersion 31
2020-12-20 20:21:27 +01:00
buildToolsVersion "30.0.3"
2020-10-08 22:20:20 +02:00
defaultConfig {
applicationId "org.mosad.teapod"
minSdkVersion 23
2022-03-19 22:09:47 +01:00
targetSdkVersion 31
2022-03-30 00:05:20 +02:00
versionCode 9010 //00.09.010
versionName "1.0.0-beta2"
2020-10-08 22:20:20 +02:00
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
2020-10-11 23:16:47 +02:00
resValue "string" , "build_time" , buildTime ( )
2020-10-11 15:19:42 +02:00
setProperty ( "archivesBaseName" , "teapod-$versionName" )
2020-10-08 22:20:20 +02:00
}
2020-11-25 22:35:55 +01:00
buildFeatures {
viewBinding true
}
2020-10-08 22:20:20 +02:00
buildTypes {
release {
2020-10-20 20:22:50 +02:00
minifyEnabled true
shrinkResources true
2020-10-08 22:20:20 +02:00
proguardFiles getDefaultProguardFile ( 'proguard-android-optimize.txt' ) , 'proguard-rules.pro'
}
}
2021-08-15 00:39:17 +02:00
2020-10-08 22:20:20 +02:00
compileOptions {
sourceCompatibility JavaVersion . VERSION_1_8
targetCompatibility JavaVersion . VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
}
dependencies {
implementation fileTree ( dir: "libs" , include: [ "*.jar" ] )
2021-09-05 13:43:27 +02:00
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2'
2021-12-31 16:03:15 +01:00
implementation 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.1'
2020-10-11 14:25:47 +02:00
2022-03-19 22:09:47 +01:00
implementation 'androidx.core:core-ktx:1.7.0'
2022-03-29 22:39:02 +02:00
implementation 'androidx.core:core-splashscreen:1.0.0-beta02'
2022-03-19 22:09:47 +01:00
implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
implementation 'androidx.navigation:navigation-fragment-ktx:2.4.1'
implementation 'androidx.navigation:navigation-ui-ktx:2.4.1'
2020-12-11 10:54:40 +01:00
implementation 'androidx.security:security-crypto:1.1.0-alpha03'
2020-10-13 21:27:05 +02:00
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
2022-03-19 22:09:47 +01:00
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.4.1'
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.4.1'
2020-10-11 13:18:20 +02:00
2022-03-19 22:09:47 +01:00
implementation 'com.google.android.material:material:1.5.0'
2021-09-05 13:43:27 +02:00
implementation 'com.google.android.exoplayer:exoplayer-core:2.15.0'
implementation 'com.google.android.exoplayer:exoplayer-hls:2.15.0'
implementation 'com.google.android.exoplayer:exoplayer-dash:2.15.0'
implementation 'com.google.android.exoplayer:exoplayer-ui:2.15.0'
implementation 'com.google.android.exoplayer:extension-mediasession:2.15.0'
2020-10-11 13:18:20 +02:00
2021-02-06 23:01:14 +01:00
implementation 'com.github.bumptech.glide:glide:4.12.0'
2020-10-12 22:43:42 +02:00
implementation 'jp.wasabeef:glide-transformations:4.3.0'
2022-03-19 20:14:16 +01:00
implementation 'com.afollestad.material-dialogs:core:3.3.0' // TODO remove once unused
implementation 'com.afollestad.material-dialogs:bottomsheets:3.3.0' // TODO remove once unused
2020-10-11 14:25:47 +02:00
2022-03-04 20:29:37 +01:00
implementation "io.ktor:ktor-client-core:$ktor_version"
implementation "io.ktor:ktor-client-android:$ktor_version"
2022-03-05 19:22:47 +01:00
implementation "io.ktor:ktor-client-serialization:$ktor_version"
2022-03-04 20:29:37 +01:00
2021-05-09 20:31:51 +02:00
testImplementation 'junit:junit:4.13.2'
2021-07-03 13:45:59 +02:00
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
2020-10-08 22:20:20 +02:00
2020-10-11 23:16:47 +02:00
}
static def buildTime ( ) {
return new Date ( ) . format ( "yyyy-MM-dd" , TimeZone . getTimeZone ( "UTC" ) )
2021-07-09 18:54:44 +02:00
}