apply plugin: 'com.android.library'
apply plugin: 'devicefarm'

android {
    compileSdkVersion 29
    useLibrary 'org.apache.http.legacy'

    defaultConfig {
        minSdkVersion 14 // ext junit
        targetSdkVersion 29
        testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
    }

    packagingOptions {
        exclude 'META-INF/DEPENDENCIES'
    }
}

dependencies {
    api (project(':aws-android-sdk-s3')) {
        exclude group: 'com.google.android', module: 'android'
    }
    api (project(':aws-android-sdk-sns')) {
        exclude group: 'com.google.android', module: 'android'
    }

    androidTestImplementation 'androidx.test:core:1.3.0'
    androidTestImplementation 'androidx.test.ext:junit:1.1.2'
    androidTestImplementation 'androidx.test:runner:1.3.0'
    androidTestImplementation 'org.apache.commons:commons-io:1.3.2'
    androidTestImplementation project(':aws-android-sdk-testutils')
}

devicefarm {
    // Required. The Project must already exist. You can create a project in the AWS console.
    projectName 'AWSAndroidKeyStoreTester'

    // Required. You must specify either accessKey and secretKey OR roleArn. roleArn takes precedence.
    authentication {
        accessKey "$System.env.DEVICEFARM_ACCESS_KEY"
        secretKey "$System.env.DEVICEFARM_SECRET_KEY"
    }
}

