plugins {
    id 'com.android.application'
}

android {
    namespace 'de.droiddrone.flight'
    compileSdk 34

    defaultConfig {
        applicationId "de.droiddrone.flight"
        minSdk 26
        targetSdk 34
        versionCode 9
        versionName "2.3.0"

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }

    buildTypes {
        release {
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
            ndk {
                debugSymbolLevel 'SYMBOL_TABLE'
            }
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_11
        targetCompatibility JavaVersion.VERSION_11
    }
}

dependencies {
    implementation project(':Common')
    implementation project(':libuvccamera')
    implementation project(':mavlink')
    implementation 'io.github.xmaihh:serialport:2.1.2'
    implementation 'androidx.appcompat:appcompat:1.7.0'
    implementation "androidx.preference:preference:1.2.1"
    implementation 'com.github.mik3y:usb-serial-for-android:3.8.0'
    implementation 'com.google.android.material:material:1.12.0'
    testImplementation 'junit:junit:4.13.2'
    androidTestImplementation 'androidx.test.ext:junit:1.2.1'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1'
}