111 lines
No EOL
3.4 KiB
Groovy
111 lines
No EOL
3.4 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
id 'kotlin-android'
|
|
id 'kotlin-parcelize'
|
|
id 'kotlin-kapt'
|
|
id 'androidx.navigation.safeargs.kotlin'
|
|
id 'dagger.hilt.android.plugin'
|
|
id 'com.google.android.gms.oss-licenses-plugin'
|
|
}
|
|
|
|
android {
|
|
compileSdkVersion 31
|
|
buildToolsVersion "31.0.0"
|
|
|
|
defaultConfig {
|
|
applicationId "dev.jdtech.jellyfin"
|
|
minSdkVersion 24
|
|
targetSdkVersion 31
|
|
versionCode 1
|
|
versionName "0.1.0"
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled true
|
|
shrinkResources true
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
coreLibraryDesugaringEnabled true
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = '1.8'
|
|
}
|
|
|
|
buildFeatures {
|
|
dataBinding true
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'androidx.core:core-ktx:1.6.0'
|
|
implementation 'androidx.core:core-splashscreen:1.0.0-alpha01'
|
|
implementation 'androidx.appcompat:appcompat:1.3.1'
|
|
|
|
// Material
|
|
implementation 'com.google.android.material:material:1.4.0'
|
|
|
|
// ConstraintLayout
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.0'
|
|
|
|
// Navigation
|
|
def navigation_version = "2.3.5"
|
|
implementation "androidx.navigation:navigation-fragment-ktx:$navigation_version"
|
|
implementation "androidx.navigation:navigation-ui-ktx:$navigation_version"
|
|
|
|
// RecyclerView
|
|
implementation "androidx.recyclerview:recyclerview:1.2.1"
|
|
implementation "androidx.recyclerview:recyclerview-selection:1.1.0"
|
|
|
|
// Room
|
|
def room_version = "2.3.0"
|
|
implementation "androidx.room:room-runtime:$room_version"
|
|
kapt "androidx.room:room-compiler:$room_version"
|
|
implementation "androidx.room:room-ktx:$room_version"
|
|
|
|
// Preference
|
|
def preference_version = "1.1.1"
|
|
implementation "androidx.preference:preference-ktx:$preference_version"
|
|
|
|
// Jellyfin
|
|
def jellyfin_version = "1.0.2"
|
|
implementation "org.jellyfin.sdk:jellyfin-platform-android:$jellyfin_version"
|
|
|
|
// Glide
|
|
def glide_version = "4.12.0"
|
|
implementation "com.github.bumptech.glide:glide:$glide_version"
|
|
kapt "com.github.bumptech.glide:compiler:$glide_version"
|
|
|
|
// Hilt
|
|
def hilt_version = "2.38.1"
|
|
implementation "com.google.dagger:hilt-android:$hilt_version"
|
|
kapt "com.google.dagger:hilt-compiler:$hilt_version"
|
|
|
|
// ExoPlayer
|
|
def exoplayer_version = "2.15.0"
|
|
implementation "com.google.android.exoplayer:exoplayer-core:$exoplayer_version"
|
|
implementation "com.google.android.exoplayer:exoplayer-ui:$exoplayer_version"
|
|
implementation files('libs/extension-ffmpeg-release.aar')
|
|
|
|
// Timber
|
|
def timber_version = "5.0.0"
|
|
implementation "com.jakewharton.timber:timber:$timber_version"
|
|
|
|
def oss_licenses_version = "17.0.0"
|
|
implementation "com.google.android.gms:play-services-oss-licenses:$oss_licenses_version"
|
|
|
|
// Testing
|
|
testImplementation 'junit:junit:4.13.2'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
|
|
|
|
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'
|
|
} |