build.gradle 960 Bytes
apply plugin: 'com.android.library'

android {
    compileSdkVersion 26

    defaultConfig {
        minSdkVersion 14
        targetSdkVersion 26
        versionCode 1
        versionName "1.0"
    }

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

    lintOptions {
        abortOnError false
    }
}

repositories {
    flatDir {
        dirs 'libs'
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'io.github.yumimobi:antiaddiction:1.1.9'

}

task clearJar(type: Delete) {
    delete 'build/libs/zplayads-unity-plugin-library.jar'
}

task makeJar(type: Copy) {
    from('build/intermediates/intermediate-jars/release/')
    into('build/libs/')
    include('classes.jar')
    rename('classes.jar', 'zplayads-unity-plugin-library.jar')
}

makeJar.dependsOn(clearJar, build)