apply plugin: 'com.android.library'

android {
    compileSdk 33
    namespace 'com.banrossyn.imageloader'

    defaultConfig {
        minSdk 21
        targetSdk 33
    }

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

}

dependencies {
    testImplementation 'junit:junit:4.13.2'
    testImplementation 'org.robolectric:robolectric:3.0-rc3'
    testImplementation 'com.squareup.assertj:assertj-android:1.0.0'
}


// build a jar with source files
//task sourcesJar(type: Jar) {
//    from android.sourceSets.main.java.srcDirs
//    classifier = 'sources'
//}
//artifacts {
//    archives sourcesJar
//}

// Build a jar file in addition to the default aar file
//android.libraryVariants.all { variant ->
//    def name = variant.buildType.name
//    def task = project.tasks.create "jar${name.capitalize()}", Jar
//    task.dependsOn variant.javaCompileProvider
//    task.from variant.javaCompileProvider.get().destinationDir
//    artifacts.add('archives', task);
//}

//apply from: '../gradle/maven_push.gradle'
