plugins {
    id 'com.android.application'
}

android {
    namespace 'com.stock.pignon'
    compileSdkVersion 36

    defaultConfig {
        applicationId "com.stock.pignon"
        minSdkVersion 17
        targetSdkVersion 36
        versionCode 2
        versionName "0.2.0"

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }

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

dependencies {
    implementation 'androidx.appcompat:appcompat:1.4.2'

    // Matériel design
    implementation 'com.google.android.material:material:1.6.1'

    // JSON
    implementation 'com.google.code.gson:gson:2.8.5'

    // GIF
    implementation 'com.github.bumptech.glide:glide:3.8.0'

    // NanoHTTPD
    implementation 'org.nanohttpd:nanohttpd:2.3.1'

    // Tests
    testImplementation 'junit:junit:4.13.2'
    androidTestImplementation 'androidx.test.ext:junit:1.1.5'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
}