apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

android {

    packagingOptions {
        pickFirst 'lib/x86/libc++_shared.so'
        pickFirst 'lib/x86_64/libc++_shared.so'
        pickFirst 'lib/armeabi-v7a/libc++_shared.so'
        pickFirst 'lib/arm64-v8a/libc++_shared.so'
    }

    defaultConfig {
        minSdkVersion 24
        targetSdkVersion 36
        compileSdk = 36
        consumerProguardFiles "consumer-rules.pro"

        ndkVersion '22.1.7171670'
    }

    sourceSets {
        main {
            assets.srcDirs = ['assets']
            //disable automatic ndk-build
            jniLibs.srcDirs = ['../path/to/libs']
        }
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_17
        targetCompatibility JavaVersion.VERSION_17
    }
    namespace 'com.gowtham.library'

}

dependencies {
    implementation fileTree(dir: "libs", include: ["*.jar"])
    implementation 'androidx.appcompat:appcompat:1.4.2'
    implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
    implementation 'com.google.android.exoplayer:exoplayer:2.17.1'
    implementation 'com.github.bumptech.glide:glide:4.15.1'
    annotationProcessor 'com.github.bumptech.glide:compiler:4.15.1'
    implementation 'com.akexorcist:localization:1.2.9'
    implementation 'com.google.code.gson:gson:2.9.0'
    implementation "androidx.coordinatorlayout:coordinatorlayout:1.2.0"

    implementation("androidx.media3:media3-transformer:1.8.0")

}
repositories {
    mavenCentral()
}