plugins {
    id 'com.android.application'
}

android {
    signingConfigs {
        release {
            storeFile file('fedml.jks')
            storePassword 'fedml0'
            keyAlias 'fedml'
            keyPassword 'fedml0'
        }
    }
    compileSdk 32

    defaultConfig {
        applicationId "ai.fedml.edgedemo"
        minSdk 23
        targetSdk 32
        versionCode 1
        versionName "1.0"

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
        signingConfig signingConfigs.release
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
    testOptions {
        unitTests.all {
            useJUnitPlatform()
        }
    }
    namespace 'ai.fedml.edgedemo'
}


dependencies {
    implementation project(':fedmlsdk')
//    implementation 'ai.fedml:fedml-edge-android:1.1.0-SNAPSHOT'
    implementation 'androidx.appcompat:appcompat:1.5.0'
    implementation 'com.google.android.material:material:1.6.1'
    implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
    implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.5.1'
    implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1'
    testImplementation 'junit:junit:4.13.2'
    androidTestImplementation 'androidx.test.ext:junit:1.1.3'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
    implementation 'com.google.code.gson:gson:2.9.0'
    implementation "com.squareup.retrofit2:retrofit:2.9.0"
    implementation "com.squareup.retrofit2:converter-gson:2.9.0"
    implementation 'com.squareup.okhttp3:okhttp:4.11.0'
    implementation 'com.squareup.okio:okio:3.1.0'
    implementation 'com.squareup.okhttp3:logging-interceptor:4.11.0'
    implementation "org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.5"
    implementation 'com.amazonaws:aws-android-sdk-s3:2.69.0'
    implementation 'javax.annotation:javax.annotation-api:1.3.2'
    implementation ("com.github.bumptech.glide:glide:4.13.2") {
        exclude group: "com.android.support"
    }
    implementation ("com.github.bumptech.glide:glide:4.13.2@aar") {
        transitive = true
    }
    annotationProcessor 'androidx.annotation:annotation:1.4.0'
    annotationProcessor 'com.github.bumptech.glide:compiler:4.13.2'
    testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.7.1'
}