plugins {
    id 'com.android.library'
}

android {
    compileSdk 35
    namespace "microsoft.maui"

    defaultConfig {
        minSdk 21
        targetSdk 35
        versionCode 1
        versionName '1.0'
        setProperty('archivesBaseName', 'maui')
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro', 'lib-proguard-rules.txt'
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

    afterEvaluate {
        tasks.withType(com.android.build.gradle.tasks.BundleAar).configureEach { task ->
            task.archiveFileName.set("maui.aar")
        }
    }
}

dependencies {
    implementation 'com.github.bumptech.glide:glide:4.16.0'
    implementation 'com.github.bumptech.glide:annotations:4.16.0'
    annotationProcessor 'com.github.bumptech.glide:compiler:4.16.0'

    implementation 'androidx.appcompat:appcompat:1.7.0'
    implementation 'androidx.window:window:1.3.0'
    implementation 'com.google.android.material:material:1.11.0'
}
