Skip to content

A cross platform Audiobookshelf client for Android and iOS

Dart
1.4 KB
Raw Blame
group = 'com.ryanheise.just_audio'
version = '1.0'
def args = ["-Xlint:deprecation","-Xlint:unchecked"]

buildscript {
    repositories {
        google()
        mavenCentral()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:8.5.0'
    }
}

rootProject.allprojects {
    repositories {
        google()
        mavenCentral()
    }
}

project.getTasks().withType(JavaCompile) {
    options.compilerArgs.addAll(args)
}

apply plugin: 'com.android.library'

android {
    // Conditional for compatibility with AGP <4.2.
    if (project.android.hasProperty("namespace")) {
        namespace = 'com.ryanheise.just_audio'
    }
    compileSdk = 34

    defaultConfig {
        minSdk = 16
        testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
    }

    lintOptions {
        disable 'AndroidGradlePluginVersion', 'InvalidPackage', 'GradleDependency', 'NewerVersionAvailable'
    }

    compileOptions {
        sourceCompatibility = JavaVersion.VERSION_11
        targetCompatibility = JavaVersion.VERSION_11
    }

    dependencies {
        def exoplayer_version = "1.6.1"
        implementation "androidx.media3:media3-exoplayer:$exoplayer_version"
        implementation "androidx.media3:media3-exoplayer-dash:$exoplayer_version"
        implementation "androidx.media3:media3-exoplayer-hls:$exoplayer_version"
        implementation "androidx.media3:media3-exoplayer-smoothstreaming:$exoplayer_version"
    }
}